summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2024-08-02 21:55:06 +0300
committerSean Christopherson <seanjc@google.com>2024-11-01 19:22:32 +0300
commitd75cac366f44174ab09b4d2ef16e70e6e30484e6 (patch)
tree3a0332ffadde7fe66e8fc8547df99b66b341502c /tools/perf/scripts/python/export-to-postgresql.py
parentdcb988cdac85bad177de86fbf409524eda4f9467 (diff)
downloadlinux-d75cac366f44174ab09b4d2ef16e70e6e30484e6.tar.xz
KVM: x86: Reject userspace attempts to access PERF_CAPABILITIES w/o PDCM
Reject userspace accesses to PERF_CAPABILITIES if PDCM isn't set in guest CPUID, i.e. if the vCPU doesn't actually have PERF_CAPABILITIES. But! Do so via KVM_MSR_RET_UNSUPPORTED, so that reads get '0' and writes of '0' are ignored if KVM advertised support PERF_CAPABILITIES. KVM's ABI is that userspace must set guest CPUID prior to setting MSRs, and that setting MSRs that aren't supposed exist is disallowed (modulo the '0' exemption). Link: https://lore.kernel.org/r/20240802185511.305849-5-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions