]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Context switch SCTLR2_ELx when advertised to the guest
authorOliver Upton <oliver.upton@linux.dev>
Tue, 8 Jul 2025 17:25:17 +0000 (10:25 -0700)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 8 Jul 2025 18:36:35 +0000 (11:36 -0700)
commit02dd33ec88311ed1ce491476cfc5ade7d6505cc2
tree312a81bb983d54fc446dc48c07549fb6110ac3a2
parent81fbef164766c8fe5b39b91557b47c88946949cc
KVM: arm64: Context switch SCTLR2_ELx when advertised to the guest

Restore SCTLR2_EL1 with the correct value for the given context when
FEAT_SCTLR2 is advertised to the guest.

Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250708172532.1699409-13-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h
arch/arm64/kvm/hyp/vhe/sysreg-sr.c