From: Jeremy Katz Subject: Re: [RFC] Bootloader configuration Date: Wed, 01 Mar 2006 23:53:09 -0500 Message-ID: <1141275189.22588.20.camel@bree.local.net> References: <20060227164703.GA7855@totally.trollied.org> <20060228203155.GD8586@tyer.cl.cam.ac.uk> <20060228204016.GA28693@totally.trollied.org> <200603011710.59469.hollisb@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200603011710.59469.hollisb@us.ibm.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: Hollis Blanchard Cc: Tim Deegan , xen-devel@lists.xensource.com, John Levon List-Id: xen-devel@lists.xenproject.org On Wed, 2006-03-01 at 17:10 -0600, Hollis Blanchard wrote: > On Tuesday 28 February 2006 14:40, John Levon wrote: > > On Tue, Feb 28, 2006 at 08:31:55PM +0000, Tim Deegan wrote: > > > A grub port (or similar) seems like the most useful thing. > > > > Right. AFAIK nobody is working on this right now. > > GRUB already implements its own read-only filesystem drivers for a variety of > filesystems. It sounds like your "readfs" would be duplicating this work. Well, GRUB is also duplicating plenty of work. Filesystem code is fun! Well, or not ;-) > > > The less dom0 has to understand about domU's kernel/fs peculiarities, > > > and the less fs, config and loader code that needs to be rewritten > > > just for Xen, the better. > > I suppose it would also be nice not to need dom0 access to modify a domU's > kernel. That's the whole point behind the boot loader interface and pygrub as it currently exists. > GRUB2 is conveniently very modular. You implement a block driver (Open > Firmware and BIOS drivers are already implemented), and then the filesystem > drivers "just work." You would want to write a small "blkfront" driver and > see exactly how little code you can get away with. Yeah, I had started to look at using the filesystem drivers for use in pygrub -- there's a lot of grub2 which is less applicable for bootstrapping a domU, but re-inventing the wheel of filesystem reading code is overkill. Jeremy