KVM: arm64: nv: Load guest FP state for ZCR_EL2 trap
authorOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 16:46:47 +0000 (16:46 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 19:04:49 +0000 (19:04 +0000)
commit0cfc85b8f5cf3b77463d61542191c75ba0cc3a5f
tree6022146b6b747ae6bbd8962e2e243e04f7b7ad2a
parent493da2b1c49ac86c0eb0dde9e42b79333272d1f9
KVM: arm64: nv: Load guest FP state for ZCR_EL2 trap

Round out the ZCR_EL2 gymnastics by loading SVE state in the fast path
when the guest hypervisor tries to access SVE state.

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