]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Allow EL1 control registers to be accessed from the CPU state
authorMarc Zyngier <maz@kernel.org>
Mon, 25 Aug 2025 14:20:06 +0000 (15:20 +0100)
committerMarc Zyngier <maz@kernel.org>
Sat, 20 Sep 2025 10:05:13 +0000 (11:05 +0100)
commitcb1762904c5000220a0facf9bcab68ba687ec417
treef42f744cd3d79883d666d39ad027e17d0ee3fa8b
parent14d4802dc22acf670333c8aad4e1931e7d6ee412
KVM: arm64: Allow EL1 control registers to be accessed from the CPU state

As we are about to plug the SW PTW into the EL1-only code, we can
no longer assume that the EL1 state is not resident on the CPU,
as we don't necessarily get there from EL2 traps.

Turn the __vcpu_sys_reg() access on the EL1 state into calls to
the vcpu_read_sys_reg() helper, which is guaranteed to do the
right thing.

Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/at.c