Re: [Qemu-devel] [PATCH v3 09/12] intel_iommu: record assigned devices in a list

2018-03-05 Thread Liu, Yi L
On Fri, Mar 02, 2018 at 04:08:47PM +0100, Paolo Bonzini wrote: > On 01/03/2018 11:33, Liu, Yi L wrote: > > > > +struct IntelIOMMUAssignedDeviceNode { > > +VTDAddressSpace *vtd_as; > > +QLIST_ENTRY(IntelIOMMUAssignedDeviceNode) next; > > +}; > > + > > This QLIST_ENTRY can also be placed d

Re: [Qemu-devel] [PATCH v3 09/12] intel_iommu: record assigned devices in a list

2018-03-02 Thread Paolo Bonzini
On 01/03/2018 11:33, Liu, Yi L wrote: > > +struct IntelIOMMUAssignedDeviceNode { > +VTDAddressSpace *vtd_as; > +QLIST_ENTRY(IntelIOMMUAssignedDeviceNode) next; > +}; > + This QLIST_ENTRY can also be placed directly in VTDAddressSpace (e.g. next_assigned_dev), so that the notify function

[Qemu-devel] [PATCH v3 09/12] intel_iommu: record assigned devices in a list

2018-03-01 Thread Liu, Yi L
This patch records assigned devices in a list within Intel vIOMMU emulator. The recorded info can be used to filter out affect assigned devices when Qemu captured guest's cache invalidate request. Signed-off-by: Liu, Yi L --- hw/i386/intel_iommu.c | 31 ++- in

[Qemu-devel] [PATCH v3 09/12] intel_iommu: record assigned devices in a list

2018-03-01 Thread Liu, Yi L
This patch records assigned devices in a list within Intel vIOMMU emulator. The recorded info can be used to filter out affect assigned devices when Qemu captured guest's cache invalidate request. Signed-off-by: Liu, Yi L --- hw/i386/intel_iommu.c | 31 ++- in