xend: Don't allow migrate with assigned PCI devs.

This can potentially cause a whole machine crash, which I think has
been seen in the wild.  The case in the wild was caused by xendomains
auto-resuming domains on reboot, so it wasn't even operator error.

There's no sane way to migrate or suspend domains with PCI devs,
so I disallow it completely.

Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
This commit is contained in:
Keir Fraser committed 2007-07-01 22:10:13 +01:00
1 parent 1dd1b5a9f6
commit 450f5b5b9e
1 file changed
+3
+3
View File
@@ -185,3 +185,6 @@ class PciController(DevController):
def waitForBackend(self,devid):
return (0, "ok - no hotplug")
def migrate(self, config, network, dst, step, domName):
raise XendError('Migration not permitted with assigned PCI device.')
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.