> 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
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
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