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:
kfraser@localhost.localdomain committed 2007-02-28 14:13:09 +00:00
1 parent 96b0fdf67b
commit c70b3e5890
5 files changed
+61 -25

No files matched your search

+5 -5
View File
@@ -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()
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.