Re: [Qemu-devel] [PATCH v3 1/3] memory: introduce IOMMUNotifier and its caps

2016-09-08 Thread Peter Xu
On Wed, Sep 07, 2016 at 08:20:35PM +1000, David Gibson wrote: > On Wed, Sep 07, 2016 at 03:09:16PM +0800, Peter Xu wrote: > > On Wed, Sep 07, 2016 at 04:02:39PM +1000, David Gibson wrote: > > > On Wed, Sep 07, 2016 at 01:32:22PM +0800, Peter Xu wrote: > > > > IOMMU Notifier list is used for

Re: [Qemu-devel] [PATCH v3 1/3] memory: introduce IOMMUNotifier and its caps

2016-09-07 Thread David Gibson
On Wed, Sep 07, 2016 at 03:09:16PM +0800, Peter Xu wrote: > On Wed, Sep 07, 2016 at 04:02:39PM +1000, David Gibson wrote: > > On Wed, Sep 07, 2016 at 01:32:22PM +0800, Peter Xu wrote: > > > IOMMU Notifier list is used for notifying IO address mapping changes. > > > Currently VFIO is the only user.

Re: [Qemu-devel] [PATCH v3 1/3] memory: introduce IOMMUNotifier and its caps

2016-09-07 Thread Peter Xu
On Wed, Sep 07, 2016 at 04:02:39PM +1000, David Gibson wrote: > On Wed, Sep 07, 2016 at 01:32:22PM +0800, Peter Xu wrote: > > IOMMU Notifier list is used for notifying IO address mapping changes. > > Currently VFIO is the only user. > > > > However it is possible that future consumer like vhost

Re: [Qemu-devel] [PATCH v3 1/3] memory: introduce IOMMUNotifier and its caps

2016-09-07 Thread David Gibson
On Wed, Sep 07, 2016 at 01:32:22PM +0800, Peter Xu wrote: > IOMMU Notifier list is used for notifying IO address mapping changes. > Currently VFIO is the only user. > > However it is possible that future consumer like vhost would like to > only listen to part of its notifications (e.g., cache

[Qemu-devel] [PATCH v3 1/3] memory: introduce IOMMUNotifier and its caps

2016-09-06 Thread Peter Xu
IOMMU Notifier list is used for notifying IO address mapping changes. Currently VFIO is the only user. However it is possible that future consumer like vhost would like to only listen to part of its notifications (e.g., cache invalidations). This patch introduced IOMMUNotifier and