diff options
author | Oliver Upton <oliver.upton@linux.dev> | 2022-11-07 21:56:38 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2022-11-10 14:43:46 +0000 |
commit | c3119ae45dfb6038ca458ab5ba7a9fba2810845b (patch) | |
tree | 0811aee489d97aba7e86b7935b825472c31787a2 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 5c359cca1faf6d7671537fe1c240e8668467864d (diff) | |
download | linux-c3119ae45dfb6038ca458ab5ba7a9fba2810845b.tar.gz linux-c3119ae45dfb6038ca458ab5ba7a9fba2810845b.tar.bz2 linux-c3119ae45dfb6038ca458ab5ba7a9fba2810845b.zip |
KVM: arm64: Protect stage-2 traversal with RCU
Use RCU to safely walk the stage-2 page tables in parallel. Acquire and
release the RCU read lock when traversing the page tables. Defer the
freeing of table memory to an RCU callback. Indirect the calls into RCU
and provide stubs for hypervisor code, as RCU is not available in such a
context.
The RCU protection doesn't amount to much at the moment, as readers are
already protected by the read-write lock (all walkers that free table
memory take the write lock). Nonetheless, a subsequent change will
futher relax the locking requirements around the stage-2 MMU, thereby
depending on RCU.
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221107215644.1895162-9-oliver.upton@linux.dev
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions