ia64/xen-unstable

changeset 15460:2cdf8fef8d93

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>
author Keir Fraser <keir@xensource.com>
date Sun Jul 01 22:10:13 2007 +0100 (2007-07-01)
parents ab95b9764b20
children 713bac7cba46
files tools/python/xen/xend/server/pciif.py
line diff
     1.1 --- a/tools/python/xen/xend/server/pciif.py	Fri Jun 29 14:38:18 2007 +0100
     1.2 +++ b/tools/python/xen/xend/server/pciif.py	Sun Jul 01 22:10:13 2007 +0100
     1.3 @@ -185,3 +185,6 @@ class PciController(DevController):
     1.4  
     1.5      def waitForBackend(self,devid):
     1.6          return (0, "ok - no hotplug")
     1.7 +
     1.8 +    def migrate(self, config, network, dst, step, domName):
     1.9 +        raise XendError('Migration not permitted with assigned PCI device.')