Skip to content

KVM: arm64: writable MIDR/REVIDR

Sebastian Ott kvmarm linux-arm-kernel lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 3 repliesIn review
  2. v24 patches 9 repliesSuperseded
  3. v14 patches 3 repliesSuperseded

Changes in v3 from the cover letter

* handle VPIDR_EL2 as part of vcpu ctxt - thanks Oliver!

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: arm64: Allow userspace to change MIDR_EL1arch/arm64/include/asm/kvm_host.h arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h arch/arm64/kvm/hyp/nvhe/sysreg-sr.c +2 more+64 -240 replies
2/4KVM: arm64: Allow userspace to change REVIDR_EL1arch/arm64/include/asm/kvm_host.h arch/arm64/kvm/sys_regs.c+11 -30 replies
3/4KVM: arm64: Allow userspace to change AIDR_EL1arch/arm64/include/asm/kvm_host.h arch/arm64/kvm/sys_regs.c+10 -830 replies
4/4KVM: selftests: arm64: Test writes to MIDR,REVIDR,AIDRtools/testing/selftests/kvm/arm64/set_id_regs.c+26 -60 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/4] KVM: arm64: writable MIDR/REVIDR

Based on prior discussion [1] this series allows VMMs to change MIDR/REVIDR to enable migration between machines that differ in these registers. Since these are used for errata handling the errata management series [2] is a prerequisite for this one.

changes for V3:
* handle VPIDR_EL2 as part of vcpu ctxt - thanks Oliver!

changes for V2:
* let the guest actually observe the changed MIDR_EL1 value
* extra .set_user function
* added selftest

[1] https://lore.kernel.org/kvmarm/[email protected]/T/#mb855bc51714095a164a7b26bb8bead1606e4b753
[2] https://lore.kernel.org/kvmarm/[email protected]/T/

Sebastian Ott (4):
KVM: arm64: Allow userspace to change MIDR_EL1
KVM: arm64: Allow userspace to change REVIDR_EL1
KVM: arm64: Allow userspace to change AIDR_EL1
KVM: selftests: arm64: Test writes to MIDR,REVIDR,AIDR

 arch/arm64/include/asm/kvm_host.h             |   9 ++
 arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h    |   5 +-
 arch/arm64/kvm/hyp/nvhe/sysreg-sr.c           |  10 +-
 arch/arm64/kvm/hyp/vhe/sysreg-sr.c            |  28 ++--
 arch/arm64/kvm/sys_regs.c                     | 137 +++++++-----------
 .../testing/selftests/kvm/arm64/set_id_regs.c |  32 +++-
 6 files changed, 108 insertions(+), 113 deletions(-)
Signature · 1 line
2.42.0