Re: [Qemu-devel] [PATCH fixup 2/2] vhost: genearlize iommu memory region

2017-03-28 Thread Jason Wang
On 2017年03月21日 09:39, Peter Xu wrote: On Mon, Mar 20, 2017 at 08:21:44PM -0500, Eric Blake wrote: On 03/20/2017 08:12 PM, Michael S. Tsirkin wrote: Since this patchset depends on vtd vfio series and fixes its breakage to vhost, I'll pick them up for consistency for next post of vtd vfio seri

Re: [Qemu-devel] [PATCH fixup 2/2] vhost: genearlize iommu memory region

2017-03-20 Thread Peter Xu
On Mon, Mar 20, 2017 at 08:21:44PM -0500, Eric Blake wrote: > On 03/20/2017 08:12 PM, Michael S. Tsirkin wrote: > > >> > >> Since this patchset depends on vtd vfio series and fixes its breakage > >> to vhost, I'll pick them up for consistency for next post of vtd vfio > >> series as well. > >> > >

Re: [Qemu-devel] [PATCH fixup 2/2] vhost: genearlize iommu memory region

2017-03-20 Thread Eric Blake
On 03/20/2017 08:12 PM, Michael S. Tsirkin wrote: >> >> Since this patchset depends on vtd vfio series and fixes its breakage >> to vhost, I'll pick them up for consistency for next post of vtd vfio >> series as well. >> >> Thanks, >> >> -- peterx > > Sounds good. It's best to order patches in a

Re: [Qemu-devel] [PATCH fixup 2/2] vhost: genearlize iommu memory region

2017-03-20 Thread Michael S. Tsirkin
On Mon, Mar 20, 2017 at 05:07:34PM +0800, Peter Xu wrote: > On Mon, Mar 20, 2017 at 11:36:39AM +0800, Jason Wang wrote: > > We assumes the iommu_ops were attached to the root region of address > > space. This may not true for all kinds of IOMMU implementation. So fix > > this by not assume as->root

Re: [Qemu-devel] [PATCH fixup 2/2] vhost: genearlize iommu memory region

2017-03-20 Thread Peter Xu
On Mon, Mar 20, 2017 at 11:36:39AM +0800, Jason Wang wrote: > We assumes the iommu_ops were attached to the root region of address > space. This may not true for all kinds of IOMMU implementation. So fix > this by not assume as->root has iommu_ops and: > > - register a memory listener to dma_as >

[Qemu-devel] [PATCH fixup 2/2] vhost: genearlize iommu memory region

2017-03-19 Thread Jason Wang
We assumes the iommu_ops were attached to the root region of address space. This may not true for all kinds of IOMMU implementation. So fix this by not assume as->root has iommu_ops and: - register a memory listener to dma_as - during region_add, if it's a region of IOMMU, register a specific IO