mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
KVM: VMX: Remove restriction that PMU version > 0 for PERF_CAPABILITIES
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>
This commit is contained in:
parent
d75cac366f
commit
a103911119
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user