]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: nv: Load guest hyp's ZCR into EL1 state
authorOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 16:46:41 +0000 (16:46 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 19:02:40 +0000 (19:02 +0000)
commit069da3ffdadfe108729fc9aafa3930da77711812
tree43eeac57ff5d35f3f13a7d7605a3c0198131b805
parentb3d29a8230998b36afecf494b199211d26052785
KVM: arm64: nv: Load guest hyp's ZCR into EL1 state

Load the guest hypervisor's ZCR_EL2 into the corresponding EL1 register
when restoring SVE state, as ZCR_EL2 affects the VL in the hypervisor
context.

Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240620164653.1130714-5-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/hyp/include/hyp/switch.h