]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/migration: Block multiple devices migration
authorAvihai Horon <avihaih@nvidia.com>
Thu, 16 Feb 2023 14:36:24 +0000 (16:36 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 16 Feb 2023 19:13:46 +0000 (12:13 -0700)
commit29d81b71aa2ac0f594d881460e22e291a9417a74
tree1bcd3ff61c989937cf78a04702c20d451b652fc9
parent8b942af393a2d9f822aea4e5e0d241e668146bf2
vfio/migration: Block multiple devices migration

Currently VFIO migration doesn't implement some kind of intermediate
quiescent state in which P2P DMAs are quiesced before stopping or
running the device. This can cause problems in multi-device migration
where the devices are doing P2P DMAs, since the devices are not stopped
together at the same time.

Until such support is added, block migration of multiple devices.

Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Link: https://lore.kernel.org/r/20230216143630.25610-6-avihaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/common.c
hw/vfio/migration.c
include/hw/vfio/vfio-common.h