]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcf5c6449fdca8f23767863bfc81cbc25d211ecfa
tree4d8d06f2ea32c5ef416cae313e09a5ee2aad0136
parent463b480237f7f8080ad141f42b9245105d3e3d02
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