diff options
author | Eric Hankland <[email protected]> | 2021-11-30 15:42:21 +0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2022-01-07 10:44:43 -0500 |
commit | 018d70ffcfec8a01f77b0d840527203d337dd7f9 (patch) | |
tree | 02ade9fea7be0648987ab9070a66bfe7276d7a89 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 9cd803d496e72cd1dd3287c9a6cb4afa636ee16a (diff) |
KVM: x86: Update vPMCs when retiring branch instructions
When KVM retires a guest branch instruction through emulation,
increment any vPMCs that are configured to monitor "branch
instructions retired," and update the sample period of those counters
so that they will overflow at the right time.
Signed-off-by: Eric Hankland <[email protected]>
[jmattson:
- Split the code to increment "branch instructions retired" into a
separate commit.
- Moved/consolidated the calls to kvm_pmu_trigger_event() in the
emulation of VMLAUNCH/VMRESUME to accommodate the evolution of
that code.
]
Fixes: f5132b01386b ("KVM: Expose a version 2 architectural PMU to a guests")
Signed-off-by: Jim Mattson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions