KVM: arm64: nv: Add userspace and guest handling of VNCR_EL2
authorMarc Zyngier <maz@kernel.org>
Wed, 14 May 2025 10:34:51 +0000 (11:34 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 19 May 2025 06:59:46 +0000 (07:59 +0100)
commit6fb75733f148ecd6c1898df0098b37f70a80f002
tree9568db12c327ed917f93fb7ca56ad79f8badd680
parentea8d3cf46d57bc1e131ca66ebc3e9aabe40234ef
KVM: arm64: nv: Add userspace and guest handling of VNCR_EL2

Plug VNCR_EL2 in the vcpu_sysreg enum, define its RES0/RES1 bits,
and make it accessible to userspace when the VM is configured to
support FEAT_NV2.

Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20250514103501.2225951-9-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/nested.c
arch/arm64/kvm/sys_regs.c