mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
migration: allow unplug during migration for failover devices
In "b06424de62
migration: Disable hotplug/unplug during migration" we
added a check to disable unplug for all devices until we have figured
out what works. For failover primary devices qdev_unplug() is called
from the migration handler, i.e. during migration.
This patch adds a flag to DeviceState which is set to false for all
devices and makes an exception for PCI devices that are also
primary devices in a failover pair.
Signed-off-by: Jens Freimann <jfreimann@redhat.com>
Message-Id: <20191029114905.6856-8-jfreimann@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
70d04971f1
commit
a1190ab628
4 changed files with 4 additions and 1 deletions
|
@ -2130,6 +2130,7 @@ static void pci_qdev_realize(DeviceState *qdev, Error **errp)
|
|||
pci_qdev_unrealize(DEVICE(pci_dev), NULL);
|
||||
return;
|
||||
}
|
||||
qdev->allow_unplug_during_migration = true;
|
||||
}
|
||||
|
||||
/* rom loading */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue