KVM: arm64: Add new (V)TCR_EL2 field definitions for FEAT_LPA2
authorRyan Roberts <ryan.roberts@arm.com>
Mon, 27 Nov 2023 11:17:31 +0000 (11:17 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 27 Nov 2023 15:03:50 +0000 (15:03 +0000)
commitd4fbbb26da520e00d87c8187dc3de9eacee66c1c
tree629947936ed0073b2962dcaa91e1262f6574923c
parentb1366d21daaebb8e474e4169c5e557fbb37bfdc0
KVM: arm64: Add new (V)TCR_EL2 field definitions for FEAT_LPA2

As per Arm ARM (0487I.a), (V)TCR_EL2.DS fields control whether 52 bit
input and output addresses are supported on 4K and 16K page size
configurations when FEAT_LPA2 is known to have been implemented.

This adds these field definitions which will be used by KVM when
FEAT_LPA2 is enabled.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Ryan Roberts <ryan.roberts@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231127111737.1897081-7-ryan.roberts@arm.com
arch/arm64/include/asm/kvm_arm.h