mbox series

[00/10] KVM: arm64: Backport of SVE fixes to v5.15

Message ID 20250402-stable-sve-5-15-v1-0-84d0e5ff1102@kernel.org (mailing list archive)
Headers show
Series KVM: arm64: Backport of SVE fixes to v5.15 | expand

Message

Mark Brown April 2, 2025, 10:59 p.m. UTC
This series backports some recent fixes for SVE/KVM interactions from
Mark Rutland to v5.15.

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

Marc Zyngier (1):
      KVM: arm64: Get rid of host SVE tracking/saving

Mark Brown (4):
      KVM: arm64: Discard any SVE state when entering KVM guests
      arm64/fpsimd: Track the saved FPSIMD state type separately to TIF_SVE
      arm64/fpsimd: Have KVM explicitly say which FP registers to save
      arm64/fpsimd: Stop using TIF_SVE to manage register saving in KVM

Mark Rutland (4):
      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: Eagerly switch ZCR_EL{1,2}

 arch/arm64/include/asm/fpsimd.h         |   4 +-
 arch/arm64/include/asm/kvm_host.h       |  17 +++--
 arch/arm64/include/asm/kvm_hyp.h        |   7 ++
 arch/arm64/include/asm/processor.h      |   7 ++
 arch/arm64/kernel/fpsimd.c              | 117 +++++++++++++++++++++++---------
 arch/arm64/kernel/process.c             |   3 +
 arch/arm64/kernel/ptrace.c              |   3 +
 arch/arm64/kernel/signal.c              |   3 +
 arch/arm64/kvm/arm.c                    |   1 -
 arch/arm64/kvm/fpsimd.c                 |  72 +++++++++-----------
 arch/arm64/kvm/hyp/entry.S              |   5 ++
 arch/arm64/kvm/hyp/include/hyp/switch.h |  86 +++++++++++++++--------
 arch/arm64/kvm/hyp/nvhe/hyp-main.c      |   9 ++-
 arch/arm64/kvm/hyp/nvhe/switch.c        |  52 +++++++++-----
 arch/arm64/kvm/hyp/vhe/switch.c         |   4 ++
 arch/arm64/kvm/reset.c                  |   3 +
 16 files changed, 266 insertions(+), 127 deletions(-)
---
base-commit: 0c935c049b5c196b83b968c72d348ae6fff83ea2
change-id: 20250326-stable-sve-5-15-bfd75482dcfa

Best regards,

Comments

Mark Brown April 2, 2025, 11:16 p.m. UTC | #1
On Wed, Apr 02, 2025 at 11:59:32PM +0100, Mark Brown wrote:
> This series backports some recent fixes for SVE/KVM interactions from
> Mark Rutland to v5.15.

*sigh* Forgot Greg and the stable list here - will resend, sorry for the
noise.
Will Deacon April 4, 2025, 1:03 p.m. UTC | #2
On Thu, Apr 03, 2025 at 12:16:20AM +0100, Mark Brown wrote:
> On Wed, Apr 02, 2025 at 11:59:32PM +0100, Mark Brown wrote:
> > This series backports some recent fixes for SVE/KVM interactions from
> > Mark Rutland to v5.15.
> 
> *sigh* Forgot Greg and the stable list here - will resend, sorry for the
> noise.

I think you made the same mistake on the 6.1 backports too:

https://lore.kernel.org/r/20250325-stable-sve-6-1-v1-0-83259d427d84@kernel.org

Will
Mark Brown April 4, 2025, 1:20 p.m. UTC | #3
On Fri, Apr 04, 2025 at 02:03:17PM +0100, Will Deacon wrote:

> I think you made the same mistake on the 6.1 backports too:

> https://lore.kernel.org/r/20250325-stable-sve-6-1-v1-0-83259d427d84@kernel.org

Thanks for spotting that.