diff options
| author | Vincent Donnefort <vdonnefort@google.com> | 2026-10-01 15:28:36 +0100 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-10-02 17:06:40 +0100 |
| commit | 11a59e2959e63546dd75c347d552193c38aeb37e (patch) | |
| tree | a7ed3790145828ed4f3044b7928b9bb809ad4ea7 /tools/perf/scripts/python/stackcollapse.py | |
| parent | c8d7834c9c219a9a0e3969986e90c5c444b9d98d (diff) | |
KVM: arm64: Allow kvm_hyp_memcache usage outside of stage-2
Although currently limited to guest stage-2 page-table allocations,
struct kvm_hyp_memcache is a useful primitive for passing a list of
discontiguous pages between host and hypervisor.
Introduce init_hyp_memcache() to initialise a generic hyp memcache, and
init_hyp_stage2_memcache() for stage-2 specific memcaches. The generic
initialiser will be used to top up the upcoming pKVM heap allocator.
Note that the generic kvm_hyp_memcache does not account for the
allocated memory. This is expected: donations to the heap allocator are
shared and recycled, they cannot be accounted for a specific VM.
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev>
Tested-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20261001142849.3367614-6-vdonnefort@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
