KVM: arm64: Simplify sysreg access on exception delivery
authorMarc Zyngier <maz@kernel.org>
Sun, 17 Aug 2025 12:19:24 +0000 (13:19 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 28 Aug 2025 18:39:48 +0000 (11:39 -0700)
commite3f6836a632e6d68201b6bc6e02bda92b00f3f57
treeca578e6eba707b831b001e9b479280159169e8af
parentb720269334f55f2e683fbb8f1f065a12f2c72eb6
KVM: arm64: Simplify sysreg access on exception delivery

Distinguishing between NV and VHE is slightly pointless, and only
serves as an extra complication, or a way to introduce bugs, such
as the way SPSR_EL1 gets written without checking for the state
being resident.

Get rid if this silly distinction, and fix the bug in one go.

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