diff options
| author | Vipin Sharma <[email protected]> | 2023-03-21 22:00:18 +0000 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2023-04-04 19:37:30 +0000 |
| commit | 891f115960682b84440bdfb1ea72ab2824206db7 (patch) | |
| tree | 439fcfe50c5211bee2062871008fa1bec316aaf2 /tools/perf/util/trace-event-scripting.c | |
| parent | KVM: x86/mmu: Drop unnecessary dirty log checks when aging TDP MMU SPTEs (diff) | |
| download | kernel-891f115960682b84440bdfb1ea72ab2824206db7.tar.gz kernel-891f115960682b84440bdfb1ea72ab2824206db7.zip | |
KVM: x86/mmu: Bypass __handle_changed_spte() when aging TDP MMU SPTEs
Drop everything except the "tdp_mmu_spte_changed" tracepoint part of
__handle_changed_spte() when aging SPTEs in the TDP MMU, as clearing the
accessed status doesn't affect the SPTE's shadow-present status, whether
or not the SPTE is a leaf, or change the PFN. I.e. none of the functional
updates handled by __handle_changed_spte() are relevant.
Losing __handle_changed_spte()'s sanity checks does mean that a bug could
theoretical go unnoticed, but that scenario is extremely unlikely, e.g.
would effectively require a misconfigured MMU or a locking bug elsewhere.
Link: https://lore.kernel.org/all/[email protected]
Signed-off-by: Vipin Sharma <[email protected]>
Reviewed-by: David Matlack <[email protected]>
[sean: massage changelog]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions
