]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/container: discard old DMA vaddr
authorSteve Sistare <steven.sistare@oracle.com>
Tue, 10 Jun 2025 15:39:18 +0000 (08:39 -0700)
committerCédric Le Goater <clg@redhat.com>
Wed, 11 Jun 2025 12:01:58 +0000 (14:01 +0200)
commit1faadd96306b428f2e8e35f71761c333a6777f55
treeb4bb9338abcfedad3358087739bb6e1076ed5c7b
parentc29a65ed68535288551d2bf70ae32f3df371a57d
vfio/container: discard old DMA vaddr

In the container pre_save handler, discard the virtual addresses in DMA
mappings with VFIO_DMA_UNMAP_FLAG_VADDR, because guest RAM will be
remapped at a different VA after in new QEMU.  DMA to already-mapped
pages continues.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/1749569991-25171-6-git-send-email-steven.sistare@oracle.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/cpr-legacy.c