diff options
author | Quentin Perret <[email protected]> | 2022-11-10 19:02:37 +0000 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2022-11-11 16:40:54 +0000 |
commit | 0d16d12eb26ef85602ef8a678d94825a66772774 (patch) | |
tree | 941972f99871b62465e5b2d8b069358ac7b6e20d /lib/mpi/mpi-sub-ui.c | |
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 <[email protected]>
Tested-by: Vincent Donnefort <[email protected]>
Signed-off-by: Quentin Perret <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions