linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v9 0/3] KVM: PPC: Add FWNMI support for KVM guests on POWER
@ 2017-05-11  6:14 Mahesh J Salgaonkar
  2017-05-11  6:15 ` [PATCH v9 1/3] KVM: PPC: Add new capability to control MCE behaviour Mahesh J Salgaonkar
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mahesh J Salgaonkar @ 2017-05-11  6:14 UTC (permalink / raw)
  To: gleb, agraf, kvm-ppc, linuxppc-dev, Paul Mackerras, pbonzini
  Cc: Michael Ellerman, kvm, david

From: Aravinda Prasad <aravinda@linux.vnet.ibm.com>

This series of patches add FWNMI support for KVM guests
on POWER.

Memory errors such as bit flips that cannot be corrected
by hardware is passed on to the kernel for handling
by raising machine check exception (an NMI). Upon such
machine check exceptions, if the address in error belongs
to the guest, the error is passed on to the guest
kernel for handling. However, for guest kernels that
have issued "ibm,nmi-register" call, QEMU should build
an error log and pass on the error log to the guest-
kernel registered machine check handler routine.

This patch series adds the functionality to pass on the
machine check exception to the guest kernel by
giving control to QEMU. QEMU builds the error log
and invokes the guest-kernel registered handler.

QEMU part can be found at:
http://lists.nongnu.org/archive/html/qemu-ppc/2015-12/msg00199.html

Change Log v9:
  - Rebase to latest upstream.

Change Log v8:
  - export symbol machine_check_print_event_info() and directly call it
    from kvmppc_handle_exit_hv().

Change Log v7:
  - Move the FWNMI capability inside #ifdef CONFIG_PPC_BOOK3S_64 block.
  - Split 2nd patch into two, one that adds mce hook and other that touches
    kvm code.

Change Log v6:
  - Deliver all MCE errors (handled/unhandled) for FWNMI capable guest.
  - Use kvm_run->flags to pass NMI disposition status.

Change Log v5:
  - Added capability documentation. No functionality/code change.

Change Log v4:
  - Allow host-side handling of the machine check exception before
    passing on the exception to the guest.

Change Log v3:
  - Split the patch into 2. First patch introduces the
    new capability while the second one enhances KVM to
    redirect MCE.
  - Fix access width bug

Change Log v2:
  - Added KVM capability
---

Aravinda Prasad (2):
      KVM: PPC: Add new capability to control MCE behaviour
      KVM: PPC: Exit guest upon MCE when FWNMI capability is enabled

Mahesh Salgaonkar (1):
      powerpc/book3s: EXPORT_SYMBOL machine_check_print_event_info


 Documentation/virtual/kvm/api.txt       |   11 +++++++
 arch/powerpc/include/asm/kvm_host.h     |    3 ++
 arch/powerpc/include/uapi/asm/kvm.h     |    6 ++++
 arch/powerpc/kernel/asm-offsets.c       |    1 +
 arch/powerpc/kernel/mce.c               |    1 +
 arch/powerpc/kvm/book3s_hv.c            |   23 ++++++++------
 arch/powerpc/kvm/book3s_hv_ras.c        |   18 ++++++++++-
 arch/powerpc/kvm/book3s_hv_rmhandlers.S |   52 ++++++++++++++++++-------------
 arch/powerpc/kvm/powerpc.c              |    9 +++++
 include/uapi/linux/kvm.h                |    1 +
 10 files changed, 93 insertions(+), 32 deletions(-)

--
Signature

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

end of thread, other threads:[~2017-05-11  7:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-11  6:14 [PATCH v9 0/3] KVM: PPC: Add FWNMI support for KVM guests on POWER Mahesh J Salgaonkar
2017-05-11  6:15 ` [PATCH v9 1/3] KVM: PPC: Add new capability to control MCE behaviour Mahesh J Salgaonkar
2017-05-11  6:15 ` [PATCH v9 2/3] powerpc/book3s: EXPORT_SYMBOL machine_check_print_event_info Mahesh J Salgaonkar
2017-05-11  7:34   ` Christoph Hellwig
2017-05-11  6:16 ` [PATCH v9 3/3] KVM: PPC: Exit guest upon MCE when FWNMI capability is enabled Mahesh J Salgaonkar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).