Re: [Qemu-devel] [PATCH RFC 0/3] vfio: allow to notify unmap for very big region

2017-01-21 Thread Peter Xu
On Fri, Jan 20, 2017 at 10:14:01AM -0700, Alex Williamson wrote: > On Fri, 20 Jan 2017 20:27:18 +0800 > Peter Xu wrote: > > > On Fri, Jan 20, 2017 at 11:43:28AM +0800, Peter Xu wrote: > > > > [...] > > > > > > What I don't want to see is for this API bug to leak out into the

Re: [Qemu-devel] [PATCH RFC 0/3] vfio: allow to notify unmap for very big region

2017-01-20 Thread Alex Williamson
On Fri, 20 Jan 2017 20:27:18 +0800 Peter Xu wrote: > On Fri, Jan 20, 2017 at 11:43:28AM +0800, Peter Xu wrote: > > [...] > > > > What I don't want to see is for this API bug to leak out into the rest > > > of the QEMU code such that intel_iommu code, or iommu code in general

Re: [Qemu-devel] [PATCH RFC 0/3] vfio: allow to notify unmap for very big region

2017-01-20 Thread Peter Xu
On Fri, Jan 20, 2017 at 11:43:28AM +0800, Peter Xu wrote: [...] > > What I don't want to see is for this API bug to leak out into the rest > > of the QEMU code such that intel_iommu code, or iommu code in general > > subtly avoids it by artificially using a smaller range. VT-d hardware > > has

Re: [Qemu-devel] [PATCH RFC 0/3] vfio: allow to notify unmap for very big region

2017-01-19 Thread Peter Xu
On Thu, Jan 19, 2017 at 09:21:10PM -0700, Alex Williamson wrote: > On Fri, 20 Jan 2017 11:43:28 +0800 > Peter Xu wrote: > > > On Thu, Jan 19, 2017 at 10:54:37AM -0700, Alex Williamson wrote: > > > On Thu, 19 Jan 2017 17:25:29 +0800 > > > Peter Xu wrote: > >

Re: [Qemu-devel] [PATCH RFC 0/3] vfio: allow to notify unmap for very big region

2017-01-19 Thread Alex Williamson
On Fri, 20 Jan 2017 11:43:28 +0800 Peter Xu wrote: > On Thu, Jan 19, 2017 at 10:54:37AM -0700, Alex Williamson wrote: > > On Thu, 19 Jan 2017 17:25:29 +0800 > > Peter Xu wrote: > > > > > This requirement originates from the VT-d vfio series: > > > > > >

Re: [Qemu-devel] [PATCH RFC 0/3] vfio: allow to notify unmap for very big region

2017-01-19 Thread Peter Xu
On Thu, Jan 19, 2017 at 10:54:37AM -0700, Alex Williamson wrote: > On Thu, 19 Jan 2017 17:25:29 +0800 > Peter Xu wrote: > > > This requirement originates from the VT-d vfio series: > > > > https://lists.nongnu.org/archive/html/qemu-devel/2017-01/msg03495.html > > > > The

Re: [Qemu-devel] [PATCH RFC 0/3] vfio: allow to notify unmap for very big region

2017-01-19 Thread Alex Williamson
On Thu, 19 Jan 2017 17:25:29 +0800 Peter Xu wrote: > This requirement originates from the VT-d vfio series: > > https://lists.nongnu.org/archive/html/qemu-devel/2017-01/msg03495.html > > The goal of this series is to allow IOMMU to notify unmap with very > big IOTLB range,

[Qemu-devel] [PATCH RFC 0/3] vfio: allow to notify unmap for very big region

2017-01-19 Thread Peter Xu
This requirement originates from the VT-d vfio series: https://lists.nongnu.org/archive/html/qemu-devel/2017-01/msg03495.html The goal of this series is to allow IOMMU to notify unmap with very big IOTLB range, for example, with base=0 and size=2^63-1 (to unmap the whole address space). The