mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
[TOOLS] Wait for backend devices to set up before resuming execution
of a restored guest. Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
776187826b
commit
ad27570a65
1 file changed
+2
-2
@@ -161,8 +161,8 @@ def restore(xd, fd):
|
||||
if handler.store_mfn is None or handler.console_mfn is None:
|
||||
raise XendError('Could not read store/console MFN')
|
||||
|
||||
#Block until src closes connection
|
||||
os.read(fd, 1)
|
||||
os.read(fd, 1) # Wait for source to close connection
|
||||
dominfo.waitForDevices() # Wait for backends to set up
|
||||
dominfo.unpause()
|
||||
|
||||
dominfo.completeRestore(handler.store_mfn, handler.console_mfn)
|
||||
|
||||