Re: [Qemu-devel] [RFC v1 03/18] hw/pci: introduce PCIPASIDOps to PCIDevice

2019-07-11 Thread Liu, Yi L
> From: da...@gibson.dropbear.id.au [mailto:da...@gibson.dropbear.id.au] > Sent: Thursday, July 11, 2019 11:52 AM > To: Liu, Yi L > Subject: Re: [RFC v1 03/18] hw/pci: introduce PCIPASIDOps to PCIDevice > > On Wed, Jul 10, 2019 at 11:08:15AM +, Liu, Yi L wrote: > > > From: Peter Xu [mailto:zh

Re: [Qemu-devel] [RFC v1 03/18] hw/pci: introduce PCIPASIDOps to PCIDevice

2019-07-10 Thread da...@gibson.dropbear.id.au
On Wed, Jul 10, 2019 at 11:08:15AM +, Liu, Yi L wrote: > > From: Peter Xu [mailto:zh...@redhat.com] > > Sent: Tuesday, July 9, 2019 10:12 AM > > To: Liu, Yi L > > Subject: Re: [RFC v1 03/18] hw/pci: introduce PCIPASIDOps to PCIDevice > > > > On Fri, Jul 05, 2019 at 07:01:36PM +0800, Liu Yi L

Re: [Qemu-devel] [RFC v1 03/18] hw/pci: introduce PCIPASIDOps to PCIDevice

2019-07-10 Thread Liu, Yi L
> From: Peter Xu [mailto:zh...@redhat.com] > Sent: Tuesday, July 9, 2019 10:12 AM > To: Liu, Yi L > Subject: Re: [RFC v1 03/18] hw/pci: introduce PCIPASIDOps to PCIDevice > > On Fri, Jul 05, 2019 at 07:01:36PM +0800, Liu Yi L wrote: > > +void pci_setup_pasid_ops(PCIDevice *dev, PCIPASIDOps *ops)

Re: [Qemu-devel] [RFC v1 03/18] hw/pci: introduce PCIPASIDOps to PCIDevice

2019-07-09 Thread Auger Eric
Hi Liu, Peter, On 7/9/19 4:12 AM, Peter Xu wrote: > On Fri, Jul 05, 2019 at 07:01:36PM +0800, Liu Yi L wrote: >> +void pci_setup_pasid_ops(PCIDevice *dev, PCIPASIDOps *ops) >> +{ >> +assert(ops && !dev->pasid_ops); >> +dev->pasid_ops = ops; >> +} >> + >> +bool pci_device_is_ops_set(PCIBus

Re: [Qemu-devel] [RFC v1 03/18] hw/pci: introduce PCIPASIDOps to PCIDevice

2019-07-08 Thread Peter Xu
On Fri, Jul 05, 2019 at 07:01:36PM +0800, Liu Yi L wrote: > +void pci_setup_pasid_ops(PCIDevice *dev, PCIPASIDOps *ops) > +{ > +assert(ops && !dev->pasid_ops); > +dev->pasid_ops = ops; > +} > + > +bool pci_device_is_ops_set(PCIBus *bus, int32_t devfn) Name should be "pci_device_is_pasid_op

[Qemu-devel] [RFC v1 03/18] hw/pci: introduce PCIPASIDOps to PCIDevice

2019-07-06 Thread Liu Yi L
This patch introduces PCIPASIDOps for PASID related operations in future usage like virt-SVA. Related discussions can be found in below links. https://lists.gnu.org/archive/html/qemu-devel/2018-03/msg00078.html https://lists.gnu.org/archive/html/qemu-devel/2018-03/msg00940.html So far, to setup v