target-ppc: Add FWNMI support in qemu for powerKVM guests
Get series with b4
b4 am 20141105071019.26196.93729.stgit@aravindapVersions newest first · linked by author and title
- v3 Latest4 patches 61 repliesIn review
- v24 patches 8 repliesSuperseded
- v15 patches 67 repliesSuperseded
Changes in v3 from the cover letter
- Incorporated review comments
- Byte codes in patch 4/4 are now moved to pc-bios/spapr-rtas/spapr-rtas.S as instructions.
- Defined the RTAS blob in-memory layout.
- FIX: save and restore cr register in the trampoline
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | target-ppc: Extend rtas-blobhw/ include/ | +12 | 5 replies | |
| 2/4 | target-ppc: Register and handle HCALL to receive updated RTAS regionhw/ include/ | +10 | 0 replies | |
| 3/4 | target-ppc: Build error loghw/ include/ | +162 | 0 replies | |
| 4/4 | target-ppc: Handle ibm, nmi-register RTAS callhw/ hw/ include/ +1 more | +163 | 24 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [Qemu-devel] [PATCH v3 0/4] target-ppc: Add FWNMI support in qemu for powerKVM guests
This series of patches add support for fwnmi in powerKVM guests.
Currently upon machine check exception, if the address in error belongs to guest then KVM invokes guest's NMI interrupt vector 0x200.
This patch series adds functionality where the guest's 0x200 interrupt vector is patched such that QEMU gets control. QEMU then builds error log and reports the error to OS registered machine check handlers through RTAS space.
Apart from this, the patch series also takes care of synchronization when multiple processors encounter machine check at or about the same time.
The patch set was tested by simulating a machine check error in the guest.
Changes in v3:
- Incorporated review comments
- Byte codes in patch 4/4 are now moved to pc-bios/spapr-rtas/spapr-rtas.S as instructions.
- Defined the RTAS blob in-memory layout.
- FIX: save and restore cr register in the trampoline
Changes in v2:
- Re-based to github.com/agraf/qemu.git branch: ppc-next
- Merged patches 4 and 5.
- Incorporated other review comments
---
Aravinda Prasad (4):
target-ppc: Extend rtas-blob
target-ppc: Register and handle HCALL to receive updated RTAS region
target-ppc: Build error log
target-ppc: Handle ibm,nmi-register RTAS call
hw/ppc/spapr.c | 7 + hw/ppc/spapr_hcall.c | 183 +++++++++++++++++++++++++++++++++++++++ hw/ppc/spapr_rtas.c | 93 ++++++++++++++++++++ include/hw/ppc/spapr.h | 27 +++++- pc-bios/spapr-rtas/spapr-rtas.S | 38 ++++++++ 5 files changed, 346 insertions(+), 2 deletions(-)
Signature · 1 line
Aravinda Prasad