KVM: arm64: Optimise FPSIMD context switching
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v11 Latest19 patches 6 repliesIn review
- v1018 patches 50 repliesSuperseded
- v916 patches 2 repliesSuperseded
Earlier versions · 6
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v7 | 16 patches | 21 replies | Superseded | |
| v6 | 15 patches | 15 replies | Superseded | |
| v5 | 14 patches | 15 replies | Superseded | |
| v3 RFC | 4 patches | 4 replies | Superseded | |
| v2 RFC | 3 patches | 10 replies | Superseded | |
| v1 RFC | 4 patches | 0 replies | Superseded |
Patches in v11 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/19 | arm64: fpsimd: Fix TIF_FOREIGN_FPSTATE after invalidating cpu regsarch/ | +2 | 0 replies | |
| 2/19 | thread_info: Add update_thread_flag() helpersinclude/ include/ | +17 | 1 reply | |
| 3/19 | arm64: Use update{,_tsk}_thread_flag()arch/ | +8 | 0 replies | |
| 4/19 | KVM: arm/arm64: Introduce kvm_arch_vcpu_run_pid_changeinclude/ virt/ virt/ | +18 | 0 replies | |
| 5/19 | KVM: arm64: Convert lazy FPSIMD context switch trap to Carch/ arch/ | +46 | 0 replies | |
| 6/19 | arm64: fpsimd: Generalise context saving for non-task contextsarch/ | +14 | 0 replies | |
| 7/19 | arm64: fpsimd: Avoid FPSIMD context leakage for the init taskarch/ | +7 | 1 reply | |
| 8/19 | arm64: fpsimd: Eliminate task->mm checksarch/ arch/ | +19 | 4 replies | |
| 9/19 | arm64/sve: Refactor user SVE trap maintenance for external usearch/ | +15 | 0 replies | |
| 10/19 | KVM: arm64: Repurpose vcpu_arch.debug_flags for general-purpose flagsarch/ arch/ arch/ +3 more | +18 | 0 replies | |
| 11/19 | KVM: arm64: Optimise FPSIMD handling to reduce guest/host thrashingarch/ arch/ arch/ +6 more | +192 | 0 replies | |
| 12/19 | arm64/sve: Move read_zcr_features() out of cpufeature.harch/ arch/ arch/ +2 more | +32 | 0 replies | |
| 13/19 | arm64/sve: Switch sve_pffr() argument from task to threadarch/ | +5 | 0 replies | |
| 14/19 | arm64/sve: Move sve_pffr() to fpsimd.h and make inlinearch/ arch/ arch/ | +24 | 0 replies | |
| 15/19 | KVM: arm64: Save host SVE context as appropriatearch/ arch/ arch/ +3 more | +47 | 0 replies | |
| 16/19 | KVM: arm64: Remove eager host SVE state savingarch/ arch/ arch/ +1 more | +0 | 0 replies | |
| 17/19 | KVM: arm64: Remove redundant *exit_code changes in fpsimd_guest_exit()arch/ | +4 | 0 replies | |
| 18/19 | KVM: arm64: Fold redundant exit code checks out of fixup_guest_exit()arch/ | +8 | 0 replies | |
| 19/19 | KVM: arm64: Invoke FPSIMD context switch trap from Carch/ arch/ arch/ | +13 | 0 replies |
Reviews trailers per patch
All 19 patches have a Reviewed-by or Acked-by.
| Patch | Christoffer Dall | Alex Bennée | Catalin Marinas | Marc Zyngier | Peter Zijlstra (Intel) | Steven Rostedt (VMware) |
|---|---|---|---|---|---|---|
| 1/19 | R-b | R-b | R-b | |||
| 2/19 | R-b | A-b | A-b | A-b | A-b | |
| 3/19 | R-b | A-b | A-b | |||
| 4/19 | R-b | R-b | ||||
| 5/19 | R-b | R-b | ||||
| 6/19 | R-b | A-b | A-b | |||
| 7/19 | R-b | R-b | ||||
| 8/19 | R-b | R-b | R-b | |||
| 9/19 | R-b | A-b | A-b | |||
| 10/19 | A-b | R-b | R-b | |||
| 11/19 | R-b | R-b | A-b | R-b | ||
| 12/19 | R-b | A-b | A-b | |||
| 13/19 | R-b | A-b | A-b | |||
| 14/19 | R-b | A-b | A-b | |||
| 15/19 | R-b | A-b | ||||
| 16/19 | A-b | R-b | A-b | A-b | ||
| 17/19 | A-b | R-b | A-b | |||
| 18/19 | A-b | R-b | R-b | |||
| 19/19 | R-b | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.
Cover letter [PATCH v11 00/19] KVM: arm64: Optimise FPSIMD context switching
Note: Most of these patches are Arm-specific. People not Cc'd on the whole series can find it in the linux-arm-kernel archive [2].
Git: see [3]
This series aims to improve the way FPSIMD context is handled by KVM. Changes since the previous v10 [1] are minor, but one patch has been split.
** To Catalin Marinas, Alex Bennée: **
I have retained your Reviewed-bys on patches 7 and 8: these were split from patch 7 of v9. Although the code is (almost) the same as noted below, I advise you to take a look.
(all) reviewers please note:
* Patches 7 and 8 have been split from the previous patch 7, since the update to INIT_THREAD_INFO is logically a fix and deserves a Fixes: tag.
I have also moved the definition of INIT_THREAD_INFO to after the TIF_* definitions that it now depends on (mysteriously this wasn't causing a compile error anyway, but I've not dug into why).
* Other changes are all additions or rewordings of comments, and amendments commit messages.
Cheers
---Dave
[1] [PATCH v10 00/18] KVM: arm64: Optimise FPSIMD context switching
http://lists.infradead.org/pipermail/linux-arm-kernel/2018-May/579899.html
[2] linux-arm-kernel archive
http://lists.infradead.org/pipermail/linux-arm-kernel/2018-May/thread.html
[3] http://linux-arm.org/git?p=linux-dm.git;a=shortlog;h=refs/heads/kvm-vhe-fpsimd/v11
Christoffer Dall (1):
KVM: arm/arm64: Introduce kvm_arch_vcpu_run_pid_change
Dave Martin (18):
arm64: fpsimd: Fix TIF_FOREIGN_FPSTATE after invalidating cpu regs
thread_info: Add update_thread_flag() helpers
arm64: Use update{,_tsk}_thread_flag()
KVM: arm64: Convert lazy FPSIMD context switch trap to C
arm64: fpsimd: Generalise context saving for non-task contexts
arm64: fpsimd: Avoid FPSIMD context leakage for the init task
arm64: fpsimd: Eliminate task->mm checks
arm64/sve: Refactor user SVE trap maintenance for external use
KVM: arm64: Repurpose vcpu_arch.debug_flags for general-purpose flags
KVM: arm64: Optimise FPSIMD handling to reduce guest/host thrashing arm64/sve: Move read_zcr_features() out of cpufeature.h arm64/sve: Switch sve_pffr() argument from task to thread arm64/sve: Move sve_pffr() to fpsimd.h and make inline
KVM: arm64: Save host SVE context as appropriate
KVM: arm64: Remove eager host SVE state saving
KVM: arm64: Remove redundant *exit_code changes in fpsimd_guest_exit()
KVM: arm64: Fold redundant exit code checks out of fixup_guest_exit()
KVM: arm64: Invoke FPSIMD context switch trap from C
arch/arm/include/asm/kvm_host.h | 10 +- arch/arm64/Kconfig | 7 ++ arch/arm64/include/asm/cpufeature.h | 29 ------ arch/arm64/include/asm/fpsimd.h | 21 +++++ arch/arm64/include/asm/kvm_asm.h | 3 - arch/arm64/include/asm/kvm_host.h | 45 +++++++-- arch/arm64/include/asm/processor.h | 15 ++- arch/arm64/include/asm/thread_info.h | 13 +-- arch/arm64/kernel/fpsimd.c | 177 +++++++++++++++++------------------ arch/arm64/kernel/ptrace.c | 1 + arch/arm64/kvm/Kconfig | 1 + arch/arm64/kvm/Makefile | 2 +- arch/arm64/kvm/debug.c | 8 +- arch/arm64/kvm/fpsimd.c | 110 ++++++++++++++++++++++ arch/arm64/kvm/hyp/debug-sr.c | 6 +- arch/arm64/kvm/hyp/entry.S | 43 --------- arch/arm64/kvm/hyp/hyp-entry.S | 19 ---- arch/arm64/kvm/hyp/switch.c | 124 ++++++++++++++++-------- arch/arm64/kvm/hyp/sysreg-sr.c | 4 +- arch/arm64/kvm/sys_regs.c | 9 +- include/linux/kvm_host.h | 9 ++ include/linux/sched.h | 6 ++ include/linux/thread_info.h | 11 +++ virt/kvm/Kconfig | 3 + virt/kvm/arm/arm.c | 14 ++- virt/kvm/kvm_main.c | 7 +- 26 files changed, 437 insertions(+), 260 deletions(-) create mode 100644 arch/arm64/kvm/fpsimd.c
Signature · 1 line
2.1.4