diff options
author | Greg Kurz <groug@kaod.org> | 2019-09-27 14:53:55 +0300 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2019-10-22 08:29:02 +0300 |
commit | 8db29ea2391cc6f5b73cc9c04b2dee4409b9fc05 (patch) | |
tree | 2ab71ed7ee4181ec6a7eb6afee2c1bb9bb6a36c5 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 8a4e7597ba1e41030189b73cd7261f4383588d1d (diff) | |
download | linux-8db29ea2391cc6f5b73cc9c04b2dee4409b9fc05.tar.xz |
KVM: PPC: Book3S HV: XIVE: Compute the VP id in a common helper
Reduce code duplication by consolidating the checking of vCPU ids and VP
ids to a common helper used by both legacy and native XIVE KVM devices.
And explain the magic with a comment.
Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions