[PATCH 6.12 0/8] KVM: arm64: Backport of SVE fixes to v6.12

From: Mark Brown
Date: Thu Mar 13 2025 - 20:35:42 EST


This series backports some recent fixes for SVE/KVM interactions from
Mark Rutland to v6.12.

Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
---
Fuad Tabba (1):
KVM: arm64: Calculate cptr_el2 traps on activating traps

Mark Rutland (7):
KVM: arm64: Unconditionally save+flush host FPSIMD/SVE/SME state
KVM: arm64: Remove host FPSIMD saving for non-protected KVM
KVM: arm64: Remove VHE host restore of CPACR_EL1.ZEN
KVM: arm64: Remove VHE host restore of CPACR_EL1.SMEN
KVM: arm64: Refactor exit handlers
KVM: arm64: Mark some header functions as inline
KVM: arm64: Eagerly switch ZCR_EL{1,2}

arch/arm64/include/asm/kvm_host.h | 25 ++----
arch/arm64/kernel/fpsimd.c | 25 ------
arch/arm64/kvm/arm.c | 9 ---
arch/arm64/kvm/fpsimd.c | 100 ++----------------------
arch/arm64/kvm/hyp/entry.S | 5 ++
arch/arm64/kvm/hyp/include/hyp/switch.h | 133 ++++++++++++++++++++++---------
arch/arm64/kvm/hyp/nvhe/hyp-main.c | 15 ++--
arch/arm64/kvm/hyp/nvhe/pkvm.c | 29 -------
arch/arm64/kvm/hyp/nvhe/switch.c | 134 ++++++++++++++++++--------------
arch/arm64/kvm/hyp/vhe/switch.c | 21 ++---
10 files changed, 204 insertions(+), 292 deletions(-)
---
base-commit: e9cc806c0152fa9993f817cebf42989a3e2530bb
change-id: 20250227-stable-sve-6-12-777778ad28fb

Best regards,
--
Mark Brown <broonie@xxxxxxxxxx>