diff options
author | Marc Zyngier <maz@kernel.org> | 2021-03-16 08:52:40 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-03-18 13:57:37 +0000 |
commit | 52029198c1cec1e21513d74f87363a0408f28650 (patch) | |
tree | 4d8d06f2ea32c5ef416cae313e09a5ee2aad0136 /arch/arm64/kvm/hyp/fpsimd.S | |
parent | 71ce1ae56e4d43a0c568e2d4bfb154cd15306a82 (diff) |
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>
Diffstat (limited to 'arch/arm64/kvm/hyp/fpsimd.S')
-rw-r--r-- | arch/arm64/kvm/hyp/fpsimd.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kvm/hyp/fpsimd.S b/arch/arm64/kvm/hyp/fpsimd.S index 95b22e10996c..3c635929771a 100644 --- a/arch/arm64/kvm/hyp/fpsimd.S +++ b/arch/arm64/kvm/hyp/fpsimd.S @@ -21,7 +21,7 @@ SYM_FUNC_START(__fpsimd_restore_state) SYM_FUNC_END(__fpsimd_restore_state) SYM_FUNC_START(__sve_restore_state) - sve_load 0, x1, x2, 3, x4 + __sve_load 0, x1, 2 ret SYM_FUNC_END(__sve_restore_state) |