Re: [Qemu-devel] [RFC PATCH 8/8] iommu: introduce hw/core/iommu

2017-06-07 Thread Peter Xu
On Wed, Jun 07, 2017 at 07:51:55AM +, Liu, Yi L wrote: > Hi Peter, > > Some updates on it. > > > -Original Message- > > From: Peter Xu [mailto:pet...@redhat.com] > > Sent: Thursday, April 27, 2017 5:34 PM > > To: qemu-devel@nongnu.org > > Cc: Lan, Tianyu ; Paolo Bonzini ; > > Tian, Ke

Re: [Qemu-devel] [RFC PATCH 8/8] iommu: introduce hw/core/iommu

2017-06-07 Thread Liu, Yi L
Hi Peter, Some updates on it. > -Original Message- > From: Peter Xu [mailto:pet...@redhat.com] > Sent: Thursday, April 27, 2017 5:34 PM > To: qemu-devel@nongnu.org > Cc: Lan, Tianyu ; Paolo Bonzini ; > Tian, Kevin ; Liu, Yi L ; > pet...@redhat.com; Jason Wang ; David Gibson > ; Alex Willi

Re: [Qemu-devel] [RFC PATCH 8/8] iommu: introduce hw/core/iommu

2017-04-28 Thread Peter Xu
On Fri, Apr 28, 2017 at 06:01:58PM +0800, Liu, Yi L wrote: > On Thu, Apr 27, 2017 at 05:34:20PM +0800, Peter Xu wrote: > > Time to consider a common stuff for IOMMU. Let's start from an common > > IOMMU object (which should be inlayed in custom IOMMU implementations) > > and a notifier mechanism. >

Re: [Qemu-devel] [RFC PATCH 8/8] iommu: introduce hw/core/iommu

2017-04-28 Thread Liu, Yi L
On Thu, Apr 27, 2017 at 05:34:20PM +0800, Peter Xu wrote: > Time to consider a common stuff for IOMMU. Let's start from an common > IOMMU object (which should be inlayed in custom IOMMU implementations) > and a notifier mechanism. > > Let VT-d IOMMU be the first user. > > An example to use this p

[Qemu-devel] [RFC PATCH 8/8] iommu: introduce hw/core/iommu

2017-04-27 Thread Peter Xu
Time to consider a common stuff for IOMMU. Let's start from an common IOMMU object (which should be inlayed in custom IOMMU implementations) and a notifier mechanism. Let VT-d IOMMU be the first user. An example to use this per-iommu notifier: (when registering) iommu = address_space_iommu_g