qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v8 0/4] EEH Support for VFIO PCI Device
@ 2014-06-05  6:53 Gavin Shan
  2014-06-05  6:53 ` [Qemu-devel] [PATCH v8 1/4] sPAPR: Implement EEH RTAS calls Gavin Shan
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Gavin Shan @ 2014-06-05  6:53 UTC (permalink / raw)
  To: qemu-ppc; +Cc: aik, qemu-devel, agraf, alex.williamson, qiudayu, Gavin Shan

The series of patches adds support EEH for VFIO PCI devices on sPAPR platform.
It requires corresponding host kernel support. Also, it is based on top of
Alexey's VFIO-for-sPAPR git repository.

QEMU:   git://github.com/aik/qemu.git (branch: vfio)
Kernel: git://github.com/aik/linux.git (branch: vfio)
Kernel: http://linuxppc.10917.n7.nabble.com/PATCH-v8-0-3-EEH-Support-for-VFIO-PCI-Device-td82940.html

The implementations notes are below. Please comment.

* RTAS calls are received in spapr_pci.c, sanity check is done there. RTAS
  handlers handle what they can. If there is something it cannot handle and
  sPAPRPHBClass::eeh_handler callback is defined, it is called.
* sPAPRPHBClass::eeh_handler is only implemented for VFIO now. It does ioctl()
  to the IOMMU container fd to complete the call. Error codes from that ioctl()
  are transferred back to the guest.

Gavin Shan (4):
  sPAPR: Implement EEH RTAS calls
  headers: Update kernel header
  VFIO: Introduce helper vfio_pci_container_ioctl()
  sPAPR: Implement sPAPRPHBClass::eeh_handler

 hw/misc/vfio.c              |  31 ++++++
 hw/ppc/spapr_pci.c          | 248 ++++++++++++++++++++++++++++++++++++++++++++
 hw/ppc/spapr_pci_vfio.c     |  54 ++++++++++
 include/hw/misc/vfio.h      |   2 +
 include/hw/pci-host/spapr.h |   7 ++
 include/hw/ppc/spapr.h      |  33 ++++++
 linux-headers/linux/vfio.h  |  35 +++++++
 7 files changed, 410 insertions(+)

-- 
1.8.3.2

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

end of thread, other threads:[~2014-06-06  1:06 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-05  6:53 [Qemu-devel] [PATCH v8 0/4] EEH Support for VFIO PCI Device Gavin Shan
2014-06-05  6:53 ` [Qemu-devel] [PATCH v8 1/4] sPAPR: Implement EEH RTAS calls Gavin Shan
2014-06-05 12:09   ` Alexander Graf
2014-06-06  0:59     ` Gavin Shan
2014-06-05  6:53 ` [Qemu-devel] [PATCH v8 2/4] headers: Update kernel header Gavin Shan
2014-06-05  6:53 ` [Qemu-devel] [PATCH v8 3/4] VFIO: Introduce helper vfio_pci_container_ioctl() Gavin Shan
2014-06-05 12:11   ` Alexander Graf
2014-06-06  1:00     ` Gavin Shan
2014-06-05 18:27   ` Alex Williamson
2014-06-06  1:05     ` Gavin Shan
2014-06-05  6:53 ` [Qemu-devel] [PATCH v8 4/4] sPAPR: Implement sPAPRPHBClass::eeh_handler Gavin Shan
2014-06-05 13:00   ` Alexander Graf
2014-06-05 13:13     ` Alexey Kardashevskiy
2014-06-05 12:12 ` [Qemu-devel] [PATCH v8 0/4] EEH Support for VFIO PCI Device Alexander Graf
2014-06-05 18:31   ` Alex Williamson

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).