]> git.ipfire.org Git - thirdparty/qemu.git/commit
iommufd: preserve DMA mappings
authorSteve Sistare <steven.sistare@oracle.com>
Wed, 2 Jul 2025 21:58:56 +0000 (14:58 -0700)
committerCédric Le Goater <clg@redhat.com>
Thu, 3 Jul 2025 11:42:28 +0000 (13:42 +0200)
commit6ff4cccd13155e718e630fe16a72d3cc9decde3b
tree7ea6fb44d7a0ba6bdc9fabc00c16137990707405
parent5c066c4be2328c46f03e9166ea720b13bf68ea5d
iommufd: preserve DMA mappings

During cpr-transfer load in new QEMU, the vfio_memory_listener causes
spurious calls to map and unmap DMA regions, as devices are created and
the address space is built.  This memory was already already mapped by the
device in old QEMU, so suppress the map and unmap callbacks during incoming
CPR.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Link: https://lore.kernel.org/qemu-devel/1751493538-202042-20-git-send-email-steven.sistare@oracle.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
backends/iommufd.c