diff options
author | Quentin Perret <qperret@google.com> | 2022-11-10 19:02:37 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2022-11-11 16:40:54 +0000 |
commit | 0d16d12eb26ef85602ef8a678d94825a66772774 (patch) | |
tree | 941972f99871b62465e5b2d8b069358ac7b6e20d /tools/perf/scripts/python/task-analyzer.py | |
parent | 8e6bcc3a4502a0d8d065466efd888b6b59b85789 (diff) |
KVM: arm64: Fix-up hyp stage-1 refcounts for all pages mapped at EL2
In order to allow unmapping arbitrary memory pages from the hypervisor
stage-1 page-table, fix-up the initial refcount for pages that have been
mapped before the 'vmemmap' array was up and running so that it
accurately accounts for all existing hypervisor mappings.
This is achieved by traversing the entire hypervisor stage-1 page-table
during initialisation of EL2 and updating the corresponding
'struct hyp_page' for each valid mapping.
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
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-5-will@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions