KVM: arm64: nv: Add sanitising to EL2 configuration registers
authorMarc Zyngier <maz@kernel.org>
Wed, 14 Feb 2024 13:18:05 +0000 (13:18 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 19 Feb 2024 17:13:00 +0000 (17:13 +0000)
commit81ffcace31c24b79d2891d72b3f892dd2b5937d9
treec1487af8e617fad8d73d15d3306f3e2d24203c63
parent888f0880702293096619b300150cd7e59fcd9743
KVM: arm64: nv: Add sanitising to EL2 configuration registers

We can now start making use of our sanitising masks by setting them
to values that depend on the guest's configuration.

First up are VTTBR_EL2, VTCR_EL2, VMPIDR_EL2 and HCR_EL2.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240214131827.2856277-5-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/nested.c