Skip to content

KVM: arm64: Use 'generic' vCPU target across all uarches

Oliver Upton kvmarm 2 versions – Applied

Status from this message: Applied to next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 8 repliesApplied
  2. v14 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Set the generic v8 target in the kvm_vcpu_init struct initializer (Marc)
- Use the kvm_vcpu_initialized() helper (Zenghui)
- Collect Zenghui's ack/reviews (Thanks!)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: arm64: Delete pointless switch statement in kvm_reset_vcpu()arch/arm64/kvm/reset.c+10 -151 reply
2/4KVM: arm64: Remove pointless check for changed init targetarch/arm64/kvm/arm.c+1 -22 replies
3/4KVM: arm64: Replace vCPU target with a configuration flagarch/arm64/include/asm/kvm_host.h arch/arm64/kvm/arm.c arch/arm64/kvm/hyp/nvhe/switch.c+9 -101 reply
4/4KVM: arm64: Always return generic v8 as the preferred targetarch/arm64/include/asm/kvm_host.h arch/arm64/kvm/arm.c arch/arm64/kvm/guest.c+5 -201 reply

Reviews trailers per patch

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

PatchZenghui YuShaoqin Huang
1/4R-b R-b
2/4R-b R-b
3/4R-b R-b
4/4A-b R-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/4] KVM: arm64: Use 'generic' vCPU target across all uarches

kvm_vcpu_init::target is quite useless at this point. We don't do any uarch-specific emulation in the first place, and require userspace select the 'generic' vCPU target on all but a few implementations.

Small series to (1) clean up usage of the target value in the kernel and
(2) switch to the 'generic' target on implementations that previously had their own target values. The implementation-specific values are still tolerated, though, to avoid UAPI breakage.

v1: https://lore.kernel.org/kvmarm/[email protected]/

v1 -> v2:
- Set the generic v8 target in the kvm_vcpu_init struct initializer (Marc)
- Use the kvm_vcpu_initialized() helper (Zenghui)
- Collect Zenghui's ack/reviews (Thanks!)

Oliver Upton (4):
KVM: arm64: Delete pointless switch statement in kvm_reset_vcpu()
KVM: arm64: Remove pointless check for changed init target
KVM: arm64: Replace vCPU target with a configuration flag
KVM: arm64: Always return generic v8 as the preferred target

 arch/arm64/include/asm/kvm_host.h |  6 +++---
 arch/arm64/kvm/arm.c              | 24 +++++++++++-------------
 arch/arm64/kvm/guest.c            | 15 ---------------
 arch/arm64/kvm/hyp/nvhe/switch.c  |  2 +-
 arch/arm64/kvm/reset.c            | 25 ++++++++++---------------
 5 files changed, 25 insertions(+), 47 deletions(-)

base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5

Signature · 1 line
2.41.0.255.g8b1d071c50-goog