diff options
author | Sean Christopherson | 2022-06-11 00:57:53 +0000 |
---|---|---|
committer | Paolo Bonzini | 2022-06-20 11:49:54 -0400 |
commit | 3f7999b988bde6c50cb7b20d6c742d6512d1f0bd (patch) | |
tree | 87e977b9abebdfd0975da2516952b7247826a4fa /arch/mips | |
parent | 545feb96c052809dab5ec04b95f976acca9f9364 (diff) |
KVM: VMX: Use vcpu_get_perf_capabilities() to get guest-visible value
Use vcpu_get_perf_capabilities() when querying MSR_IA32_PERF_CAPABILITIES
from the guest's perspective, e.g. to update the vPMU and to determine
which MSRs exist. If userspace ignores MSR_IA32_PERF_CAPABILITIES but
clear X86_FEATURE_PDCM, the guest should see '0'.
Fixes: 902caeb6841a ("KVM: x86/pmu: Add PEBS_DATA_CFG MSR emulation to support adaptive PEBS")
Fixes: c59a1f106f5c ("KVM: x86/pmu: Add IA32_PEBS_ENABLE MSR emulation for extended PEBS")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220611005755.753273-6-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions