RE: [RFC v2 09/22] vfio/pci: add iommu_context notifier for pasid alloc/free

2019-11-25 Thread Liu, Yi L
Hi David, > From: David Gibson < da...@gibson.dropbear.id.au> > Sent: Wednesday, November 20, 2019 12:28 PM > To: Liu, Yi L > Subject: Re: [RFC v2 09/22] vfio/pci: add iommu_context notifier for pasid > alloc/free > > On Wed, Nov 06, 2019 at 12:14:50PM +, Liu, Yi

Re: [RFC v2 09/22] vfio/pci: add iommu_context notifier for pasid alloc/free

2019-11-19 Thread David Gibson
On Wed, Nov 06, 2019 at 12:14:50PM +, Liu, Yi L wrote: > > From: David Gibson [mailto:da...@gibson.dropbear.id.au] > > Sent: Tuesday, October 29, 2019 8:16 PM > > To: Liu, Yi L > > Subject: Re: [RFC v2 09/22] vfio/pci: add iommu_context notifier for pasid > > a

RE: [RFC v2 09/22] vfio/pci: add iommu_context notifier for pasid alloc/free

2019-11-06 Thread Liu, Yi L
> From: Peter Xu > Sent: Saturday, November 2, 2019 1:26 AM > To: David Gibson > Subject: Re: [RFC v2 09/22] vfio/pci: add iommu_context notifier for pasid > alloc/free > > On Tue, Oct 29, 2019 at 01:15:44PM +0100, David Gibson wrote: > > > +union IOMMUCTXPA

RE: [RFC v2 09/22] vfio/pci: add iommu_context notifier for pasid alloc/free

2019-11-06 Thread Liu, Yi L
> From: David Gibson [mailto:da...@gibson.dropbear.id.au] > Sent: Tuesday, October 29, 2019 8:16 PM > To: Liu, Yi L > Subject: Re: [RFC v2 09/22] vfio/pci: add iommu_context notifier for pasid > alloc/free > > On Thu, Oct 24, 2019 at 08:34:30AM -0400, Liu Yi L wrote: >

Re: [RFC v2 09/22] vfio/pci: add iommu_context notifier for pasid alloc/free

2019-11-01 Thread Peter Xu
On Tue, Oct 29, 2019 at 01:15:44PM +0100, David Gibson wrote: > > +union IOMMUCTXPASIDReqDesc { > > +struct { > > +uint32_t min_pasid; > > +uint32_t max_pasid; > > +int32_t alloc_result; /* pasid allocated for the alloc request */ > > +}; > > +struct { > > +

Re: [RFC v2 09/22] vfio/pci: add iommu_context notifier for pasid alloc/free

2019-10-29 Thread David Gibson
On Thu, Oct 24, 2019 at 08:34:30AM -0400, Liu Yi L wrote: > This patch adds pasid alloc/free notifiers for vfio-pci. It is > supposed to be fired by vIOMMU. VFIO then sends PASID allocation > or free request to host. > > Cc: Kevin Tian > Cc: Jacob Pan > Cc: Peter Xu > Cc: Eric Auger > Cc: Yi

[RFC v2 09/22] vfio/pci: add iommu_context notifier for pasid alloc/free

2019-10-24 Thread Liu Yi L
This patch adds pasid alloc/free notifiers for vfio-pci. It is supposed to be fired by vIOMMU. VFIO then sends PASID allocation or free request to host. Cc: Kevin Tian Cc: Jacob Pan Cc: Peter Xu Cc: Eric Auger Cc: Yi Sun Cc: David Gibson Signed-off-by: Liu Yi L --- hw/vfio/common.c