Skip to content

KVM: arm64: Another set of CSV2-related fixes

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 Latest3 patches 2 repliesIn review
  2. v13 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: arm64: Allow setting of ID_AA64PFR0_EL1.CSV2 from userspacearch/arm64/include/asm/kvm_host.h arch/arm64/kvm/arm.c arch/arm64/kvm/sys_regs.c+56 -41 reply
2/3KVM: arm64: Unify trap handlers injecting an UNDEFarch/arm64/kvm/sys_regs.c+25 -401 reply
3/3KVM: arm64: Handle SCXTNUM_ELx trapsarch/arm64/include/asm/sysreg.h arch/arm64/kvm/sys_regs.c+8 -00 replies

Reviews trailers per patch

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

PatchWill Deacon
1/3A-b
2/3A-b
3/3A-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/3] KVM: arm64: Another set of CSV2-related fixes

This small series addresses a couple of Spectre-v2 related issues:

- Fix a live migration regression introduced with the setting of CSV2 on systems that are not affected by Spectre-v2, but that don't directly expose it in ID_AA64PFR0_EL1

- Inject an UNDEF exception if the guest tries to access any of SCXTNUM_ELx, as we don't advertise it to guests.

Patches on top of 5.10-rc2.

* From v1:
- Only register a new value for CSV2 on a valid write to ID_AA64PFR0_EL1
- Delete even more code in patch #2

Marc Zyngier (3):
KVM: arm64: Allow setting of ID_AA64PFR0_EL1.CSV2 from userspace
KVM: arm64: Unify trap handlers injecting an UNDEF
KVM: arm64: Handle SCXTNUM_ELx traps

 arch/arm64/include/asm/kvm_host.h |   2 +
 arch/arm64/include/asm/sysreg.h   |   4 ++
 arch/arm64/kvm/arm.c              |  16 +++++
 arch/arm64/kvm/sys_regs.c         | 111 ++++++++++++++++++------------
 4 files changed, 89 insertions(+), 44 deletions(-)
Signature · 1 line
2.28.0