]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Avoid KVM_SET_CPUID2 after KVM_RUN in hyperv_features test
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 22 Nov 2021 17:58:17 +0000 (18:58 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 Nov 2021 13:14:19 +0000 (08:14 -0500)
commit8c3cf6a6e8be86a3cd3c3fa1110a3a8a20fd3811
tree5928f9eb74df51684656a1bf4188d718c57d9a56
parent83eecab58979c78f47afe117c43a7a04eabaa390
KVM: selftests: Avoid KVM_SET_CPUID2 after KVM_RUN in hyperv_features test

hyperv_features's sole purpose is to test access to various Hyper-V MSRs
and hypercalls with different CPUID data. As KVM_SET_CPUID2 after KVM_RUN
is deprecated and soon-to-be forbidden, avoid it by re-creating test VM
for each sub-test.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20211122175818.608220-2-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/hyperv_features.c