]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Make PIR{,E0}_EL1 save/restore conditional on FEAT_TCRX
authorMarc Zyngier <maz@kernel.org>
Tue, 25 Jun 2024 13:00:41 +0000 (14:00 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 27 Jun 2024 00:04:25 +0000 (00:04 +0000)
commit663abf04ee4d750229e8f47881d31a5204259ceb
tree3127c33f57e9f802a0fd9bf7e192cb46c16eb793
parent1b04fd40275e09c2062e125593e7d2b0b9f87b0a
KVM: arm64: Make PIR{,E0}_EL1 save/restore conditional on FEAT_TCRX

As per the architecture, if FEAT_S1PIE is implemented, then FEAT_TCRX
must be implemented as well.

Take advantage of this to avoid checking for S1PIE when TCRX isn't
implemented.

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