summary refs log tree commit diff stats
path: root/hw/vfio-user/container.c
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@intel.com>2025-06-27 14:33:32 +0800
committerCédric Le Goater <clg@redhat.com>2025-07-03 13:42:28 +0200
commit924c3ccb310e615bd350d4c77b269b19d95bf5e4 (patch)
treed9380dc6567a55d686534cd0110adc0b49f4869a /hw/vfio-user/container.c
parente8c1128bf982f2e5f7c9ca6c1de632feec3d9e94 (diff)
downloadfocaccia-qemu-924c3ccb310e615bd350d4c77b269b19d95bf5e4.tar.gz
focaccia-qemu-924c3ccb310e615bd350d4c77b269b19d95bf5e4.zip
vfio/container: Fix vfio_container_post_load()
When there are multiple VFIO containers, vioc->dma_map is restored
multiple times, this made only first container work and remaining
containers using vioc->dma_map restored by first container.

Fix it by save and restore vioc->dma_map locally. saved_dma_map in
VFIOContainerCPR becomes useless and is removed.

Fixes: 7e9f21411302 ("vfio/container: restore DMA vaddr")
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Steve Sistare <steven.sistare@oracle.com>
Link: https://lore.kernel.org/qemu-devel/20250627063332.5173-3-zhenzhong.duan@intel.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/vfio-user/container.c')
0 files changed, 0 insertions, 0 deletions