[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] libxc: reset completed flag in restore_ctx
# HG changeset patch # User Jim Fehlig <jfehlig@xxxxxxxxxx> # Date 1306191873 21600 # Node ID f94242f20cdaee81d28f68df38d5a98f8fd9947d # Parent fb517cc27adef3a7ad548e7397e02e1414132ead libxc: reset completed flag in restore_ctx Long running libxl/libxc apps such as libvirt segfault when attempting multiple restores. The completed flag in restore_ctx structure is set at completion of first restore. Subsequent restores do not load any pages and result in the segfault. Reset completed flag at start of restore. Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxxxx> diff -r fb517cc27ade -r f94242f20cda tools/libxc/xc_domain_restore.c --- a/tools/libxc/xc_domain_restore.c Fri May 20 18:20:09 2011 +0100 +++ b/tools/libxc/xc_domain_restore.c Mon May 23 17:04:33 2011 -0600 @@ -1146,6 +1146,7 @@ int xc_domain_restore(xc_interface *xch, /* For info only */ ctx->nr_pfns = 0; + ctx->completed = 0; if ( superpages ) return 1; _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |