projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d75cac3
)
KVM: VMX: Remove restriction that PMU version > 0 for PERF_CAPABILITIES
author
Sean Christopherson
<seanjc@google.com>
Fri, 2 Aug 2024 18:55:07 +0000
(11:55 -0700)
committer
Sean Christopherson
<seanjc@google.com>
Fri, 1 Nov 2024 16:22:33 +0000
(09:22 -0700)
Drop the restriction that the PMU version is non-zero when handling writes
to PERF_CAPABILITIES now that KVM unconditionally checks for PDCM support.
Link:
https://lore.kernel.org/r/20240802185511.305849-6-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/vmx.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/vmx/vmx.c
b/arch/x86/kvm/vmx/vmx.c
index f0326927d4e1f75845951a37d1b8c8eb25b5d8a5..11a1d70f5ad7a2c8af7c0b9863a4512d067c3d01 100644
(file)
--- a/
arch/x86/kvm/vmx/vmx.c
+++ b/
arch/x86/kvm/vmx/vmx.c
@@
-2456,8
+2456,6
@@
int vmx_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
vmx->pt_desc.guest.addr_a[index / 2] = data;
break;
case MSR_IA32_PERF_CAPABILITIES:
- if (data && !vcpu_to_pmu(vcpu)->version)
- return 1;
if (data & PMU_CAP_LBR_FMT) {
if ((data & PMU_CAP_LBR_FMT) !=
(kvm_caps.supported_perf_cap & PMU_CAP_LBR_FMT))