]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Drop guest CPUID check for host initiated writes to MSR_IA32_PERF_CAPABILITIES
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 16 Dec 2021 16:52:13 +0000 (17:52 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 19 Dec 2021 18:35:18 +0000 (19:35 +0100)
commit2d8a82ed48d0a2bc933ff0615b5e1094b4a73224
tree043f60a664b46a3cedb5ccb6dfdd492993640b77
parent475cd11c93c6d48af0d78360ba72a938da39db1e
KVM: x86: Drop guest CPUID check for host initiated writes to MSR_IA32_PERF_CAPABILITIES

The ability to write to MSR_IA32_PERF_CAPABILITIES from the host should
not depend on guest visible CPUID entries, even if just to allow
creating/restoring guest MSRs and CPUIDs in any sequence.

Fixes: 6a5e366a31d5 ("KVM: x86/pmu: Support full width counting")
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20211216165213.338923-3-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c