aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorVishal Annapurve <[email protected]>2023-10-27 11:22:09 -0700
committerPaolo Bonzini <[email protected]>2023-11-14 08:01:06 -0500
commitf7fa67495d118f734f98b406fd46888616b4a3c3 (patch)
tree644b93b8eabc2af1f2a72a17d23f389ba4565e93 /tools/perf/scripts/python/check-perf-trace.py
parentbb2968ad6c33c0902dce48ea57d58c5bb4f3c617 (diff)
KVM: selftests: Add helpers to convert guest memory b/w private and shared
Add helpers to convert memory between private and shared via KVM's memory attributes, as well as helpers to free/allocate guest_memfd memory via fallocate(). Userspace, i.e. tests, is NOT required to do fallocate() when converting memory, as the attributes are the single source of truth. Provide allocate() helpers so that tests can mimic a userspace that frees private memory on conversion, e.g. to prioritize memory usage over performance. Signed-off-by: Vishal Annapurve <[email protected]> Co-developed-by: Sean Christopherson <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Reviewed-by: Fuad Tabba <[email protected]> Tested-by: Fuad Tabba <[email protected] Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions