]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Add save/restore for PIR{,E0}_EL2
authorMarc Zyngier <maz@kernel.org>
Wed, 23 Oct 2024 14:53:23 +0000 (15:53 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 31 Oct 2024 02:42:31 +0000 (02:42 +0000)
commitb3ad940a088761fd183dccd65c6ee20b360e8c4b
tree9119a2c6690f8140910d1cf6b53339c648f64655
parent5f8d5a15ef5a6ebf2c568101c20d4880a970a874
KVM: arm64: Add save/restore for PIR{,E0}_EL2

Like their EL1 equivalent, the EL2-specific FEAT_S1PIE registers
are context-switched. This is made conditional on both FEAT_TCRX
and FEAT_S1PIE being adversised.

Note that this change only makes sense if read together with the
issue D22677 contained in 102105_K.a_04_en.

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