diff options
| author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2021-03-29 14:48:04 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-04-17 08:30:53 -0400 |
| commit | c28fa560c5bb4a58b362622beb0ca8479a480636 (patch) | |
| tree | fdbb61a5e6432e7bd4654bed899b09e9003fe72b /tools/perf/scripts/python/bin | |
| parent | 9a7de6ecc3ed80efb95fe1d97b6440922e55dbda (diff) | |
| download | linux-c28fa560c5bb4a58b362622beb0ca8479a480636.tar.gz linux-c28fa560c5bb4a58b362622beb0ca8479a480636.zip | |
KVM: x86/vPMU: Forbid reading from MSR_F15H_PERF MSRs when guest doesn't have X86_FEATURE_PERFCTR_CORE
MSR_F15H_PERF_CTL0-5, MSR_F15H_PERF_CTR0-5 MSRs have a CPUID bit assigned
to them (X86_FEATURE_PERFCTR_CORE) and when it wasn't exposed to the guest
the correct behavior is to inject #GP an not just return zero.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20210329124804.170173-1-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
