Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-23 Thread Stefano Garzarella
On Fri, Nov 23, 2018 at 4:54 PM Kevin O'Connor wrote: > > On Fri, Nov 23, 2018 at 12:18:13PM +0100, Stefano Garzarella wrote: > > On Fri, Nov 23, 2018 at 7:21 AM Gerd Hoffmann wrote: > > > On Thu, Nov 22, 2018 at 04:13:38PM +0100, Stefano Garzarella wrote: > > > > On Thu, Nov 22, 2018 at 12:51 PM

Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-23 Thread Kevin O'Connor
On Fri, Nov 23, 2018 at 12:18:13PM +0100, Stefano Garzarella wrote: > On Fri, Nov 23, 2018 at 7:21 AM Gerd Hoffmann wrote: > > On Thu, Nov 22, 2018 at 04:13:38PM +0100, Stefano Garzarella wrote: > > > On Thu, Nov 22, 2018 at 12:51 PM Gerd Hoffmann wrote: > > > > On Thu, Nov 22, 2018 at 12:08:55PM

Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-23 Thread Stefano Garzarella
On Fri, Nov 23, 2018 at 7:21 AM Gerd Hoffmann wrote: > > On Thu, Nov 22, 2018 at 04:13:38PM +0100, Stefano Garzarella wrote: > > On Thu, Nov 22, 2018 at 12:51 PM Gerd Hoffmann wrote: > > > > > > On Thu, Nov 22, 2018 at 12:08:55PM +0100, Stefano Garzarella wrote: > > > > Hi, > > > > I continued to

Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-22 Thread Gerd Hoffmann
On Thu, Nov 22, 2018 at 04:13:38PM +0100, Stefano Garzarella wrote: > On Thu, Nov 22, 2018 at 12:51 PM Gerd Hoffmann wrote: > > > > On Thu, Nov 22, 2018 at 12:08:55PM +0100, Stefano Garzarella wrote: > > > Hi, > > > I continued to investigate how to reduce the boot time with SeaBIOS > > > and QEMU

Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-22 Thread Stefano Garzarella
On Thu, Nov 22, 2018 at 12:51 PM Gerd Hoffmann wrote: > > On Thu, Nov 22, 2018 at 12:08:55PM +0100, Stefano Garzarella wrote: > > Hi, > > I continued to investigate how to reduce the boot time with SeaBIOS > > and QEMU when it used with linuxboot_dma.bin (-kernel parameter). > > I reached ~12ms wi

Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-22 Thread Gerd Hoffmann
On Thu, Nov 22, 2018 at 12:08:55PM +0100, Stefano Garzarella wrote: > Hi, > I continued to investigate how to reduce the boot time with SeaBIOS > and QEMU when it used with linuxboot_dma.bin (-kernel parameter). > I reached ~12ms with a SeaBIOS configuration (attached) where I > disabled debug outp

Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-22 Thread Stefano Garzarella
Hi, I continued to investigate how to reduce the boot time with SeaBIOS and QEMU when it used with linuxboot_dma.bin (-kernel parameter). I reached ~12ms with a SeaBIOS configuration (attached) where I disabled debug output, all Hardware support (except SMM & MTRRs) and I applied a small patch to d

Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-20 Thread Gerd Hoffmann
Hi, > > Background: The drivers in seabios work on both virtual and physical > > hardware (you can run seabios as coreboot payload on physical hardware). > > There are quite a few places where are delays and timeouts which are > > required to work properly on physical hardware. But typically v

Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-20 Thread Stefano Garzarella
Hi Gerd, On Tue, Nov 20, 2018 at 7:21 AM Gerd Hoffmann wrote: > > Hi, > > > just an update, I enabled the debug prints and I saw two timeouts fired > > with a lot > > of time lost (~780ms between "init timer" and "Scan for VGA ..."), > > putting other prints I discovered that a lot of time is s

Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-19 Thread Gerd Hoffmann
Hi, > just an update, I enabled the debug prints and I saw two timeouts fired > with a lot > of time lost (~780ms between "init timer" and "Scan for VGA ..."), > putting other prints I discovered that a lot of time is spent in the > tpm_setup(), > during the probe of the 2 TPM devices: > > 00.5

Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-19 Thread Stefano Garzarella
On Mon, Nov 19, 2018 at 3:15 PM Gerd Hoffmann wrote: > On Mon, Nov 19, 2018 at 01:07:13PM +, Stefan Hajnoczi wrote: > > On Mon, Nov 19, 2018 at 11:42:28AM +0100, Stefano Garzarella wrote: > > > On Mon, Nov 19, 2018 at 9:49 AM Gerd Hoffmann > wrote: > > > > > > > Why at runtime? What is bad

Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-19 Thread Gerd Hoffmann
On Mon, Nov 19, 2018 at 01:07:13PM +, Stefan Hajnoczi wrote: > On Mon, Nov 19, 2018 at 11:42:28AM +0100, Stefano Garzarella wrote: > > On Mon, Nov 19, 2018 at 9:49 AM Gerd Hoffmann wrote: > > > > > Why at runtime? What is bad with two images? With a runtime option > > > you probably need so

Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-19 Thread Stefan Hajnoczi
On Mon, Nov 19, 2018 at 11:42:28AM +0100, Stefano Garzarella wrote: > On Mon, Nov 19, 2018 at 9:49 AM Gerd Hoffmann wrote: > > > Hi, > > > > > I'm investigating the SeaBIOS booting time, to understand if we can > > > reduce the boot time in some cases (e.g. legacy hardware is not > > > needed).

Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-19 Thread Stefano Garzarella
On Mon, Nov 19, 2018 at 9:49 AM Gerd Hoffmann wrote: > Hi, > > > I'm investigating the SeaBIOS booting time, to understand if we can > > reduce the boot time in some cases (e.g. legacy hardware is not > > needed). I think this can be interesting also for NEMU developers. > > > The goal is to ha

Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-19 Thread Stefano Garzarella
Hi Samuel, On Mon, Nov 19, 2018 at 12:31 AM Samuel Ortiz wrote: > Hi Stefano, > > On Fri, Nov 16, 2018 at 05:13:59PM +0100, Stefano Garzarella wrote: > > Hi, > > I'm investigating the SeaBIOS booting time, to understand if we can > reduce > > the boot time in some cases (e.g. legacy hardware is

Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-19 Thread Gerd Hoffmann
Hi, > I'm investigating the SeaBIOS booting time, to understand if we can > reduce the boot time in some cases (e.g. legacy hardware is not > needed). I think this can be interesting also for NEMU developers. > The goal is to have only one image of SeaBIOS configurable at runtime > to reduce th

Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-18 Thread Samuel Ortiz
Hi Stefano, On Fri, Nov 16, 2018 at 05:13:59PM +0100, Stefano Garzarella wrote: > Hi, > I'm investigating the SeaBIOS booting time, to understand if we can reduce > the boot time in some cases (e.g. legacy hardware is not needed). I think > this > can be interesting also for NEMU developers. Defin

Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-18 Thread Samuel Ortiz
Hi Stefan, On Fri, Nov 16, 2018 at 04:39:20PM +, Stefan Hajnoczi wrote: > On Fri, Nov 16, 2018 at 4:21 PM Stefano Garzarella > wrote: > > I'm investigating the SeaBIOS booting time, to understand if we can reduce > > the boot time in some cases (e.g. legacy hardware is not needed). I think >

Re: [Qemu-devel] SeaBIOS booting time optimization

2018-11-16 Thread Stefan Hajnoczi
On Fri, Nov 16, 2018 at 4:21 PM Stefano Garzarella wrote: > I'm investigating the SeaBIOS booting time, to understand if we can reduce > the boot time in some cases (e.g. legacy hardware is not needed). I think > this > can be interesting also for NEMU developers. Questions for NEMU folks: qboot

[Qemu-devel] SeaBIOS booting time optimization

2018-11-16 Thread Stefano Garzarella
Hi, I'm investigating the SeaBIOS booting time, to understand if we can reduce the boot time in some cases (e.g. legacy hardware is not needed). I think this can be interesting also for NEMU developers. Following this thread ( https://mail.coreboot.org/pipermail/seabios/2015-July/009497.html), I'm