Received: from [140.186.70.92] (port=47493 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPVoa-0006Z5-MZ for qemu-devel@nongnu.org; Fri, 18 Jun 2010 03:16:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OPVoX-0005H1-MB for qemu-devel@nongnu.org; Fri, 18 Jun 2010 03:16:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52302) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPVoX-0005Gk-Fa for qemu-devel@nongnu.org; Fri, 18 Jun 2010 03:16:33 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] Re: RFC v2: blockdev_add & friends, brief rationale, QMP docs References: <4C1783CC.7070307@redhat.com> <4C18B375.4050900@redhat.com> <4C18D483.4080200@codemonkey.ws> <4C18D85A.1050208@redhat.com> <4C1912D5.5090102@codemonkey.ws> <4C19DABC.8090609@redhat.com> <4C1A1CB6.2050705@codemonkey.ws> Date: Fri, 18 Jun 2010 09:06:41 +0200 In-Reply-To: <4C1A1CB6.2050705@codemonkey.ws> (Anthony Liguori's message of "Thu, 17 Jun 2010 08:01:42 -0500") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Kevin Wolf , Christoph Hellwig , qemu-devel@nongnu.org, Luiz Capitulino , Avi Kivity , Gerd Hoffmann Anthony Liguori writes: > On 06/17/2010 03:20 AM, Kevin Wolf wrote: >> Am 16.06.2010 20:07, schrieb Anthony Liguori: >> >>>> But it requires that >>>> everything that -blockdev provides is accessible with -drive, too (or >>>> that we're okay with users hating us). >>>> >>>> >>> I'm happy for -drive to die. I think we should support -hda and >>> -blockdev. >>> >> -hda is not sufficient for most users. It doesn't provide any options. >> It doesn't even support virtio. If -drive is going to die (and we seem >> to agree all on that), then -blockdev needs to be usable for users (and >> it's only you who contradicts so far). >> > > I've always thought we should have a -vda argument and an -sda > argument specifically for specifying virtio and scsi disks. "-hda F" is a cognitive dead end: if you need more control, knowing -hda doesn't give you a better idea where to look for it than not knowing it. This is different with "-drive file=F". It can grow with the user's needs. -blockdev's primary mission is clean host / guest separation, and clean interface to block devices for QMP and for config files. If it turns out to be too verbose and complex for everyday command line use, we shouldn't take -hda & similar as excuse for leaving it there. We still need a usable option that can grow with the user's needs. And it better be able to grow to the point where you have full control over the device model, i.e. you use -device. [...]