All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v11 0/4] set VSESR_EL2 by user space and support NOTIFY_SEI notification
@ 2018-04-09 21:36 ` Dongjiu Geng
  0 siblings, 0 replies; 58+ messages in thread
From: Dongjiu Geng @ 2018-04-09 21:36 UTC (permalink / raw)
  To: rkrcmar, corbet, christoffer.dall, marc.zyngier, james.morse,
	linux, catalin.marinas, rjw, bp, lenb, kvm, linux-doc,
	linux-kernel, linux-arm-kernel, kvmarm, linux-acpi, devel
  Cc: gengdongjiu, huangshaoyu, zhengxiang9

1. Detect whether KVM can set set guest SError syndrome
2. Support to Set VSESR_EL2 and inject SError by user space.
3. Support live migration to keep SError pending state and VSESR_EL2 value.
4. ACPI 6.1 adds support for NOTIFY_SEI as a GHES notification mechanism, so support this
   notification in software, KVM or kernel ARCH code call handle_guest_sei() to let ACP driver
   to handle this notification.

Change since V10:

Address James's comments, thanks James
1. Merge the helper function with the user.
2. Move the ISS_MASK into pend_guest_serror() to clear top bits
3. Make kvm_vcpu_events struct align to 4 bytes
4. Add something check in the kvm_arm_vcpu_set_events()
5. Check kvm_arm_vcpu_get/set_events()'s return value.
6. Initialise kvm_vcpu_events to 0 so that padding transferred to user-space doesn't
    contain kernel stack.

Dongjiu Geng (4):
  arm64: KVM: export the capability to set guest SError syndrome
  arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTS
  ACPI / APEI: Add SEI notification type support for ARMv8
  arm64: handle NOTIFY_SEI notification by the APEI driver

 Documentation/virtual/kvm/api.txt    | 39 ++++++++++++++++++++++++--
 arch/arm/include/asm/kvm_host.h      |  6 ++++
 arch/arm/kvm/guest.c                 | 12 ++++++++
 arch/arm64/include/asm/kvm_emulate.h |  5 ++++
 arch/arm64/include/asm/kvm_host.h    |  7 +++++
 arch/arm64/include/asm/system_misc.h |  1 +
 arch/arm64/include/uapi/asm/kvm.h    | 12 ++++++++
 arch/arm64/kernel/traps.c            |  4 +++
 arch/arm64/kvm/guest.c               | 31 +++++++++++++++++++++
 arch/arm64/kvm/inject_fault.c        |  7 ++++-
 arch/arm64/kvm/reset.c               |  4 +++
 arch/arm64/mm/fault.c                | 10 +++++++
 drivers/acpi/apei/Kconfig            | 15 ++++++++++
 drivers/acpi/apei/ghes.c             | 53 ++++++++++++++++++++++++++++++++++++
 include/acpi/ghes.h                  |  1 +
 include/uapi/linux/kvm.h             |  1 +
 virt/kvm/arm/arm.c                   | 21 ++++++++++++++
 17 files changed, 226 insertions(+), 3 deletions(-)

-- 
1.9.1

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

end of thread, other threads:[~2018-04-19  4:10 UTC | newest]

Thread overview: 58+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-09 21:36 [PATCH v11 0/4] set VSESR_EL2 by user space and support NOTIFY_SEI notification Dongjiu Geng
2018-04-09 21:36 ` [Devel] " Dongjiu Geng
2018-04-09 21:36 ` Dongjiu Geng
2018-04-09 21:36 ` Dongjiu Geng
2018-04-09 21:36 ` Dongjiu Geng
2018-04-09 21:36 ` [PATCH v11 1/4] arm64: KVM: export the capability to set guest SError syndrome Dongjiu Geng
2018-04-09 21:36   ` [Devel] " Dongjiu Geng
2018-04-09 21:36   ` Dongjiu Geng
2018-04-09 21:36   ` Dongjiu Geng
2018-04-09 21:36   ` Dongjiu Geng
2018-04-10 14:15   ` James Morse
2018-04-10 14:15     ` [Devel] " James Morse
2018-04-10 14:15     ` James Morse
2018-04-10 14:15     ` James Morse
2018-04-12 12:55     ` gengdongjiu
2018-04-12 12:55       ` gengdongjiu
2018-04-12 12:55       ` gengdongjiu
2018-04-09 21:36 ` [PATCH v11 2/4] arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTS Dongjiu Geng
2018-04-09 21:36   ` [Devel] " Dongjiu Geng
2018-04-09 21:36   ` Dongjiu Geng
2018-04-09 21:36   ` Dongjiu Geng
2018-04-09 21:36   ` Dongjiu Geng
2018-04-10 14:15   ` James Morse
2018-04-10 14:15     ` [Devel] " James Morse
2018-04-10 14:15     ` James Morse
2018-04-10 14:15     ` James Morse
2018-04-12 15:11     ` gengdongjiu
2018-04-12 15:11       ` gengdongjiu
2018-04-12 15:11       ` gengdongjiu
2018-04-09 21:36 ` [PATCH v11 3/4] ACPI / APEI: Add SEI notification type support for ARMv8 Dongjiu Geng
2018-04-09 21:36   ` [Devel] " Dongjiu Geng
2018-04-09 21:36   ` Dongjiu Geng
2018-04-09 21:36   ` Dongjiu Geng
2018-04-09 21:36   ` Dongjiu Geng
2018-04-09 21:36 ` [PATCH v11 4/4] arm64: handle NOTIFY_SEI notification by the APEI driver Dongjiu Geng
2018-04-09 21:36   ` [Devel] " Dongjiu Geng
2018-04-09 21:36   ` Dongjiu Geng
2018-04-09 21:36   ` Dongjiu Geng
2018-04-09 21:36   ` Dongjiu Geng
2018-04-09 21:36   ` Dongjiu Geng
2018-04-10 14:15 ` [PATCH v11 0/4] set VSESR_EL2 by user space and support NOTIFY_SEI notification James Morse
2018-04-10 14:15   ` [Devel] " James Morse
2018-04-10 14:15   ` James Morse
2018-04-10 14:15   ` James Morse
2018-04-12  6:09   ` gengdongjiu
2018-04-12  6:09     ` [Devel] " gengdongjiu
2018-04-12  6:09     ` gengdongjiu
2018-04-12  6:09     ` gengdongjiu
2018-04-12  6:09     ` gengdongjiu
2018-04-12 16:14     ` James Morse
2018-04-12 16:14       ` [Devel] " James Morse
2018-04-12 16:14       ` James Morse
2018-04-12 16:14       ` James Morse
2018-04-19  4:09       ` gengdongjiu
2018-04-19  4:09         ` [Devel] " gengdongjiu
2018-04-19  4:09         ` gengdongjiu
2018-04-19  4:09         ` gengdongjiu
2018-04-19  4:09         ` gengdongjiu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.