KVM: arm64: Rework SVE host-save/guest-restore
authorMarc Zyngier <maz@kernel.org>
Tue, 16 Mar 2021 08:52:40 +0000 (08:52 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 18 Mar 2021 13:57:37 +0000 (13:57 +0000)
commit52029198c1cec1e21513d74f87363a0408f28650
tree4d8d06f2ea32c5ef416cae313e09a5ee2aad0136
parent71ce1ae56e4d43a0c568e2d4bfb154cd15306a82
KVM: arm64: Rework SVE host-save/guest-restore

In order to keep the code readable, move the host-save/guest-restore
sequences in their own functions, with the following changes:
- the hypervisor ZCR is now set from C code
- ZCR_EL2 is always used as the EL2 accessor

This results in some minor assembler macro rework.
No functional change intended.

Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/fpsimdmacros.h
arch/arm64/include/asm/kvm_hyp.h
arch/arm64/kvm/hyp/fpsimd.S
arch/arm64/kvm/hyp/include/hyp/switch.h