diff options
author | Quentin Perret <qperret@google.com> | 2022-11-10 19:02:47 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2022-11-11 17:16:25 +0000 |
commit | aa6948f82f0b7060fbbac21911dc7996b144ba3c (patch) | |
tree | 6d16f6fd3b93bdd14027b47005ee913926834f45 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 9d0c063a4d1d10ef8e6288899b8524413e40cfa0 (diff) | |
download | linux-aa6948f82f0b7060fbbac21911dc7996b144ba3c.tar.gz linux-aa6948f82f0b7060fbbac21911dc7996b144ba3c.tar.bz2 linux-aa6948f82f0b7060fbbac21911dc7996b144ba3c.zip |
KVM: arm64: Add per-cpu fixmap infrastructure at EL2
Mapping pages in a guest page-table from within the pKVM hypervisor at
EL2 may require cache maintenance to ensure that the initialised page
contents is visible even to non-cacheable (e.g. MMU-off) accesses from
the guest.
In preparation for performing this maintenance at EL2, introduce a
per-vCPU fixmap which allows the pKVM hypervisor to map guest pages
temporarily into its stage-1 page-table for the purposes of cache
maintenance and, in future, poisoning on the reclaim path. The use of a
fixmap avoids the need for memory allocation or locking on the map()
path.
Tested-by: Vincent Donnefort <vdonnefort@google.com>
Signed-off-by: Quentin Perret <qperret@google.com>
Co-developed-by: Will Deacon <will@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221110190259.26861-15-will@kernel.org
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions