From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SANpf-0007j5-6Y for qemu-devel@nongnu.org; Wed, 21 Mar 2012 11:52:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SANpZ-00030j-Nw for qemu-devel@nongnu.org; Wed, 21 Mar 2012 11:52:14 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:54204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SANpZ-00030Y-FI for qemu-devel@nongnu.org; Wed, 21 Mar 2012 11:52:09 -0400 Received: by wibhr17 with SMTP id hr17so1507356wib.10 for ; Wed, 21 Mar 2012 08:52:07 -0700 (PDT) From: =?UTF-8?q?Beno=C3=AEt=20Canet?= Date: Wed, 21 Mar 2012 16:51:57 +0100 Message-Id: <1332345124-381-1-git-send-email-benoit.canet@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH V2 0/7] Make QED with live migration safe List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Beno=C3=AEt=20Canet?= , stefanha@linux.vnet.ibm.com This is the second version of a patchset aiming at making the combined usage of QED and live migration safe. Since v1: -The block layer is not aware anymore of the migration state. (stefanha) -No bdrv_invalidate_cache renaming since the semantic do not change. (stefanha) -The qed bdrv_invalidate_cache function does a reopening of the image to flush metadata and to do the image integrity check. (stefanha) note: In "qed: honor BDRV_O_INCOMING for incoming live migration" I choose to honor bs->open_flags and not s->flags in order to keep the bdrv_qed_invalidate_cache function intact of any migration related operation. This way bdrv_qed_invalidate_cache semantic is not changed. BenoƮt Canet (7): block: Add new BDRV_O_INCOMING flag to notice incoming live migration block: add a function to clear incoming live migration flags blockdev: open images with BDRV_O_INCOMING on incoming live migration qed: add bdrv_invalidate_cache to be called after incoming live migration migration: clear BDRV_O_INCOMING flags on end of incoming live migration qed: honor BDRV_O_INCOMING for incoming live migration qed: remove incoming live migration blocker block.c | 9 +++++++++ block.h | 3 +++ block/qed.c | 29 ++++++++++++++++++----------- block/qed.h | 3 +-- blockdev.c | 4 ++++ migration.c | 1 + 6 files changed, 36 insertions(+), 13 deletions(-) -- 1.7.7.6