aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-07-01 22:10:13 +0100
committerKeir Fraser <keir@xensource.com>2007-07-01 22:10:13 +0100
commit450f5b5b9e64c3afccc49fdec6af5b768cedaded (patch)
tree25c2904c1106fc61d0294dc9f6d5d7ce903fafc0 /tools
parent1dd1b5a9f6ad61d3a6df79ba66785644115656ad (diff)
downloadxen-450f5b5b9e64c3afccc49fdec6af5b768cedaded.tar.gz
xen-450f5b5b9e64c3afccc49fdec6af5b768cedaded.tar.bz2
xen-450f5b5b9e64c3afccc49fdec6af5b768cedaded.zip
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/python/xen/xend/server/pciif.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/python/xen/xend/server/pciif.py b/tools/python/xen/xend/server/pciif.py
index 68af9d78cc..90b2420230 100644
--- a/tools/python/xen/xend/server/pciif.py
+++ b/tools/python/xen/xend/server/pciif.py
@@ -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.')