Received: from eggs.gnu.org ([140.186.70.92]:55631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDPjL-0005fw-HW for qemu-devel@nongnu.org; Mon, 10 Oct 2011 19:58:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDPjK-0004sm-J9 for qemu-devel@nongnu.org; Mon, 10 Oct 2011 19:57:59 -0400 Received: from mail-vx0-f173.google.com ([209.85.220.173]:54134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDPjK-0004sf-Gm for qemu-devel@nongnu.org; Mon, 10 Oct 2011 19:57:58 -0400 Received: by vcbfl10 with SMTP id fl10so6004393vcb.4 for ; Mon, 10 Oct 2011 16:57:56 -0700 (PDT) Date: Mon, 10 Oct 2011 19:57:53 -0400 From: Kevin O'Connor Message-ID: <20111010235753.GA10550@morn.localdomain> References: <20111010170803.GV9408@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111010170803.GV9408@redhat.com> Subject: Re: [Qemu-devel] Hack integrating SeaBios / LinuxBoot option rom with QEMU trace backends List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: seabios@seabios.org, qemu-devel On Mon, Oct 10, 2011 at 06:08:03PM +0100, Daniel P. Berrange wrote: > I've been investigating where time disappears to when booting Linux guests. > > Initially I enabled DEBUG_BIOS in QEMU's hw/pc.c, and then hacked it so > that it could print a timestamp before each new line of debug output. The > problem with that is that it slowed down startup, so the timings I was > examining all changed. A lot of effort went into optimizing SeaBIOS boot time. There is a tool in seabios git to help with benchmarking - tools/readserial.py. The tool was designed for use with serial ports on real machines using coreboot, but it works with qemu too: mkfifo seabioslog ./tools/readserial.py -nf seabioslog qemu-system-x86_64 -chardev pipe,id=seabios,path=seabioslog -device isa-debugcon,iobase=0x402,chardev=seabios -hda myimage This will show the SeaBIOS debug output with timing info. -Kevin