]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: vmx_pmu_msrs_test: Drop tests mangling guest visible CPUIDs
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 16 Dec 2021 16:52:12 +0000 (17:52 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 19 Dec 2021 18:35:29 +0000 (19:35 +0100)
commita80117b04285758c765a0b5b6a6b6a8466f58d44
tree9b04c07838fbb0adbd93cd98b52c75b13cd37b28
parent2d8a82ed48d0a2bc933ff0615b5e1094b4a73224
KVM: selftests: vmx_pmu_msrs_test: Drop tests mangling guest visible CPUIDs

Host initiated writes to MSR_IA32_PERF_CAPABILITIES should not depend
on guest visible CPUIDs and (incorrect) KVM logic implementing it is
about to change. Also, KVM_SET_CPUID{,2} after KVM_RUN is now forbidden
and causes test to fail.

Reported-by: kernel test robot <oliver.sang@intel.com>
Fixes: e49d1db7e0d0 ("KVM: x86: Forbid KVM_SET_CPUID{,2} after KVM_RUN")
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20211216165213.338923-2-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/vmx_pmu_msrs_test.c