summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorJack Thomson <jackabt@amazon.com>2026-09-23 16:15:52 +0100
committerMarc Zyngier <maz@kernel.org>2026-09-24 23:28:13 +0100
commitee26443f3dd70a961ad5e9384d5f41a8675213d1 (patch)
treef48ad9aca5fa1f8c89c65016cb10beb1d29d9d1f /tools/perf/scripts/python/stackcollapse.py
parent33f849d808e2329f569bcd8fdbfe5ce22449466f (diff)
KVM: arm64: Pass walk flags to kvm_pgtable_get_leaf()
Allow callers of kvm_pgtable_get_leaf() to specify the page-table walk flags, in preparation for performing walks under the MMU read lock. Reading a stage-2 leaf while only holding the read lock requires KVM_PGTABLE_WALK_SHARED: parallel faults (which also only hold the read lock) can unlink table pages and free them via RCU, so the walker must be inside an RCU read-side critical section, which the shared walk flag provides via kvm_pgtable_walk_begin(). All existing callers either hold the write lock, walk with interrupts disabled, or run at hyp where shared walks are rejected; they keep the current behaviour by passing no flags. No functional change intended. Signed-off-by: Jack Thomson <jackabt@amazon.com> [ljs: fixup new kvm_pgtable_get_leaf() invocation] Reviewed-by: Oliver Upton <oupton@kernel.org> Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev> Signed-off-by: Lorenzo Stoakes (ARM) <ljs@kernel.org> Tested-by: Fuad Tabba <fuad.tabba@linux.dev> Link: https://patch.msgid.link/20260923-kvm-arm-prefault-v4-9-d4b0b4dfa8c3@kernel.org Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions