tools/libxenguest: Fix migration's debug option
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 2 Jul 2021 18:08:46 +0000 (19:08 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 5 Jul 2021 10:30:14 +0000 (11:30 +0100)
The code has gone through many refactors, but the first refactor was the one
which broke it by inverting the check with respect to checkpointed streams.

Fixes: 7449fb36c6c8 ("migration/save: pass checkpointed_stream from libxl to libxc")
Reported-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Olaf Hering <olaf@aepfle.de>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tools/libs/guest/xg_sr_save.c

index 2ba7c3200cd5e6503fe3b285a39a0f7a956292e5..f0e2bd048d378b41699fe2949545c46bd7c1415d 100644 (file)
@@ -752,7 +752,7 @@ static int send_domain_memory_live(struct xc_sr_context *ctx)
     if ( rc )
         goto out;
 
-    if ( ctx->save.debug && ctx->stream_type != XC_STREAM_PLAIN )
+    if ( ctx->save.debug && ctx->stream_type == XC_STREAM_PLAIN )
     {
         rc = verify_frames(ctx);
         if ( rc )