diff options
author | Gautam Menghani <[email protected]> | 2024-05-20 23:27:40 +0530 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2024-06-03 22:06:28 +1000 |
commit | e1f288d2f9c69bb8965db9fb99a19b58231a00dd (patch) | |
tree | 5c212f2d8bbb47f2cc5ef9c768dadc0d941b09b3 /tools/perf/scripts | |
parent | c3f38fa61af77b49866b006939479069cd451173 (diff) |
KVM: PPC: Book3S HV nestedv2: Add support for reading VPA counters for pseries guests
PAPR hypervisor has introduced three new counters in the VPA area of
LPAR CPUs for KVM L2 guest (see [1] for terminology) observability - two
for context switches from host to guest and vice versa, and one counter
for getting the total time spent inside the KVM guest. Add a tracepoint
that enables reading the counters for use by ftrace/perf. Note that this
tracepoint is only available for nestedv2 API (i.e, KVM on PowerVM).
[1] Terminology:
a. L1 refers to the VM (LPAR) booted on top of PAPR hypervisor
b. L2 refers to the KVM guest booted on top of L1.
Reviewed-by: Nicholas Piggin <[email protected]>
Acked-by: Naveen N Rao <[email protected]>
Signed-off-by: Vaibhav Jain <[email protected]>
Signed-off-by: Gautam Menghani <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions