Hi Eric,

> From: Auger Eric [mailto:[email protected]]
> Sent: Tuesday, July 9, 2019 4:38 PM
> To: Liu, Yi L <[email protected]>; [email protected]; [email protected];
> Subject: Re: [RFC v1 07/18] hw/pci: add pci_device_bind/unbind_gpasid
> 
> Hi Liu,
> 
> On 7/5/19 1:01 PM, Liu Yi L wrote:
> > This patch adds two callbacks pci_device_bind/unbind_gpasid() to
> > PCIPASIDOps. These two callbacks are used to propagate guest pasid
> > bind/unbind to host. The implementations of the callbacks would be
> > device passthru modules like vfio.
> >
> > Cc: Kevin Tian <[email protected]>
> > Cc: Jacob Pan <[email protected]>
> > Cc: Peter Xu <[email protected]>
> > Cc: Eric Auger <[email protected]>
> > Cc: Yi Sun <[email protected]>
> > Cc: David Gibson <[email protected]>
> > Signed-off-by: Liu Yi L <[email protected]>
> > ---
> >  hw/pci/pci.c         | 30 ++++++++++++++++++++++++++++++
> >  include/hw/pci/pci.h |  9 +++++++++
> >  2 files changed, 39 insertions(+)
> >
> > diff --git a/hw/pci/pci.c b/hw/pci/pci.c index 710f9e9..2229229 100644
> > --- a/hw/pci/pci.c
> > +++ b/hw/pci/pci.c
> > @@ -2676,6 +2676,36 @@ int pci_device_request_pasid_free(PCIBus *bus,
> int32_t devfn,
> >      return -1;
> >  }
> >
> > +void pci_device_bind_gpasid(PCIBus *bus, int32_t devfn,
> > +                                struct gpasid_bind_data *g_bind_data)
> struct gpasid_bind_data is defined in linux headers so I think you would
> need: #ifdef __linux__

Oops, thanks for the remind.

Regards,
Yi Liu

Reply via email to