2011-08-15 15:32:00 +02:00
|
|
|
Pass console_port to completeRestore() so that console/port is written to
|
|
|
|
xenstore. See bnc#706574
|
|
|
|
|
|
|
|
From: Chunyan Liu <cyliu@novell.com>
|
|
|
|
|
2012-09-17 17:49:23 +02:00
|
|
|
Index: xen-4.2.0-testing/tools/python/xen/xend/XendCheckpoint.py
|
2011-08-15 15:32:00 +02:00
|
|
|
===================================================================
|
2012-09-17 17:49:23 +02:00
|
|
|
--- xen-4.2.0-testing.orig/tools/python/xen/xend/XendCheckpoint.py
|
|
|
|
+++ xen-4.2.0-testing/tools/python/xen/xend/XendCheckpoint.py
|
|
|
|
@@ -329,8 +329,7 @@ def restore(xd, fd, dominfo = None, paus
|
2011-08-15 15:32:00 +02:00
|
|
|
restore_image.setCpuid()
|
|
|
|
|
|
|
|
# xc_restore will wait for source to close connection
|
|
|
|
-
|
|
|
|
- dominfo.completeRestore(handler.store_mfn, handler.console_mfn)
|
|
|
|
+ dominfo.completeRestore(handler.store_mfn, handler.console_mfn, console_port)
|
|
|
|
|
2012-09-17 17:49:23 +02:00
|
|
|
#
|
|
|
|
# We shouldn't hold the domains_lock over a waitForDevices
|
|
|
|
Index: xen-4.2.0-testing/tools/python/xen/xend/XendDomainInfo.py
|
2011-08-15 15:32:00 +02:00
|
|
|
===================================================================
|
2012-09-17 17:49:23 +02:00
|
|
|
--- xen-4.2.0-testing.orig/tools/python/xen/xend/XendDomainInfo.py
|
|
|
|
+++ xen-4.2.0-testing/tools/python/xen/xend/XendDomainInfo.py
|
|
|
|
@@ -3062,7 +3062,7 @@ class XendDomainInfo:
|
2011-08-15 15:32:00 +02:00
|
|
|
# TODO: recategorise - called from XendCheckpoint
|
|
|
|
#
|
|
|
|
|
|
|
|
- def completeRestore(self, store_mfn, console_mfn):
|
|
|
|
+ def completeRestore(self, store_mfn, console_mfn, console_port):
|
|
|
|
|
|
|
|
log.debug("XendDomainInfo.completeRestore")
|
|
|
|
|
2012-09-17 17:49:23 +02:00
|
|
|
@@ -3073,6 +3073,7 @@ class XendDomainInfo:
|
2011-08-15 15:32:00 +02:00
|
|
|
self.image = image.create(self, self.info)
|
|
|
|
if self.image:
|
2012-09-17 17:49:23 +02:00
|
|
|
self.image.createDeviceModel(True)
|
2011-08-15 15:32:00 +02:00
|
|
|
+ self.console_port = console_port
|
|
|
|
self._storeDomDetails()
|
|
|
|
self._registerWatches()
|
|
|
|
self.refreshShutdown()
|