aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2025-01-11 00:50:48 +0000
committerSean Christopherson <[email protected]>2025-02-14 15:02:13 +0000
commit16fc7cb406a5108182852229abe6804ecbad8d06 (patch)
treee5880e508b34e3acbb3416afbe093b0739a31d70 /rust/helpers/task.c
parentKVM: selftests: Adjust number of files rlimit for all "standard" VMs (diff)
downloadkernel-16fc7cb406a5108182852229abe6804ecbad8d06.tar.gz
kernel-16fc7cb406a5108182852229abe6804ecbad8d06.zip
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions