unmodified_drivers: unplug the emulated devices at resume time
authorOlaf Hering <olaf@aepfle.de>
Tue, 12 Jun 2018 14:11:00 +0000 (16:11 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 28 Jun 2018 07:28:25 +0000 (09:28 +0200)
commit149b321279fe8edf87b7f68134e78eb8be47ce6a
treea31fa4e8adacebc385b3a9814ca9d9fcf2a4f12f
parentc329e625408051b1e8152ad6c024825cda9f7602
unmodified_drivers: unplug the emulated devices at resume time

Since qemu-2.10 it is required to unplug emulated devices again after
a live migration. If this is not done, qemu's block-backend driver
will be unable to open the backing disk image because it is still busy
by qemu's IDE driver. As a result the domUs block-frontend driver will
be unable to access the disks, and the domU has to be destroyed.
libxl is unable to detect the situation.

Apply the same workaround for this qemu bug that was done already
years ago in linux.git with commit 512b109ec962 ("xen: unplug the
emulated devices at resume time") to make sure xenlinux based domUs
can be migrated to unfixed hosts.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Jan Beulich <jbeulich@suse.com>
unmodified_drivers/linux-2.6/platform-pci/platform-pci.c