summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/parse_data_structs.py
diff options
context:
space:
mode:
authorYosry Ahmed <yosry@kernel.org>2026-05-27 23:46:58 +0000
committerSean Christopherson <seanjc@google.com>2026-05-27 18:45:48 -0700
commit9be579d2265185ec92d75e4540fc6c4e621f1667 (patch)
tree8711870c263464a92c49b6c90b85a70c2ba4eeee /tools/lib/python/kdoc/parse_data_structs.py
parent0a35c2a051f34890f39befb5dc4f1cf41ec12b2a (diff)
KVM: nSVM: Move VMRUN instruction retirement after entering guest mode
A successful VMRUN retires in guest mode and should be counted by the PMU as a guest instruction. Move the call to kvm_pmu_instruction_retired() after potentially entering guest mode, such that VMRUN is counted correctly. The PMU event will be matched against L2's CPL, but otherwise this does not change the behavior in terms of guest vs. host, because KVM does not virtualize Host-Only/Guest-Only PMC controls yet, so all instructions are counted regardless of the vCPU's host/guest state. But this change is needed for the incoming support for Host-Only/Guest-Only controls to count VMRUN correctly. Signed-off-by: Yosry Ahmed <yosry@kernel.org> Link: https://patch.msgid.link/20260527234711.4175166-5-yosry@kernel.org Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions