Received: from eggs.gnu.org ([140.186.70.92]:42016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RF6us-0008Gj-FE for qemu-devel@nongnu.org; Sat, 15 Oct 2011 12:16:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RF6ur-0006OO-C6 for qemu-devel@nongnu.org; Sat, 15 Oct 2011 12:16:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:17220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RF6ur-0006Nv-4y for qemu-devel@nongnu.org; Sat, 15 Oct 2011 12:16:53 -0400 Date: Sat, 15 Oct 2011 17:16:48 +0100 From: "Richard W.M. Jones" Message-ID: <20111015161648.GC8872@amd.home.annexia.org> References: <20111010170803.GV9408@redhat.com> <4E933F2D.7090703@codemonkey.ws> <20111011082315.GI14627@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: Blue Swirl Cc: qemu-devel , Alexander Graf , Gleb Natapov , Avi Kivity 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. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/