aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorDavid Matlack <[email protected]>2022-06-22 15:26:48 -0400
committerPaolo Bonzini <[email protected]>2022-06-24 04:51:52 -0400
commitbb924ca69f71b4f54c8f07be28e2b76f5ad1d2ac (patch)
tree81aa84f866d83e9d8e3f80c821f71d8343b79c01 /tools/perf/scripts/python/bin/stackcollapse-record
parent83f6e109f562063ab7a1f54d99bcab2858b09ead (diff)
KVM: x86/mmu: Optimize MMU page cache lookup for all direct SPs
Commit fb58a9c345f6 ("KVM: x86/mmu: Optimize MMU page cache lookup for fully direct MMUs") skipped the unsync checks and write flood clearing for full direct MMUs. We can extend this further to skip the checks for all direct shadow pages. Direct shadow pages in indirect MMUs (i.e. shadow paging) are used when shadowing a guest huge page with smaller pages. Such direct shadow pages, like their counterparts in fully direct MMUs, are never marked unsynced or have a non-zero write-flooding count. Checking sp->role.direct also generates better code than checking direct_map because, due to register pressure, direct_map has to get shoved onto the stack and then pulled back off. No functional change intended. Reviewed-by: Lai Jiangshan <[email protected]> Reviewed-by: Sean Christopherson <[email protected]> Reviewed-by: Peter Xu <[email protected]> Signed-off-by: David Matlack <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions