From: David Gibson <david@gibson.dropbear.id.au>
To: gwshan@linux.vnet.ibm.com, alex.williamson@redhat.com, aik@ozlabs.ru
Cc: lvivier@redhat.com, thuth@redhat.com, mdroth@linux.vnet.ibm.com,
qemu-devel@nongnu.org, qemu-ppc@nongnu.org,
David Gibson <david@gibson.dropbear.id.au>
Subject: [Qemu-devel] [RFC PATCH 00/14] Allow EEH on "normal" sPAPR PCI host bridge
Date: Sat, 19 Sep 2015 17:18:23 +1000 [thread overview]
Message-ID: <1442647117-2726-1-git-send-email-david@gibson.dropbear.id.au> (raw)
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
next reply other threads:[~2015-09-19 7:18 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-19 7:18 David Gibson [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1442647117-2726-1-git-send-email-david@gibson.dropbear.id.au \
--to=david@gibson.dropbear.id.au \
--cc=aik@ozlabs.ru \
--cc=alex.williamson@redhat.com \
--cc=gwshan@linux.vnet.ibm.com \
--cc=lvivier@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).