From: Stefano Stabellini Subject: Re: xl vs. xm: floppy support Date: Wed, 2 Mar 2011 13:56:30 +0000 Message-ID: References: <201103011037.19341.Christoph.Egger@amd.com> <1298975916.5034.2102.camel@zakaz.uk.xensource.com> <1298980811.20975.62.camel@qabil.uk.xensource.com> <1298981504.17907.14.camel@zakaz.uk.xensource.com> <4D6CE734.9050001@eu.citrix.com> <1298984600.17907.66.camel@zakaz.uk.xensource.com> <19821.13157.422683.711736@mariner.uk.xensource.com> <1299011341.21399.10.camel@localhost.localdomain> <1299058270.17907.1336.camel@zakaz.uk.xensource.com> <1299060188.17907.1372.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Return-path: In-Reply-To: <1299060188.17907.1372.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: Vincent Hanquez , "xen-devel@lists.xensource.com" , Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Wed, 2 Mar 2011, Ian Campbell wrote: > On Wed, 2011-03-02 at 09:31 +0000, Ian Campbell wrote: > > On Tue, 2011-03-01 at 20:29 +0000, Ian Campbell wrote: > > > > > > I'll knock up a patch in the morning. > > > > ... > [...] > > e.g. xl does not current support floppy disks but adding: > > device_model_args = [ "-fda", "/scratch/fdboot.img" ] > > allowed me to boot FreeDOS from a floppy image. > > We may as well have a patch for direct support for fdb/fdb too so we can > evaluate it on its merits for 4.1. I've no problem with deferring this > to 4.2 at this stage in the release but it is a pretty straightforward > patch... > > This doesn't support stubdoms, not sure how that works in the xend case > either, but I'm pretty certain that patch would be too big for this > stage in the release. The right way to implement fd* support is probably to create an "fd" disk type, so that we can have frontends and backends for floppies and support stubdoms. However that would be obviously too much for this stage of the release. This patch would solve the simple case but would introduce two fields in the libxl idl that we know are wrong. I would rather implement this kind of simple fd support entirely in xl using the extra field in libxl_device_model_info so that we don't "corrupt" the idl.