Received: from [140.186.70.92] (port=33896 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTC6h-0001v5-7e for qemu-devel@nongnu.org; Mon, 28 Jun 2010 07:02:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTC6c-0006hn-8T for qemu-devel@nongnu.org; Mon, 28 Jun 2010 07:02:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:17946) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTC6c-0006hC-0i for qemu-devel@nongnu.org; Mon, 28 Jun 2010 07:02:26 -0400 From: Markus Armbruster References: Date: Mon, 28 Jun 2010 13:02:20 +0200 In-Reply-To: (Liran Schour's message of "Mon, 28 Jun 2010 11:05:44 +0300") 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 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: >> >> static void init_blk_migration_it(void *opaque, BlockDriverState *bs) >> { >> Monitor *mon = opaque; >> BlkMigDevState *bmds; >> int64_t sectors; >> >> if (bs->type == BDRV_TYPE_HD) { >> [...] >> } >> } >> >> 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!