From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv4ka-0007rx-5u for qemu-devel@nongnu.org; Fri, 05 Jul 2013 08:04:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uv4kX-0008Fc-2G for qemu-devel@nongnu.org; Fri, 05 Jul 2013 08:04:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv4kW-0008FH-Px for qemu-devel@nongnu.org; Fri, 05 Jul 2013 08:04:28 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r65C4Rk2002486 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 5 Jul 2013 08:04:27 -0400 From: Kevin Wolf Date: Fri, 5 Jul 2013 14:03:50 +0200 Message-Id: <1373025833-22859-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 0/3] Fail migration on bdrv_flush_all() error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, stefanha@redhat.com, quintela@redhat.com If bdrv_flush_all() returns an error, there is an inconsistency in the view of an image file between the source and the destination host. Completing the migration would lead to corruption. Better abort migration in this case. Kevin Wolf (3): block: Add return value for bdrv_flush_all() cpus: Add return value for vm_stop() migration: Fail migration on bdrv_flush_all() error block.c | 10 ++++++++-- cpus.c | 20 +++++++++++++------- include/block/block.h | 2 +- include/sysemu/sysemu.h | 4 ++-- migration.c | 17 ++++++++++++++--- stubs/vm-stop.c | 2 +- 6 files changed, 39 insertions(+), 16 deletions(-) -- 1.8.1.4