mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
More PV save/restore fixes.
Related changesets: 14148:b67c253d1cdb4f502dec2 13519:b4a8000e76db6b4b27341 These three changesets must be applied as a set! Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
96b0fdf67b
commit
c70b3e5890
5 files changed
+61
-25
No files matched your search
@@ -230,11 +230,7 @@ def restore(xd, fd, dominfo = None, paused = False):
|
||||
if not is_hvm and handler.console_mfn is None:
|
||||
raise XendError('Could not read console MFN')
|
||||
|
||||
dominfo.waitForDevices() # Wait for backends to set up
|
||||
if not paused:
|
||||
dominfo.unpause()
|
||||
|
||||
# get qemu state and create a tmp file for dm restore
|
||||
# get qemu state and create a tmp file for dm restore
|
||||
if is_hvm:
|
||||
qemu_signature = read_exact(fd, len(QEMU_SIGNATURE),
|
||||
"invalid device model signature read")
|
||||
@@ -257,6 +253,10 @@ def restore(xd, fd, dominfo = None, paused = False):
|
||||
|
||||
dominfo.completeRestore(handler.store_mfn, handler.console_mfn)
|
||||
|
||||
dominfo.waitForDevices() # Wait for backends to set up
|
||||
if not paused:
|
||||
dominfo.unpause()
|
||||
|
||||
return dominfo
|
||||
except:
|
||||
dominfo.destroy()
|
||||
|
||||