Received: from eggs.gnu.org ([2001:4830:134:3::10]:36252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6KOm-0007Kq-HU for qemu-devel@nongnu.org; Sat, 20 Jun 2015 11:09:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6KOl-0005I7-LK for qemu-devel@nongnu.org; Sat, 20 Jun 2015 11:09:36 -0400 From: Markus Armbruster References: <1433872103-30642-1-git-send-email-peter.maydell@linaro.org> Date: Sat, 20 Jun 2015 17:09:27 +0200 In-Reply-To: (Peter Maydell's message of "Tue, 9 Jun 2015 19:23:18 +0100") Message-ID: <87h9q24dso.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 0/3] blockdev: Defer creation of implicit PCI devices for IF_VIRTIO drives List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Kevin Wolf , qemu-block@nongnu.org, Patch Tracking , Alexander Graf , QEMU Developers , Christian Borntraeger , Cornelia Huck Peter Maydell writes: > On 9 June 2015 at 18:48, Peter Maydell wrote: >> Patch 3 is the one-liner to change the default-drive-type. Unfortunately >> just doing that alone will break commandlines that currently work > > The other problem with taking patch 3 alone is that it completely > breaks everything, because: > * by default we create a "cdrom" drive whose type is > and which has no media inserted > * the virtio-blk device barfs if you give it a drive with no media: > "Device needs media, but drive is empty" > > The S390 systems get around this by specifying no_cdrom = 1, but > it doesn't seem terribly satisfactory that this has to be manually > done by any machine with a virtio default drive type... In my opinion, no_cdrom, no_parallel, no_floppy and no_sdcard are all daft. Flip their sense, and the chance of boards getting them right increases sharply. An explicit mc->use_cdrom = 1 in a machine initialization function for a board without a suitable controller sticks out and gets fixed. A missing mc->use_cdrom = 1 for a board with a suitable controller annoys users and gets fixed.