Skip to content

RFC KVM: arm64: Optime FPSIMD context handling

Dave Martin kvmarm linux-arm-kernel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: Convert lazy FPSIMD context switch trap to Carch/arm64/kvm/hyp/entry.S arch/arm64/kvm/hyp/switch.c+46 -350 replies
2/2KVM: arm64: Eliminate most redundant FPSIMD saves and restoresarch/arm64/include/asm/fpsimd.h arch/arm64/include/asm/kvm_host.h arch/arm64/include/asm/thread_info.h +4 more+88 -164 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] KVM: arm64: Optime FPSIMD context handling

This series attempts to integrate KVM's FPSIMD context handling more closely with the host, so that we can take advantage of better knowledge about when the FPSIMD registers are live and whose data they contain.

These patches are based on:

git://git.kernel.org/pub/scm/linux/kernel/git/cdall/linux.git vhe-optimize-v4 ef09bac916ae ("KVM: arm/arm64: Avoid VGICv3 save/restore on VHE with no IRQs")

...and currently completely untested.

They do build for defconfig at least.

This is still a big hack and I may have missed something critical, so I invite people to come and poke holes it...

Dave Martin (2):
KVM: arm64: Convert lazy FPSIMD context switch trap to C
KVM: arm64: Eliminate most redundant FPSIMD saves and restores

 arch/arm64/include/asm/fpsimd.h      |  1 +
 arch/arm64/include/asm/kvm_host.h    | 10 ++++++-
 arch/arm64/include/asm/thread_info.h |  1 +
 arch/arm64/include/uapi/asm/kvm.h    | 14 +++++----
 arch/arm64/kernel/fpsimd.c           |  7 ++++-
 arch/arm64/kvm/hyp/entry.S           | 57 ++++++++++++++----------------------
 arch/arm64/kvm/hyp/switch.c          | 37 ++++++++++++++++++++---
 virt/kvm/arm/arm.c                   | 50 +++++++++++++++++++++++++++++++
 8 files changed, 130 insertions(+), 47 deletions(-)
Signature · 1 line
2.1.4