diff options
| author | Jean-Philippe Brucker | 2020-10-30 19:05:10 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2020-11-03 22:39:05 +0100 |
| commit | 1b296c3def4b9b63d2fdbce6646edd108a3e616c (patch) | |
| tree | 4641ac050f0430c0018bac7c1e1d6998d57f6cc3 /python/mypy.ini | |
| parent | virtio-iommu: Set supported page size mask (diff) | |
| download | qemu-1b296c3def4b9b63d2fdbce6646edd108a3e616c.tar.gz qemu-1b296c3def4b9b63d2fdbce6646edd108a3e616c.tar.xz qemu-1b296c3def4b9b63d2fdbce6646edd108a3e616c.zip | |
vfio: Don't issue full 2^64 unmap
IOMMUs may declare memory regions spanning from 0 to UINT64_MAX. When
attempting to deal with such region, vfio_listener_region_del() passes a
size of 2^64 to int128_get64() which throws an assertion failure. Even
ignoring this, the VFIO_IOMMU_DMA_MAP ioctl cannot handle this size
since the size field is 64-bit. Split the request in two.
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Message-Id: <20201030180510.747225-11-jean-philippe@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'python/mypy.ini')
0 files changed, 0 insertions, 0 deletions
