summaryrefslogtreecommitdiff
path: root/arch/arm64/kvm/sys_regs.c
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2019-06-26 21:59:56 +0300
committerMarc Zyngier <maz@kernel.org>2023-12-19 13:02:42 +0300
commitd8bd48e3f0ee9e1fdba2a2e453155a5354e48a8d (patch)
tree5c78be6dc1ce2b44e5834ff16c668f97d5b177e0 /arch/arm64/kvm/sys_regs.c
parent9b9cce60be85e6807bdb0eaa2f520e78dbab0659 (diff)
downloadlinux-d8bd48e3f0ee9e1fdba2a2e453155a5354e48a8d.tar.xz
KVM: arm64: nv: Map VNCR-capable registers to a separate page
With ARMv8.4-NV, registers that can be directly accessed in memory by the guest have to live at architected offsets in a special page. Let's annotate the sysreg enum to reflect the offset at which they are in this page, whith a little twist: If running on HW that doesn't have the ARMv8.4-NV feature, or even a VM that doesn't use NV, we store all the system registers in the usual sys_regs array. The only difference with the pre-8.4 situation is that VNCR-capable registers are at a "similar" offset as in the VNCR page (we can compute the actual offset at compile time), and that the sys_regs array is both bigger and sparse. Reviewed-by: Oliver Upton <oliver.upton@linux.dev> Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm64/kvm/sys_regs.c')
0 files changed, 0 insertions, 0 deletions