Received: from eggs.gnu.org ([208.118.235.92]:38906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1cZB-0005uL-Da for qemu-devel@nongnu.org; Wed, 15 Aug 2012 08:19:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1cZA-0005py-8k for qemu-devel@nongnu.org; Wed, 15 Aug 2012 08:19:17 -0400 From: Markus Armbruster References: <1344519084-21847-1-git-send-email-armbru@redhat.com> <87hascw42n.fsf@blackfin.pond.sub.org> <201208091544.44112.paul@codesourcery.com> Date: Wed, 15 Aug 2012 14:18:44 +0200 In-Reply-To: <201208091544.44112.paul@codesourcery.com> (Paul Brook's message of "Thu, 9 Aug 2012 15:44:41 +0100") Message-ID: <87boicgxgb.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 00/23] Suppress unused default drives List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: Peter Maydell , Evgeny Voevodin , qemu-devel@nongnu.org, Peter Crosthwaite , Max Filippov , "Edgar E. Iglesias" , Igor Mitsyanko , Alexander Graf , Andreas =?utf-8?Q?F=C3=A4rber?= , =?utf-8?Q?Herv=C3=A9?= Poussineau , Maksim Kozlov , Stefano Stabellini , Jan Kiszka , Blue Swirl , Anthony Liguori , Mark Langsdorf , Michael Walle , qemu-ppc@nongnu.org, Dmitry Solodkiy , Peter Chubb , Aurelien Jarno Paul Brook writes: >> > *can* use it for something entirely else, if=sd notwithstanding: >> > (qemu) device_add lsi >> > (qemu) device_add scsi-cd,drive=sd0 >> >> If/when we get a PCI SD card controller model, would all the PCI >> using machines need to be added to take the 'no default sd card' >> setting out again, or does it get overridden anyway if you say >> "and I'd like an sd controller"? > > For SD cards we shouldn't need this to start with. Why are we creating SD > cards when there's no host controller to connect them to? Surely we shold be > able to figure that out automatically. Especially important for board > variants with multiple SD interfaces. > > Is this all a hangover from before we have proper -drive options? As far as I can tell, we used to create default drives unconditionally. Commit aa40fc9c (v0.13) added -nodefaults to suppress them all, and commit ac33f8fa (v0.13) added means for boards to suppress them selectively. Commit e3260506 (v1.1) suppressed SD card for xilinx-zynq-a9, and commit ad0bbc56 (v1.1) suppress all three for s390-virtio. My patch series fixes up all boards to suppress all unused drives. Better late than never. We can certainly try to detect "board uses default drive X" automatically, so that boards don't have to declare their need explicitly. But considering how close we are to the freeze, I prefer my simple and safe fix for now. We can always improve on it later.