Received: from [140.186.70.92] (port=43972 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTw5K-0000PJ-0q for qemu-devel@nongnu.org; Wed, 30 Jun 2010 08:08:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTw5G-0002Xq-3I for qemu-devel@nongnu.org; Wed, 30 Jun 2010 08:08:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5696) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTw5F-0002Xh-T5 for qemu-devel@nongnu.org; Wed, 30 Jun 2010 08:08:06 -0400 From: Markus Armbruster References: Date: Wed, 30 Jun 2010 14:08:01 +0200 In-Reply-To: (Markus Armbruster's message of "Mon, 28 Jun 2010 13:02:20 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: Block live migration's use of type hint List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liran Schour Cc: qemu-devel@nongnu.org Markus Armbruster writes: > Liran Schour writes: > >> Markus Armbruster wrote on 28/06/2010 10:26:47: >> >>> From: Markus Armbruster >>> To: qemu-devel@nongnu.org >>> Cc: Liran Schour/Haifa/IBM@IBMIL >>> Date: 28/06/2010 10:26 >>> Subject: Block live migration's use of type hint >>> >>> Block live migration appears to migrate only block devices with type >>> hint BDRV_TYPE_HD. Others are silently skipped: [...] >>> The logic comes from commit c163b5ca, but its commit message doesn't >>> mention it. Liran, please advise. What are we trying to accomplish >>> here? >>> >>> Whatever it is, I suspect checking the type hint isn't the appropriate >>> way to get it. >> >> my intention was to migrate only writeable devices. Maybe there are more >> accurate ways to do that. > > Okay, that looks like a job for bdrv_is_read_only(). > > Thanks for your quick reply! Subject: [PATCH 02/11] block migration: Fix test for read-only drive Date: Wed, 30 Jun 2010 13:55:33 +0200 Message-Id: <1277898942-6501-3-git-send-email-armbru@redhat.com>