Skip to content

support exception state migration and set VSESR_EL2 by user space

James Morse kvm kvmarm linux-arm-kernel 3 versions – Applied

Status from this message: Applied to kvmarm/next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest4 patches 1 replyApplied
  2. v84 patches 12 repliesSuperseded
  3. v74 patches 5 repliesSuperseded

Patches in v9 Applied

#Subject and filesSizeRepliesApplied
1/4arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTSDocumentation/virtual/kvm/api.txt arch/arm64/include/asm/kvm_emulate.h arch/arm64/include/asm/kvm_host.h +5 more+146 -70 replies
2/4arm64: KVM: export the capability to set guest SError syndromeDocumentation/virtual/kvm/api.txt arch/arm64/kvm/reset.c include/uapi/linux/kvm.h+30 -00 replies
3/4KVM: arm64: Share the parts of get/set events useful to 32bitarch/arm64/include/asm/kvm_host.h arch/arm64/kvm/guest.c virt/kvm/arm/arm.c+36 -210 replies
4/4KVM: arm: Add 32bit get/set events supportDocumentation/virtual/kvm/api.txt arch/arm/include/asm/kvm_host.h arch/arm/include/uapi/asm/kvm.h +2 more+45 -80 replies

Reviews trailers per patch

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

PatchJames MorseDongjiu Geng
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v9 thread

Cover letter [PATCH v9 0/4] support exception state migration and set VSESR_EL2 by user space

Hi guys,

Changes since v8: expanded the documentation based on feedback.

This series adds the get/set events API to KVM for arm/arm64 so that user-space can migrate pending SError, (which KVM may have made pending as part of its device emulation), and for RAS make a new SError with a specific ESR value pending. (Only systems with the v8.2 RAS Extensions can specify an ESR, KVM advertises this capability with a new cap:
KVM_CAP_ARM_INJECT_SERROR_ESR)

User-space can use this for emulation of the v8.2 CPU RAS features (using error nodes backed by mmio) or as part of NOTIFY_SEI which extends a v8.2 RAS SError to also have firmware-first CPER records.

Thanks,

James

Dongjiu Geng (2):
arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTS
arm64: KVM: export the capability to set guest SError syndrome

James Morse (2):
KVM: arm64: Share the parts of get/set events useful to 32bit
KVM: arm: Add 32bit get/set events support

 Documentation/virtual/kvm/api.txt    | 80 ++++++++++++++++++++++++++--
 arch/arm/include/asm/kvm_host.h      |  5 ++
 arch/arm/include/uapi/asm/kvm.h      | 13 +++++
 arch/arm/kvm/guest.c                 | 23 ++++++++
 arch/arm64/include/asm/kvm_emulate.h |  5 ++
 arch/arm64/include/asm/kvm_host.h    |  7 +++
 arch/arm64/include/uapi/asm/kvm.h    | 13 +++++
 arch/arm64/kvm/guest.c               | 33 ++++++++++++
 arch/arm64/kvm/inject_fault.c        |  6 +--
 arch/arm64/kvm/reset.c               |  4 ++
 include/uapi/linux/kvm.h             |  1 +
 virt/kvm/arm/arm.c                   | 45 ++++++++++++++++
 12 files changed, 228 insertions(+), 7 deletions(-)
Signature · 1 line
2.18.0