mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
1 parent
458052b5ec
commit
8a8378e8df
3 files changed
+5
-5
No files matched your search
@@ -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)
|
||||
#Block until src closes connection
|
||||
os.read(fd, 1)
|
||||
dominfo.unpause()
|
||||
|
||||
dominfo.completeRestore(handler.store_mfn, handler.console_mfn)
|
||||
|
||||
@@ -431,8 +431,8 @@ class XendDomain:
|
||||
sock.send("receive\n")
|
||||
sock.recv(80)
|
||||
XendCheckpoint.save(sock.fileno(), dominfo, True, live, dst)
|
||||
dominfo.testDeviceComplete()
|
||||
sock.close()
|
||||
dominfo.testDeviceComplete()
|
||||
sock.close()
|
||||
|
||||
def domain_save(self, domid, dst):
|
||||
"""Start saving a domain to file.
|
||||
|
||||
@@ -1494,7 +1494,7 @@ class XendDomainInfo:
|
||||
if rc != 0:
|
||||
raise XendError("Device of type '%s' refuses migration." % n)
|
||||
|
||||
def testDeviceComplete(self):
|
||||
def testDeviceComplete(self):
|
||||
""" For Block IO migration safety we must ensure that
|
||||
the device has shutdown correctly, i.e. all blocks are
|
||||
flushed to disk
|
||||
|
||||