summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kvm/emulate-nested.c
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2024-04-19 11:29:25 +0100
committerMarc Zyngier <maz@kernel.org>2024-04-20 12:42:50 +0100
commit04ab519bb86df10bb8b72054fce9af1d72c36805 (patch)
tree53d8991176d058eb9a2db99a5812eefa32829c91 /arch/arm64/kvm/emulate-nested.c
parent6f57c6be2a0889cc0fd32b0cd2eb25dfee20dde3 (diff)
downloadlinux-04ab519bb86df10bb8b72054fce9af1d72c36805.tar.gz
linux-04ab519bb86df10bb8b72054fce9af1d72c36805.tar.bz2
linux-04ab519bb86df10bb8b72054fce9af1d72c36805.zip
KVM: arm64: nv: Configure HCR_EL2 for FEAT_NV2
Add the HCR_EL2 configuration for FEAT_NV2, adding the required bits for running a guest hypervisor, and overall merging the allowed bits provided by the guest. This heavily replies on unavaliable features being sanitised when the HCR_EL2 shadow register is accessed, and only a couple of bits must be explicitly disabled. Non-NV guests are completely unaffected by any of this. Reviewed-by: Joey Gouly <joey.gouly@arm.com> Reviewed-by: Oliver Upton <oliver.upton@linux.dev> Link: https://lore.kernel.org/r/20240419102935.1935571-6-maz@kernel.org Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm64/kvm/emulate-nested.c')
0 files changed, 0 insertions, 0 deletions