Re: [Qemu-devel] [PATCH] memory: add section range info for IOMMU notifier

2016-11-24 Thread Peter Xu
On Thu, Nov 24, 2016 at 03:04:35PM +1100, David Gibson wrote: [...] > > diff --git a/hw/vfio/common.c b/hw/vfio/common.c > > index 801578b..c3db115 100644 > > --- a/hw/vfio/common.c > > +++ b/hw/vfio/common.c > > @@ -455,6 +455,10 @@ static void vfio_listener_region_add(MemoryListener > > *liste

Re: [Qemu-devel] [PATCH] memory: add section range info for IOMMU notifier

2016-11-23 Thread David Gibson
On Wed, Nov 23, 2016 at 05:20:58PM +0800, Peter Xu wrote: > In this patch, IOMMUNotifier.{start|end} are introduced to store section > information for a specific notifier. When notification occurs, we not > only check the notification type (MAP|UNMAP), but also check whether the > notified iova is

[Qemu-devel] [PATCH] memory: add section range info for IOMMU notifier

2016-11-23 Thread Peter Xu
In this patch, IOMMUNotifier.{start|end} are introduced to store section information for a specific notifier. When notification occurs, we not only check the notification type (MAP|UNMAP), but also check whether the notified iova is in the range of specific IOMMU notifier, and skip those notifiers