]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Set PEBS_UNAVAIL in IA32_MISC_ENABLE when PEBS is enabled
authorLike Xu <like.xu@linux.intel.com>
Mon, 11 Apr 2022 10:19:41 +0000 (18:19 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 08:48:08 +0000 (04:48 -0400)
commitcaa3ce3595da769e36b237e96c4a5cfcdfad74cc
tree50b372a46c3630b3b92de7ba4bb1ab58cb430dd9
parente04a03139ab6f4ad7a6cac1f166d4e3df5f474c3
KVM: x86: Set PEBS_UNAVAIL in IA32_MISC_ENABLE when PEBS is enabled

The bit 12 represents "Processor Event Based Sampling Unavailable (RO)" :
1 = PEBS is not supported.
0 = PEBS is supported.

A write to this PEBS_UNAVL available bit will bring #GP(0) when guest PEBS
is enabled. Some PEBS drivers in guest may care about this bit.

Signed-off-by: Like Xu <like.xu@linux.intel.com>
Message-Id: <20220411101946.20262-13-likexu@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/pmu_intel.c
arch/x86/kvm/x86.c