OSDN Git Service

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)
commit0b091a43d704997789c6d812b02167c8f5f9f061
tree9b04c07838fbb0adbd93cd98b52c75b13cd37b28
parent1aa2abb33a419090c7c87d4ae842a6347078ee12
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: feb627e8d6f6 ("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