On Thu, 12 Dec 2024 08:18:42 +0000,
Ard Biesheuvel [off-list ref] wrote:
From: Ard Biesheuvel <ardb@kernel.org>
This series addresses a number of buglets related to how we handle the
size of the physical address space when building LPA2 capable kernels:
- reject 52-bit physical addressess in the mapping routines when LPA2 is
configured but not available at runtime
- ensure that TCR.IPS is not set to 52-bits if LPA2 is not supported
- ensure that TCR_EL2.PS and DS match the host, regardless of whether
LPA2 is available at stage 2
- don't rely on kvm_get_parange() and invalid physical addresses as
control flags in the pKVM page donation APIs
Finally, the configurable 48-bit physical address space limit is dropped
entirely, as it doesn't buy us a lot now that all the PARange and {I}PS
handling is done at runtime.
Acked-by: Marc Zyngier <maz@kernel.org>
M.
--
Without deviation from the norm, progress is not possible.