Skip to content

KVM: arm64: Move host-specific data out of kvm_vcpu_arch

Marc Zyngier kvm kvmarm linux-arm-kernel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 10 repliesIn review
  2. v15 patches 12 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5KVM: arm64: Add accessor for per-CPU statearch/arm64/include/asm/kvm_host.h arch/arm64/kvm/arm.c arch/arm64/kvm/hyp/include/hyp/debug-sr.h +7 more+53 -171 reply
2/5KVM: arm64: Exclude host_debug_data from vcpu_archarch/arm64/include/asm/kvm_host.h arch/arm64/kvm/hyp/include/hyp/debug-sr.h arch/arm64/kvm/hyp/nvhe/debug-sr.c+23 -201 reply
3/5KVM: arm64: Exclude mdcr_el2_host from kvm_vcpu_archarch/arm64/include/asm/kvm_host.h arch/arm64/kvm/hyp/include/hyp/switch.h+4 -51 reply
4/5KVM: arm64: Exclude host_fpsimd_state pointer from kvm_vcpu_archarch/arm64/include/asm/kvm_host.h arch/arm64/kvm/fpsimd.c arch/arm64/kvm/hyp/include/hyp/switch.h +1 more+3 -50 replies
5/5KVM: arm64: Exclude FP ownership from kvm_vcpu_archarch/arm64/include/asm/kvm_emulate.h arch/arm64/include/asm/kvm_host.h arch/arm64/kvm/arm.c +5 more+19 -277 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchMark BrownSuzuki K Poulose
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] KVM: arm64: Move host-specific data out of kvm_vcpu_arch

This is the second take on this series aiming at reducing the abuse of the kvm_vcpu_arch structure, and moving things info the per-CPU context.

* From v1 [1]:

- Fixed the per-CPU accessor outside of the hypervisor code (the protected case is... interesting)

- Spelling fixes

- Collected RBs

- Rebased on kvmarm-6.9

[1] https://lore.kernel.org/r/[email protected]

Marc Zyngier (5):
KVM: arm64: Add accessor for per-CPU state
KVM: arm64: Exclude host_debug_data from vcpu_arch
KVM: arm64: Exclude mdcr_el2_host from kvm_vcpu_arch
KVM: arm64: Exclude host_fpsimd_state pointer from kvm_vcpu_arch
KVM: arm64: Exclude FP ownership from kvm_vcpu_arch

 arch/arm64/include/asm/kvm_emulate.h      |  4 +-
 arch/arm64/include/asm/kvm_host.h         | 89 ++++++++++++++++-------
 arch/arm64/kvm/arm.c                      |  8 +-
 arch/arm64/kvm/fpsimd.c                   | 13 ++--
 arch/arm64/kvm/hyp/include/hyp/debug-sr.h |  8 +-
 arch/arm64/kvm/hyp/include/hyp/switch.h   | 20 ++---
 arch/arm64/kvm/hyp/nvhe/debug-sr.c        |  8 +-
 arch/arm64/kvm/hyp/nvhe/hyp-main.c        |  3 -
 arch/arm64/kvm/hyp/nvhe/psci-relay.c      |  2 +-
 arch/arm64/kvm/hyp/nvhe/setup.c           |  3 +-
 arch/arm64/kvm/hyp/nvhe/switch.c          |  6 +-
 arch/arm64/kvm/hyp/vhe/switch.c           |  6 +-
 arch/arm64/kvm/hyp/vhe/sysreg-sr.c        |  4 +-
 arch/arm64/kvm/pmu.c                      |  2 +-
 14 files changed, 102 insertions(+), 74 deletions(-)
Signature · 1 line
2.39.2