Re: [SeaBIOS] [PATCH v2] qemu: fast boot when linuxboot optionrom is used

2018-12-17 Thread Kevin O'Connor
On Mon, Dec 10, 2018 at 03:18:46PM +0100, Stefano Garzarella wrote: > On Wed, Dec 5, 2018 at 6:00 PM Kevin O'Connor wrote: > > On Fri, Nov 30, 2018 at 11:23:30AM +0100, Stefano Garzarella wrote: > > > On Thu, Nov 29, 2018 at 5:55 PM Kevin O'Connor wrote: > > > > --- a/src/output.c > > > > +++

Re: [SeaBIOS] [PATCH v2] qemu: fast boot when linuxboot optionrom is used

2018-12-10 Thread Stefano Garzarella
Hi Kevin, On Wed, Dec 5, 2018 at 6:00 PM Kevin O'Connor wrote: > > On Fri, Nov 30, 2018 at 11:23:30AM +0100, Stefano Garzarella wrote: > > On Thu, Nov 29, 2018 at 5:55 PM Kevin O'Connor wrote: > > > Interesting. I tracked down this printf delay - it's due to the > > > save/restore of cpu state

Re: [SeaBIOS] [PATCH v2] qemu: fast boot when linuxboot optionrom is used

2018-12-05 Thread Kevin O'Connor
On Fri, Nov 30, 2018 at 11:23:30AM +0100, Stefano Garzarella wrote: > On Thu, Nov 29, 2018 at 5:55 PM Kevin O'Connor wrote: > > Interesting. I tracked down this printf delay - it's due to the > > save/restore of cpu state when thunking to 16bit mode. (For every > > character displayed on the

Re: [SeaBIOS] [PATCH v2] qemu: fast boot when linuxboot optionrom is used

2018-12-05 Thread Stefano Garzarella
On Fri, Nov 30, 2018 at 8:36 PM Kevin O'Connor wrote: > > On Fri, Nov 30, 2018 at 03:27:21PM +0100, Stefano Garzarella wrote: > > On Fri, Nov 30, 2018 at 2:06 PM Gerd Hoffmann wrote: > > > > > Note: All these tests are done with CONFIG_DEBUG_LEVEL=0, using > > > > > CONFIG_DEBUG_LEVEL=1 the boot

Re: [SeaBIOS] [PATCH v2] qemu: fast boot when linuxboot optionrom is used

2018-11-30 Thread Kevin O'Connor
On Fri, Nov 30, 2018 at 03:27:21PM +0100, Stefano Garzarella wrote: > On Fri, Nov 30, 2018 at 2:06 PM Gerd Hoffmann wrote: > > > > Note: All these tests are done with CONFIG_DEBUG_LEVEL=0, using > > > > CONFIG_DEBUG_LEVEL=1 the boot time grows up to 24 ms, maybe we should > > > > put

Re: [SeaBIOS] [PATCH v2] qemu: fast boot when linuxboot optionrom is used

2018-11-30 Thread Stefano Garzarella
On Fri, Nov 30, 2018 at 2:06 PM Gerd Hoffmann wrote: > > Hi, > > > > Note: All these tests are done with CONFIG_DEBUG_LEVEL=0, using > > > CONFIG_DEBUG_LEVEL=1 the boot time grows up to 24 ms, maybe we should > > > put CONFIG_DEBUG_LEVEL=0 in the SeaBIOS configuration used in QEMU. > > > > I

Re: [SeaBIOS] [PATCH v2] qemu: fast boot when linuxboot optionrom is used

2018-11-30 Thread Gerd Hoffmann
Hi, > > Note: All these tests are done with CONFIG_DEBUG_LEVEL=0, using > > CONFIG_DEBUG_LEVEL=1 the boot time grows up to 24 ms, maybe we should > > put CONFIG_DEBUG_LEVEL=0 in the SeaBIOS configuration used in QEMU. > > I think the main seabios binary should have CONFIG_DEBUG_LEVEL=1 as it >

Re: [SeaBIOS] [PATCH v2] qemu: fast boot when linuxboot optionrom is used

2018-11-30 Thread Stefano Garzarella
On Thu, Nov 29, 2018 at 5:55 PM Kevin O'Connor wrote: > > On Thu, Nov 29, 2018 at 03:16:39PM +0100, Stefano Garzarella wrote: > > On Wed, Nov 28, 2018 at 3:38 PM Kevin O'Connor wrote: > > > It would be good to understand what the source of the delay is. It > > > might be possible to avoid the

Re: [SeaBIOS] [PATCH v2] qemu: fast boot when linuxboot optionrom is used

2018-11-29 Thread Kevin O'Connor
On Thu, Nov 29, 2018 at 03:16:39PM +0100, Stefano Garzarella wrote: > On Wed, Nov 28, 2018 at 3:38 PM Kevin O'Connor wrote: > > It would be good to understand what the source of the delay is. It > > might be possible to avoid the delay without adding a new config > > setting. For example, the

Re: [SeaBIOS] [PATCH v2] qemu: fast boot when linuxboot optionrom is used

2018-11-29 Thread Stefano Garzarella
On Wed, Nov 28, 2018 at 3:38 PM Kevin O'Connor wrote: > > On Wed, Nov 28, 2018 at 12:30:42PM +0100, Stefano Garzarella wrote: > > On Wed, Nov 28, 2018 at 3:12 AM Kevin O'Connor wrote: > > > On Mon, Nov 26, 2018 at 12:39:12PM +0100, Stefano Garzarella wrote: > > > > Speed up the boot phase when

Re: [SeaBIOS] [PATCH v2] qemu: fast boot when linuxboot optionrom is used

2018-11-28 Thread Kevin O'Connor
On Wed, Nov 28, 2018 at 12:30:42PM +0100, Stefano Garzarella wrote: > On Wed, Nov 28, 2018 at 3:12 AM Kevin O'Connor wrote: > > On Mon, Nov 26, 2018 at 12:39:12PM +0100, Stefano Garzarella wrote: > > > Speed up the boot phase when qemu uses "linuxboot" optionrom > > > (qemu -kernel) and the

Re: [SeaBIOS] [PATCH v2] qemu: fast boot when linuxboot optionrom is used

2018-11-28 Thread Stefano Garzarella
On Wed, Nov 28, 2018 at 3:12 AM Kevin O'Connor wrote: > > On Mon, Nov 26, 2018 at 12:39:12PM +0100, Stefano Garzarella wrote: > > Speed up the boot phase when qemu uses "linuxboot" optionrom > > (qemu -kernel) and the boot-menu is not required. > > Under these conditions we can skip the setup of

Re: [SeaBIOS] [PATCH v2] qemu: fast boot when linuxboot optionrom is used

2018-11-27 Thread Kevin O'Connor
On Mon, Nov 26, 2018 at 12:39:12PM +0100, Stefano Garzarella wrote: > Speed up the boot phase when qemu uses "linuxboot" optionrom > (qemu -kernel) and the boot-menu is not required. > Under these conditions we can skip the setup of devices and VGA, > because they will be initialized (if they are

[SeaBIOS] [PATCH v2] qemu: fast boot when linuxboot optionrom is used

2018-11-26 Thread Stefano Garzarella
Speed up the boot phase when qemu uses "linuxboot" optionrom (qemu -kernel) and the boot-menu is not required. Under these conditions we can skip the setup of devices and VGA, because they will be initialized (if they are required) during the Linux boot phase. Following the time measured between