Re: [Qemu-devel] [PATCH v6 03/18] vfio: allow to notify unmap for very large region

2017-02-03 Thread Alex Williamson
On Fri, 3 Feb 2017 16:22:29 +0800 Peter Xu wrote: > Linux vfio driver supports to do VFIO_IOMMU_UNMAP_DMA for a very big > region. This can be leveraged by QEMU IOMMU implementation to cleanup > existing page mappings for an entire iova address space (by notifying > with an IOTLB with extremely

[Qemu-devel] [PATCH v6 03/18] vfio: allow to notify unmap for very large region

2017-02-03 Thread Peter Xu
Linux vfio driver supports to do VFIO_IOMMU_UNMAP_DMA for a very big region. This can be leveraged by QEMU IOMMU implementation to cleanup existing page mappings for an entire iova address space (by notifying with an IOTLB with extremely huge addr_mask). However current vfio_iommu_map_notify() does