diff options
author | Quentin Perret <qperret@google.com> | 2022-11-10 19:02:50 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2022-11-11 17:16:25 +0000 |
commit | 717a7eebac106a5cc5d5493f8eef9cf4ae6edf19 (patch) | |
tree | a2432ed078534d5e217a84b8d12ad21221bf9a62 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 13e248aab73d2f1c27b458ef09d38b44f3e5bf2e (diff) | |
download | linux-717a7eebac106a5cc5d5493f8eef9cf4ae6edf19.tar.gz linux-717a7eebac106a5cc5d5493f8eef9cf4ae6edf19.tar.bz2 linux-717a7eebac106a5cc5d5493f8eef9cf4ae6edf19.zip |
KVM: arm64: Add generic hyp_memcache helpers
The host at EL1 and the pKVM hypervisor at EL2 will soon need to
exchange memory pages dynamically for creating and destroying VM state.
Indeed, the hypervisor will rely on the host to donate memory pages it
can use to create guest stage-2 page-tables and to store VM and vCPU
metadata. In order to ease this process, introduce a
'struct hyp_memcache' which is essentially a linked list of available
pages, indexed by physical addresses so that it can be passed
meaningfully between the different virtual address spaces configured at
EL1 and EL2.
Tested-by: Vincent Donnefort <vdonnefort@google.com>
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221110190259.26861-18-will@kernel.org
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions