]> 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)
commit276ff22ed440d043eda0d35f4085b19002240527
tree5928f9eb74df51684656a1bf4188d718c57d9a56
parentc22a7ca2265511f6cacd18cd29015e27493fc938
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