On Thu, Mar 18, 2021 at 12:25:27PM +0000, Marc Zyngier wrote:
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 | 8 +++--
arch/arm64/include/asm/kvm_hyp.h | 2 +-
arch/arm64/kvm/hyp/fpsimd.S | 2 +-
arch/arm64/kvm/hyp/include/hyp/switch.h | 40 +++++++++++++++----------
4 files changed, 32 insertions(+), 20 deletions(-)
Acked-by: Will Deacon <will@kernel.org>
Will
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel