]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio: unplug failover primary device before migration
authorJens Freimann <jfreimann@redhat.com>
Tue, 29 Oct 2019 11:49:05 +0000 (12:49 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 29 Oct 2019 22:55:26 +0000 (18:55 -0400)
commitf045a0104c8ce38da7f42141a6b3ebf3d74b474b
tree4ab7232bb32ba160d78d3ffcd82736efc80a7fa5
parent9711cd0dfc3fa414f7f64935713c07134ae67971
vfio: unplug failover primary device before migration

As usual block all vfio-pci devices from being migrated, but make an
exception for failover primary devices. This is achieved by setting
unmigratable to 0 but also add a migration blocker for all vfio-pci
devices except failover primary devices. These will be unplugged before
migration happens by the migration handler of the corresponding
virtio-net standby device.

Signed-off-by: Jens Freimann <jfreimann@redhat.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Message-Id: <20191029114905.6856-12-jfreimann@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/vfio/pci.c
hw/vfio/pci.h