Received: from [140.186.70.92] (port=47287 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OadlW-00035p-Gc for qemu-devel@nongnu.org; Sun, 18 Jul 2010 19:59:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OadlV-0007UL-CX for qemu-devel@nongnu.org; Sun, 18 Jul 2010 19:59:26 -0400 Received: from hall.aurel32.net ([88.191.82.174]:55012) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OadlV-0007UF-5N for qemu-devel@nongnu.org; Sun, 18 Jul 2010 19:59:25 -0400 Date: Mon, 19 Jul 2010 01:59:22 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH 2/2] fw_cfg: Add blit operation for copying kernel, initrd, .. Message-ID: <20100718235922.GA26876@ohm.aurel32.net> References: <20100717133930.GC19767@amd.home.annexia.org> <20100717134104.GB20292@amd.home.annexia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20100717134104.GB20292@amd.home.annexia.org> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Richard W.M. Jones" Cc: qemu-devel@nongnu.org On Sat, Jul 17, 2010 at 02:41:04PM +0100, Richard W.M. Jones wrote: > > -- > Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones > virt-top is 'top' for virtual machines. Tiny program with many > powerful monitoring features, net stats, disk stats, logging, etc. > http://et.redhat.com/~rjones/virt-top > >From cd167170239d60c8d13c56c881ee5f31387857af Mon Sep 17 00:00:00 2001 > From: Richard Jones > Date: Sat, 17 Jul 2010 14:30:46 +0100 > Subject: [PATCH 2/2] fw_cfg: Add blit operation for copying kernel, initrd, setup, cmdline. > > This adds a "blit" operation for rapidly copying the kernel, initrd > etc into the guest. Instead of doing an "inb" operation for every > byte of these images, the guest sets up a blit address and issues > a special read_fw with the FW_CFG_BLIT bit set. This instructs > qemu to copy the whole of the image to the blit address. > > With this patch, loading large initrds is several seconds faster, > and overall boot time is reduced correspondingly. > > Signed-off-by: Richard W.M. Jones > --- > hw/fw_cfg.c | 19 ++++++++++++++++++- > hw/fw_cfg.h | 7 +++++-- > pc-bios/optionrom/linuxboot.S | 8 ++++---- > pc-bios/optionrom/optionrom.h | 37 +++++++++++++++++++++++++++++++++++++ > 4 files changed, 64 insertions(+), 7 deletions(-) OpenBIOS also uses the same firmware interface, so it would need to be changed if this patch is accepted. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net