]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: nv: Add EL2_REG_VNCR()/EL2_REG_REDIR() sysreg helpers
authorMarc Zyngier <maz@kernel.org>
Tue, 7 Nov 2023 09:02:10 +0000 (09:02 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 19 Dec 2023 10:01:20 +0000 (10:01 +0000)
commit9b9cce60be85e6807bdb0eaa2f520e78dbab0659
tree2cafc0c292c23c2e9b15558f176d4460989ebf48
parent2733dd10701abc6ab23d65a732f58fbeb80bd203
KVM: arm64: nv: Add EL2_REG_VNCR()/EL2_REG_REDIR() sysreg helpers

Add two helpers to deal with EL2 registers are are either redirected
to the VNCR page, or that are redirected to their EL1 counterpart.

In either cases, no trap is expected.

THe relevant register descriptors are repainted accordingly.

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