diff options
author | Sean Christopherson <seanjc@google.com> | 2025-01-11 03:50:48 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2025-02-14 18:02:13 +0300 |
commit | 16fc7cb406a5108182852229abe6804ecbad8d06 (patch) | |
tree | e5880e508b34e3acbb3416afbe093b0739a31d70 /tools/perf/scripts/python/task-analyzer.py | |
parent | 9b56532b8a593c3a3cbbd8b17fb87ffb4beee436 (diff) | |
download | linux-16fc7cb406a5108182852229abe6804ecbad8d06.tar.xz |
KVM: selftests: Add infrastructure for getting vCPU binary stats
Now that the binary stats cache infrastructure is largely scope agnostic,
add support for vCPU-scoped stats. Like VM stats, open and cache the
stats FD when the vCPU is created so that it's guaranteed to be valid when
vcpu_get_stats() is invoked.
Account for the extra per-vCPU file descriptor in kvm_set_files_rlimit(),
so that tests that create large VMs don't run afoul of resource limits.
To sanity check that the infrastructure actually works, and to get a bit
of bonus coverage, add an assert in x86's xapic_ipi_test to verify that
the number of HLTs executed by the test matches the number of HLT exits
observed by KVM.
Tested-by: Manali Shukla <Manali.Shukla@amd.com>
Link: https://lore.kernel.org/r/20250111005049.1247555-9-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions