qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

migration: savevm: fix error code with migration blockers

The only caller that checks the error code is looking for != 0,
so returning false is incorrect.

Fixes: 5aaac467938 "migration: savevm: consult migration blockers"

Signed-off-by: Cole Robinson <crobinso@redhat.com>
Message-Id: <b991a4d0e6c4253bc08b2794c6084be55fc72e1d.1554851834.git.crobinso@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>

authored by

Cole Robinson and committed by
Dr. David Alan Gilbert
aded9dfa f2dd7edd

+1 -1
+1 -1
migration/savevm.c
··· 2542 2542 AioContext *aio_context; 2543 2543 2544 2544 if (migration_is_blocked(errp)) { 2545 - return false; 2545 + return ret; 2546 2546 } 2547 2547 2548 2548 if (!replay_can_snapshot()) {