qemu-e2k/hw/vfio
Peter Xu dfbd90e5b9 vfio: allow to notify unmap for very large region
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 not allow that. It make sure that all the
translated address in IOTLB is falling into RAM range.

The check makes sense, but it should only be a sensible checker for
mapping operations, and mean little for unmap operations.

This patch moves this check into map logic only, so that we'll get
faster unmap handling (no need to translate again), and also we can then
better support unmapping a very big region when it covers non-ram ranges
or even not-existing ranges.

Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2017-02-17 21:52:31 +02:00
..
amd-xgbe.c
calxeda-xgmac.c
common.c vfio: allow to notify unmap for very large region 2017-02-17 21:52:31 +02:00
Makefile.objs hw/vfio: Add CONFIG switches for calxeda-xgmac and amd-xgbe 2017-02-10 13:12:03 -07:00
pci-quirks.c hw/vfio/pci-quirks: Set category of the "vfio-pci-igd-lpc-bridge" device 2017-02-10 13:12:03 -07:00
pci.c pci: Convert msix_init() to Error and fix callers 2017-02-01 03:37:18 +02:00
pci.h
platform.c vfio/platform: Pass an error object to vfio_base_device_init 2016-10-17 10:58:01 -06:00
spapr.c memory: Replace skip_dump flag with "ram_device" 2016-10-31 09:53:03 -06:00
trace-events vfio: trace map/unmap for notify as well 2017-02-17 21:52:31 +02:00