Received: from eggs.gnu.org ([140.186.70.92]:50865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFUNl-00070G-GW for qemu-devel@nongnu.org; Sun, 16 Oct 2011 13:20:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFUNk-00011L-Cw for qemu-devel@nongnu.org; Sun, 16 Oct 2011 13:20:17 -0400 Received: from gw.ac.upc.edu ([147.83.30.3]:44301) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFUNk-00011F-6a for qemu-devel@nongnu.org; Sun, 16 Oct 2011 13:20:16 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <20111010170803.GV9408@redhat.com> <4E933F2D.7090703@codemonkey.ws> <20111011082315.GI14627@redhat.com> <20111015161648.GC8872@amd.home.annexia.org> Date: Sun, 16 Oct 2011 19:20:06 +0200 In-Reply-To: <20111015161648.GC8872@amd.home.annexia.org> (Richard W. M. Jones's message of "Sat, 15 Oct 2011 17:16:48 +0100") Message-ID: <87k484lupl.fsf@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] Slow kernel/initrd loading via fw_cfg; Was Re: Hack integrating SeaBios / LinuxBoot option rom with QEMU trace backends List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Richard W.M. Jones" Cc: Blue Swirl , Avi Kivity , qemu-devel , Gleb Natapov , Alexander Graf Richard W M Jones writes: > On Sat, Oct 15, 2011 at 10:00:02AM +0000, Blue Swirl wrote: >> I don't understand why PC can't use the same way of loading initrd by >> QEMU to guest memory before boot as Sparc32 uses. It should even be >> possible to deduplicate the kernel and initrd images: improve the >> loader to use mmap() for loading so that several guests would use the >> same pages. Preloaded kernel and initrd are paravirtual anyway, there >> could be even guest visible changes if ever needed (e.g. map >> kernel/initrd pages outside of normal RAM areas). > +1! > Even better if we extended Linux so it worked more like OS-9 (circa > 1990): At boot, scan memory for modules and insmod them. That way we > wouldn't even need an initrd since we could just supply the correct > list of modules that the guest needs to mount its root disk. I'm not really knowledgeable of the topic at hand, but if the objective is to boot the kernel image given through QEMU's cmdline, QEMU can just put the files in memory in a way that is compliant to what grub already does, which is a format well understood by linux itself (multiboot modules, I think they're called). Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth