mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
xend: Pass information to user when failing migrate due to PCI dev.
When failing a migration / save due to the domain owning a PCI device make sure that we tell the user what went wrong! Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
This commit is contained in:
1 parent
450f5b5b9e
commit
c32cff27ba
2 files changed
+5
-1
No files matched your search
@@ -148,6 +148,8 @@ def save(fd, dominfo, network, live, dst, checkpoint=False):
|
||||
except:
|
||||
log.exception("Failed to reset the migrating domain's name")
|
||||
|
||||
raise exn
|
||||
|
||||
|
||||
def restore(xd, fd, dominfo = None, paused = False):
|
||||
signature = read_exact(fd, len(SIGNATURE),
|
||||
|
||||
@@ -1262,8 +1262,10 @@ class XendDomain:
|
||||
try:
|
||||
XendCheckpoint.save(fd, dominfo, False, False, dst,
|
||||
checkpoint=checkpoint)
|
||||
finally:
|
||||
except Exception, e:
|
||||
os.close(fd)
|
||||
raise e
|
||||
os.close(fd)
|
||||
except OSError, ex:
|
||||
raise XendError("can't write guest state file %s: %s" %
|
||||
(dst, ex[1]))
|
||||
|
||||