[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [RFC PATCH 09/14] vfio: Expose a VFIO PCI de
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [RFC PATCH 09/14] vfio: Expose a VFIO PCI device's group for EEH |
Date: |
Thu, 24 Sep 2015 11:16:13 +1000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Wed, Sep 23, 2015 at 11:28:43AM -0600, Alex Williamson wrote:
> On Sat, 2015-09-19 at 17:18 +1000, David Gibson wrote:
> > The Enhanced Error Handling (EEH) interface in PAPR operates on units of a
> > Partitionable Endpoint (PE). For VFIO devices, the PE boundaries the guest
> > sees must match the PE (i.e. IOMMU group) boundaries on the host. To
> > implement this VFIO needs to expose to EEH the IOMMU group each VFIO device
> > belongs to.
> >
> > Add a vfio_pci_device_group() function to the VFIO/EEH interface for this
> > purpose.
> >
> > Signed-off-by: David Gibson <address@hidden>
> > ---
> > hw/vfio/pci.c | 13 +++++++++++++
> > include/hw/vfio/vfio-eeh.h | 1 +
> > 2 files changed, 14 insertions(+)
> >
> > diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
> > index 73d34b9..29f9467 100644
> > --- a/hw/vfio/pci.c
> > +++ b/hw/vfio/pci.c
> > @@ -41,6 +41,7 @@
> > #include "trace.h"
> > #include "hw/vfio/vfio.h"
> > #include "hw/vfio/vfio-common.h"
> > +#include "hw/vfio/vfio-eeh.h"
>
>
> Why? EEH may be the consumer, but it's not EEH specific, it should not
> have the prototype in an EEH specific header.
Ok, planning to create a vfio-pci.h in the respin.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
pgpWiXZyHdnU4.pgp
Description: PGP signature
- [Qemu-ppc] [RFC PATCH 00/14] Allow EEH on "normal" sPAPR PCI host bridge, David Gibson, 2015/09/19
- [Qemu-ppc] [RFC PATCH 03/14] spapr_pci: Expose and generalize spapr_phb_check_vfio_group(), David Gibson, 2015/09/19
- [Qemu-ppc] [RFC PATCH 04/14] spapr_pci: Fold spapr_phb_vfio_eeh_configure() into spapr_pci code, David Gibson, 2015/09/19
- [Qemu-ppc] [RFC PATCH 09/14] vfio: Expose a VFIO PCI device's group for EEH, David Gibson, 2015/09/19
- [Qemu-ppc] [RFC PATCH 02/14] spapr_pci: Switch EEH to vfio_eeh_op() interface, David Gibson, 2015/09/19
- [Qemu-ppc] [RFC PATCH 14/14] vfio: Eliminate vfio_container_ioctl(), David Gibson, 2015/09/19
- [Qemu-ppc] [RFC PATCH 05/14] spapr_pci: Fold spapr_phb_vfio_eeh_reset() into spapr_pci code, David Gibson, 2015/09/19
- [Qemu-ppc] [RFC PATCH 06/14] spapr_pci: Fold spapr_phb_vfio_eeh_get_state() into spapr_pci code, David Gibson, 2015/09/19
- [Qemu-ppc] [RFC PATCH 08/14] spapr_pci: Fold spapr_phb_vfio_eeh_configure() into spapr_pci code, David Gibson, 2015/09/19
- [Qemu-ppc] [RFC PATCH 11/14] spapr_pci: Allow EEH on spapr-pci-host-bridge, David Gibson, 2015/09/19