RE: [RFC v2 05/22] vfio/common: add iommu_ctx_notifier in container

2019-11-06 Thread Liu, Yi L
> From: Peter Xu > Sent: Friday, November 1, 2019 10:59 PM > To: Liu, Yi L > Subject: Re: [RFC v2 05/22] vfio/common: add iommu_ctx_notifier in container > > On Thu, Oct 24, 2019 at 08:34:26AM -0400, Liu Yi L wrote: > > [...] > > > +typedef struct VFIOIOMM

Re: [RFC v2 05/22] vfio/common: add iommu_ctx_notifier in container

2019-11-01 Thread Peter Xu
On Thu, Oct 24, 2019 at 08:34:26AM -0400, Liu Yi L wrote: [...] > +typedef struct VFIOIOMMUContext { > +VFIOContainer *container; > +IOMMUContext *iommu_ctx; > +IOMMUCTXNotifier n; > +QLIST_ENTRY(VFIOIOMMUContext) iommu_ctx_next; > +} VFIOIOMMUContext; > + No strong opinion on

[RFC v2 05/22] vfio/common: add iommu_ctx_notifier in container

2019-10-24 Thread Liu Yi L
This patch adds a list in VFIOContainer to store iommu_ctx_notifier which is based on IOMMUContext. As a preparation of registering iommu_ctx_notifiers. 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