diff options
author | Aaron Lewis <aaronlewis@google.com> | 2023-04-08 01:32:54 +0200 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2023-04-14 22:21:38 +0200 |
commit | 457bd7af1a17182e7f1f97eeb5d9107f8699e99d (patch) | |
tree | 3beeff0f707814152c07a8eb8445859cfc31bfdc /arch/x86 | |
parent | KVM: selftests: Copy full counter values from guest in PMU event filter test (diff) | |
download | linux-457bd7af1a17182e7f1f97eeb5d9107f8699e99d.tar.xz linux-457bd7af1a17182e7f1f97eeb5d9107f8699e99d.zip |
KVM: selftests: Test the PMU event "Instructions retired"
Add testing for the event "Instructions retired" (0xc0) in the PMU
event filter on both Intel and AMD to ensure that the event doesn't
count when it is disallowed. Unlike most of the other events, the
event "Instructions retired" will be incremented by KVM when an
instruction is emulated. Test that this case is being properly handled
and that KVM doesn't increment the counter when that event is
disallowed.
Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Link: https://lore.kernel.org/r/20230307141400.1486314-6-aaronlewis@google.com
Link: https://lore.kernel.org/r/20230407233254.957013-7-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions