KVM: arm64: Check advertised Stage-2 page size capability
authorMarc Zyngier <maz@kernel.org>
Thu, 28 May 2020 13:12:58 +0000 (14:12 +0100)
committerWill Deacon <will@kernel.org>
Thu, 28 May 2020 16:28:51 +0000 (17:28 +0100)
commitb130a8f70cbbf907c399799bd1073a78763ca0e7
tree1b8fe6121507b29c40563f86927dd74784218313
parent3577dd37c703e0d599e8c244917b8e369f38a45a
KVM: arm64: Check advertised Stage-2 page size capability

With ARMv8.5-GTG, the hardware (or more likely a hypervisor) can
advertise the supported Stage-2 page sizes.

Let's check this at boot time.

Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/include/asm/sysreg.h
arch/arm64/kernel/cpufeature.c
arch/arm64/kvm/reset.c
virt/kvm/arm/arm.c