From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4yFo-0000fV-Oy for qemu-devel@nongnu.org; Tue, 06 Mar 2012 12:33:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4yFa-000542-Ct for qemu-devel@nongnu.org; Tue, 06 Mar 2012 12:32:52 -0500 Received: from mail-wi0-f173.google.com ([209.85.212.173]:54954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4yFa-00053S-46 for qemu-devel@nongnu.org; Tue, 06 Mar 2012 12:32:38 -0500 Received: by wibhi18 with SMTP id hi18so3485888wib.4 for ; Tue, 06 Mar 2012 09:32:35 -0800 (PST) From: =?UTF-8?q?Beno=C3=AEt=20Canet?= Date: Tue, 6 Mar 2012 18:32:19 +0100 Message-Id: <1331055149-10982-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] [RFC PATCH 00/10] make qed and live migration usage safe List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, =?UTF-8?q?Beno=C3=AEt=20Canet?= , stefanha@linux.vnet.ibm.com, wolf@redhat.com QED + live migration is an unsafe and disabled mix. This patchset make qed and live migration safe to use. The check of QED images is delayed during the incoming migration. After the migration complete the QED images are checked. BenoƮt Canet (10): block: Add new BDRV_O_INCOMING flag to notice incoming live migration block: add a function to set incoming live migration block: add a function to clear incoming live migration block: rename *_invalidate_cache_* to *_post_incoming_migration_* migration: inform the block layer of incoming live status block: open images with BDRV_O_INCOMING on incoming live migration qed: extract image checking into check_image_if_needed qed: add bdrv_post_incoming_migration operation checking the image qed: honor BDRV_O_INCOMING for incoming live migration qed: remove incoming live migration blocker block.c | 35 +++++++++++++++++++++--- block.h | 13 +++++++-- block/qcow2.c | 7 ++++- block/qed.c | 81 +++++++++++++++++++++++++++++++++++---------------------- block/qed.h | 2 - block_int.h | 4 +- migration.c | 9 +++++- vl.c | 5 +++ 8 files changed, 110 insertions(+), 46 deletions(-) -- 1.7.7.6