Fix domU reboot failure when using "pci=" option
authorKeir Fraser <keir@xensource.com>
Mon, 8 Oct 2007 09:46:45 +0000 (10:46 +0100)
committerKeir Fraser <keir@xensource.com>
Mon, 8 Oct 2007 09:46:45 +0000 (10:46 +0100)
The failure only happens on the second or later auto reboot.
See the following thread for a long discussion on this issue where
most problems were fixed.

http://lists.xensource.com/archives/html/xen-users/2006-05/msg00154.html

Signed-off-by: Charles Arnold <carnold@novell.com>
tools/python/xen/xend/XendConfig.py

index 9a1e1da47b686df07f74d7a487e54950d3a9c9f0..9e49c4a68e3ae24a88a7c72fbe94be7d4f8c9354 100644 (file)
@@ -1461,7 +1461,7 @@ class XendConfig(dict):
         for dev_uuid in ordered_refs:
             dev_type, dev_info = target['devices'][dev_uuid]
             if dev_type == 'pci': # special case for pci devices
-                sxpr = [['uuid', dev_info['uuid']]]
+                sxpr = ['pci', ['uuid', dev_info['uuid']]]
                 for pci_dev_info in dev_info['devs']:
                     pci_dev_sxpr = ['dev']
                     for opt, val in pci_dev_info.items():