qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC PATCH 00/14] Allow EEH on "normal" sPAPR PCI host bridge
@ 2015-09-19  7:18 David Gibson
  2015-09-19  7:18 ` [Qemu-devel] [RFC PATCH 01/14] vfio: Start adding VFIO/EEH interface David Gibson
                   ` (13 more replies)
  0 siblings, 14 replies; 27+ messages in thread
From: David Gibson @ 2015-09-19  7:18 UTC (permalink / raw)
  To: gwshan, alex.williamson, aik
  Cc: lvivier, thuth, mdroth, qemu-devel, qemu-ppc, David Gibson

I've already posted a patch series that allows VFIO devices on
spapr-pci-host-bridge instead of just on spapr-pci-vfio-host-bridge.
However. it still didn't allow EEH on VFIO devices on the "normal"
host bridge.

This series addresses that, making a number of cleanup along the way.

Because of limitations in both the qemu code and the kernel VFIO+EEH
interface, it only allows EEH if there is just one IOMMU group with
VFIO devices on the host bridge.  This isn't more limited than
spapr-pci-vfio-host-bridge, because it also only supported a single
VFIO group (although it didn't properly enforce that).

David Gibson (14):
  vfio: Start adding VFIO/EEH interface
  spapr_pci: Switch EEH to vfio_eeh_op() interface
  spapr_pci: Expose and generalize spapr_phb_check_vfio_group()
  spapr_pci: Fold spapr_phb_vfio_eeh_configure() into spapr_pci code
  spapr_pci: Fold spapr_phb_vfio_eeh_reset() into spapr_pci code
  spapr_pci: Fold spapr_phb_vfio_eeh_get_state() into spapr_pci code
  spapr_pci: Fold spapr_phb_vfio_eeh_set_option() into spapr_pci code
  spapr_pci: Fold spapr_phb_vfio_eeh_configure() into spapr_pci code
  vfio: Expose a VFIO PCI device's group for EEH
  spapr_pci: Track guest Partitionable Endpoints
  spapr_pci: Allow EEH on spapr-pci-host-bridge
  spapr_pci: (Mostly) remove spapr-pci-vfio-host-bridge
  spapr_pci: Remove finish_realize hook
  vfio: Eliminate vfio_container_ioctl()

 hw/ppc/spapr_pci.c          | 290 ++++++++++++++++++++++++++++++++++++--------
 hw/ppc/spapr_pci_vfio.c     | 245 +++----------------------------------
 hw/vfio/Makefile.objs       |   1 +
 hw/vfio/common.c            |  45 -------
 hw/vfio/eeh.c               |  64 ++++++++++
 hw/vfio/pci.c               |  13 ++
 include/hw/pci-host/spapr.h |  36 ++----
 include/hw/vfio/vfio-eeh.h  |  43 +++++++
 include/hw/vfio/vfio.h      |   3 -
 9 files changed, 383 insertions(+), 357 deletions(-)
 create mode 100644 hw/vfio/eeh.c
 create mode 100644 include/hw/vfio/vfio-eeh.h

-- 
2.4.3

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

end of thread, other threads:[~2015-09-24  5:45 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-19  7:18 [Qemu-devel] [RFC PATCH 00/14] Allow EEH on "normal" sPAPR PCI host bridge David Gibson
2015-09-19  7:18 ` [Qemu-devel] [RFC PATCH 01/14] vfio: Start adding VFIO/EEH interface David Gibson
2015-09-23 17:28   ` Alex Williamson
2015-09-24  1:11     ` David Gibson
2015-09-24  2:12       ` Alex Williamson
2015-09-24  4:09         ` David Gibson
2015-09-24  5:45           ` Thomas Huth
2015-09-19  7:18 ` [Qemu-devel] [RFC PATCH 02/14] spapr_pci: Switch EEH to vfio_eeh_op() interface David Gibson
2015-09-23 17:28   ` Alex Williamson
2015-09-19  7:18 ` [Qemu-devel] [RFC PATCH 03/14] spapr_pci: Expose and generalize spapr_phb_check_vfio_group() David Gibson
2015-09-19  7:18 ` [Qemu-devel] [RFC PATCH 04/14] spapr_pci: Fold spapr_phb_vfio_eeh_configure() into spapr_pci code David Gibson
2015-09-19  7:18 ` [Qemu-devel] [RFC PATCH 05/14] spapr_pci: Fold spapr_phb_vfio_eeh_reset() " David Gibson
2015-09-19  7:18 ` [Qemu-devel] [RFC PATCH 06/14] spapr_pci: Fold spapr_phb_vfio_eeh_get_state() " David Gibson
2015-09-19  7:18 ` [Qemu-devel] [RFC PATCH 07/14] spapr_pci: Fold spapr_phb_vfio_eeh_set_option() " David Gibson
2015-09-19  7:18 ` [Qemu-devel] [RFC PATCH 08/14] spapr_pci: Fold spapr_phb_vfio_eeh_configure() " David Gibson
2015-09-19  7:18 ` [Qemu-devel] [RFC PATCH 09/14] vfio: Expose a VFIO PCI device's group for EEH David Gibson
2015-09-23 17:28   ` Alex Williamson
2015-09-24  1:16     ` David Gibson
2015-09-19  7:18 ` [Qemu-devel] [RFC PATCH 10/14] spapr_pci: Track guest Partitionable Endpoints David Gibson
2015-09-19  7:18 ` [Qemu-devel] [RFC PATCH 11/14] spapr_pci: Allow EEH on spapr-pci-host-bridge David Gibson
2015-09-23 17:28   ` Alex Williamson
2015-09-24  1:49     ` David Gibson
2015-09-24  2:19       ` Alex Williamson
2015-09-24  4:11         ` David Gibson
2015-09-19  7:18 ` [Qemu-devel] [RFC PATCH 12/14] spapr_pci: (Mostly) remove spapr-pci-vfio-host-bridge David Gibson
2015-09-19  7:18 ` [Qemu-devel] [RFC PATCH 13/14] spapr_pci: Remove finish_realize hook David Gibson
2015-09-19  7:18 ` [Qemu-devel] [RFC PATCH 14/14] vfio: Eliminate vfio_container_ioctl() David Gibson

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