From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsIyD-0007Hn-58 for qemu-devel@nongnu.org; Fri, 20 Jul 2012 15:36:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SsIwM-0002WF-UH for qemu-devel@nongnu.org; Fri, 20 Jul 2012 15:34:37 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:38007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsIwM-0002TW-OL for qemu-devel@nongnu.org; Fri, 20 Jul 2012 15:32:42 -0400 Received: by wibhm2 with SMTP id hm2so671488wib.10 for ; Fri, 20 Jul 2012 12:32:41 -0700 (PDT) From: benoit.canet@gmail.com Date: Fri, 20 Jul 2012 21:32:34 +0200 Message-Id: <1342812757-2651-1-git-send-email-benoit@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH 0/3] Block migration when streaming block jobs are running List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: stefanha@gmail.com, stefanha@linux.vnet.ibm.com, =?UTF-8?q?Beno=C3=AEt=20Canet?= From: Benoît Canet This patchset is designed to avoid starting a live migration while one or more streaming block jobs are running. Tested with the following sequence: QEMU 1.1.50 monitor - type 'help' for more information (qemu) block_stream virtio0 1k (qemu) migrate tcp:localhost:4444 migrate: Streaming blocks migration (qemu) migrate tcp:localhost:4444 migrate: Streaming blocks migration (qemu) block_job_cancel virtio0 (qemu) migrate tcp:localhost:4444 migrate: Connection can not be completed immediately (qemu) => migration then succeed Benoît Canet (3): block: Add bdrv_have_block_jobs() so migration code abort if needed. qerror: Add error telling that streaming blocks migration migration: block migration when streaming block jobs are running. block.c | 14 ++++++++++++++ block.h | 2 ++ migration.c | 5 +++++ qerror.c | 4 ++++ qerror.h | 3 +++ 5 files changed, 28 insertions(+) -- 1.7.9.5