From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IzMSf-0006NQ-Bc for qemu-devel@nongnu.org; Mon, 03 Dec 2007 20:20:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IzMSc-0006M5-Qd for qemu-devel@nongnu.org; Mon, 03 Dec 2007 20:20:32 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzMSc-0006Lz-MP for qemu-devel@nongnu.org; Mon, 03 Dec 2007 20:20:30 -0500 Received: from mail.codesourcery.com ([65.74.133.4]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IzMSc-00064C-EK for qemu-devel@nongnu.org; Mon, 03 Dec 2007 20:20:30 -0500 From: Paul Brook Subject: Re: [Qemu-devel] qemu vl.c hw/omap.c Date: Tue, 4 Dec 2007 01:20:25 +0000 References: <200712040102.03664.paul@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712040120.26286.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Tuesday 04 December 2007, andrzej zaborowski wrote: > On 04/12/2007, Paul Brook wrote: > > > Log message: > > > Always create an SD bdrv, so that PXA and OMAP boards can boot > > > with no card inserted again. Eventually SD, CDROM and floppy should > > > all be registered conditionally depending on machine. > > > > This seems the wrong way to solve this problem. The SD emulation should > > be able to cope with no device being present. > > The bdrv's represent the concept of "drive" rather than "media", and > also in the case the bdrv must be present whenever there is a SD slot, > not an SD card (so that monitor command change and eject can be used). > I agree that not all machines have an SD slot, as not all machines > have a cd-rom drive or floppy drive. Right, but I think you're going in the wrong direction. Most scsi interfaces do support hotplug of devices. For USB mass storage the whole controller is hotplug. Pre-allocating all possible devices simply doesn't scale. Paul