]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: nv: Forward SVE traps to guest hypervisor
authorOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 16:46:39 +0000 (16:46 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 19:01:20 +0000 (19:01 +0000)
commit399debfc97493130167663336a2c3d0d16c2da79
tree9c0230376c08fde17b115b0a72f90cbacd4c0456
parentd2b2ecba8ddb55dd7c8f9741b4863670850c49de
KVM: arm64: nv: Forward SVE traps to guest hypervisor

Similar to FPSIMD traps, don't load SVE state if the guest hypervisor
has SVE traps enabled and forward the trap instead. Note that ZCR_EL2
will require some special handling, as it takes a sysreg trap to EL2
when HCR_EL2.NV = 1.

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