KVM: PPC: Add FWNMI support for KVM guests on POWER
Get series with b4
b4 am 148430634902.22799.7589829837646104546.stgit@aravindaVersions newest first · linked by author and title
- v5 Latest2 patches 4 repliesIn review
- v42 patches 6 repliesSuperseded
- v32 patches 12 repliesSuperseded
Changes in v5 from the cover letter
- Added capability documentation. No functionality/code change.
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | KVM: PPC: Add new capability to control MCE behaviourDocumentation/ arch/ arch/ +2 more | +21 | 0 replies | |
| 2/2 | KVM: PPC: Exit guest upon MCE when FWNMI capability is enabledarch/ arch/ arch/ | +54 | 4 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | David Gibson |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/2] KVM: PPC: Add FWNMI support for KVM guests on POWER
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 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
Documentation/virtual/kvm/api.txt | 11 +++++++ arch/powerpc/include/asm/kvm_host.h | 1 + arch/powerpc/kernel/asm-offsets.c | 1 + arch/powerpc/kvm/book3s_hv.c | 27 +++++++++++++----- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 47 ++++++++++++++++--------------- arch/powerpc/kvm/powerpc.c | 7 +++++ arch/powerpc/platforms/powernv/opal.c | 10 +++++++ include/uapi/linux/kvm.h | 1 + 8 files changed, 75 insertions(+), 30 deletions(-)
--
Aravinda Prasad