KVM: arm64: Expose S1PIE to guests
authorMark Brown <broonie@kernel.org>
Fri, 4 Oct 2024 23:19:37 +0000 (00:19 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 8 Oct 2024 11:59:23 +0000 (12:59 +0100)
commitd4a89e5aee23eaebdc45f63cb3d6d5917ff6acf4
treeecd420dac13994f841c43d4ba6bf8a486c466f0b
parent79cc6cdb932a5cf1a1ee05f6de12a7d102818d21
KVM: arm64: Expose S1PIE to guests

Prior to commit 70ed7238297f ("KVM: arm64: Sanitise ID_AA64MMFR3_EL1")
we just exposed the santised view of ID_AA64MMFR3_EL1 to guests, meaning
that they saw both TCRX and S1PIE if present on the host machine. That
commit added VMM control over the contents of the register and exposed
S1POE but removed S1PIE, meaning that the extension is no longer visible
to guests. Reenable support for S1PIE with VMM control.

Fixes: 70ed7238297f ("KVM: arm64: Sanitise ID_AA64MMFR3_EL1")
Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Link: https://lore.kernel.org/r/20241005-kvm-arm64-fix-s1pie-v1-1-5901f02de749@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/sys_regs.c