public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 0/4] support exception state migration and set VSESR_EL2 by user space
@ 2018-07-10 16:49 James Morse
  2018-07-10 16:49 ` [PATCH v7 1/4] arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTS James Morse
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: James Morse @ 2018-07-10 16:49 UTC (permalink / raw)
  To: kvmarm; +Cc: kvm, Marc Zyngier, linuxarm, gengdongjiu, linux-arm-kernel

Hi guys,

This is GengDongjiu's get/set events series[0], with additional plumbing for
32bit.

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

[0] https://lists.cs.columbia.edu/pipermail/kvmarm/2018-July/032010.html

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    | 44 +++++++++++++++++++++++---
 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                   | 47 ++++++++++++++++++++++++++++
 12 files changed, 194 insertions(+), 7 deletions(-)

-- 
2.18.0

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [PATCH v7 1/4] arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTS
@ 2018-07-11 11:48 gengdongjiu
  0 siblings, 0 replies; 11+ messages in thread
From: gengdongjiu @ 2018-07-11 11:48 UTC (permalink / raw)
  To: Marc Zyngier, James Morse, kvmarm@lists.cs.columbia.edu
  Cc: Linuxarm, linux-arm-kernel@lists.infradead.org,
	kvm@vger.kernel.org

> >> diff --git a/Documentation/virtual/kvm/api.txt
> >> b/Documentation/virtual/kvm/api.txt
> >> index d10944e619d3..e3940f8715a5 100644
> >> --- a/Documentation/virtual/kvm/api.txt
> >> +++ b/Documentation/virtual/kvm/api.txt
> >> @@ -835,11 +835,13 @@ struct kvm_clock_data e
> >>
> >>  Capability: KVM_CAP_VCPU_EVENTS
> >>  Extended by: KVM_CAP_INTR_SHADOW
> >> -Architectures: x86
> >> -Type: vm ioctl
> >> +Architectures: x86, arm64
> >
> >    In my previous patch, I only add the arm64 support, now you add patches to support arm32 platform,
> >    so you can add "ARM" to the Architectures, for example: "Architectures: x86, ARM, arm64"
> 
> That should be the job of the last patch, shouldn't it? At this point in the series, there is no 32bit support whatsoever.

>From this point in the series, it is ok to add that in the last patch because there is no 32bit support whatsoever.
Thanks for the corrections.

> 
> Thanks,
> 
> 	M.
> --
> Jazz is not dead. It just smells funny...

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-07-13 15:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-10 16:49 [PATCH v7 0/4] support exception state migration and set VSESR_EL2 by user space James Morse
2018-07-10 16:49 ` [PATCH v7 1/4] arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTS James Morse
2018-07-11  6:48   ` gengdongjiu
2018-07-11  7:45     ` Marc Zyngier
2018-07-10 16:49 ` [PATCH v7 2/4] arm64: KVM: export the capability to set guest SError syndrome James Morse
2018-07-10 16:49 ` [PATCH v7 3/4] KVM: arm64: Share the parts of get/set events useful to 32bit James Morse
2018-07-11  7:16   ` gengdongjiu
2018-07-13 15:27     ` James Morse
2018-07-10 16:49 ` [PATCH v7 4/4] KVM: arm: Add 32bit get/set events support James Morse
2018-07-11  3:14 ` [PATCH v7 0/4] support exception state migration and set VSESR_EL2 by user space gengdongjiu
  -- strict thread matches above, loose matches on Subject: below --
2018-07-11 11:48 [PATCH v7 1/4] arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTS gengdongjiu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox