Restore_common function should return error when failed.
But It's always return 0. The patch fix this problem.
Signed-off-by: Yang Hongyang <yanghy@xxxxxxxxxxxxxx>
diff -r 9f49e9794596 tools/libxl/libxl_dom.c
--- a/tools/libxl/libxl_dom.c Fri Jun 11 15:22:12 2010 +0100
+++ b/tools/libxl/libxl_dom.c Tue Jun 15 17:41:19 2010 +0800
@@ -196,11 +196,10 @@
int fd)
{
/* read signature */
- xc_domain_restore(ctx->xch, fd, domid,
- state->store_port, &state->store_mfn,
- state->console_port, &state->console_mfn,
- info->hvm, info->u.hvm.pae, 0);
- return 0;
+ return xc_domain_restore(ctx->xch, fd, domid,
+ state->store_port, &state->store_mfn,
+ state->console_port, &state->console_mfn,
+ info->hvm, info->u.hvm.pae, 0);
}
struct suspendinfo {
--
Regards
Yang Hongyang
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|