[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [Patch v2] tools/migrate: Fix regression when migrating from older version of Xen
On Thu, Jul 18, 2013 at 12:27 PM, Andrew Cooper <andrew.cooper3@xxxxxxxxxx> wrote:
So the !! is a bug, then .. ctx->last_checkpoint = !checkpointed_stream; I know xend is deprecated but xend+remus is currently the only working version of remus.
and this patch, especially setting the value to 0 in xc_restore.c breaks xend-remus. We could atleast mandate that migrations/remus in Xend will work only between same version of toolstack.
Just to clarify.. the code flows like this, iirc. loadpages: while (1) if !completed get pagebufs
if 0 pages sent, break endif apply batch (pagebufs) endwhile if !completed get tailbuf [[this is where the QEMU record would be obtained]]
completed = 1 endif if last_checkpoint goto finish endif get pagebuf or goto finish on error ---> this is where old code used to exit
get tailbuf goto loadpages finish: apply tailbuf [tailbuf obtained inside the 'if !completed' block] do the rest of the restore So are you sure that the max batch size error is a result of that XC_SAVE_ID_LAST_CHECKPOINT ?
After all, its an "option" thats received from the remote end. Not a mandatory parameter. If we revert to the old style of control flow, like the patch below, do you still get the error ? diff -r a90bf2537141 tools/libxc/xc_domain_restore.c --- a/tools/libxc/xc_domain_restore.c Mon Jun 10 21:06:47 2013 -0400 +++ b/tools/libxc/xc_domain_restore.c Thu Jul 18 14:44:04 2013 -0400
@@ -1628,7 +1628,6 @@ * If more checkpoints are expected then shift into * nonblocking mode for the remainder. */ - if ( !ctx->last_checkpoint )
fcntl(io_fd, F_SETFL, orig_io_fd_flags | O_NONBLOCK); /* _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |