[SeaBIOS] [PATCH] qemu: avoid debug prints if debugcon is not enabled
Kevin O'Connor
kevin at koconnor.net
Mon Dec 17 16:27:18 CET 2018
On Tue, Dec 11, 2018 at 10:10:33AM +0100, Stefano Garzarella wrote:
> On Tue, Dec 11, 2018 at 4:08 AM Kevin O'Connor <kevin at koconnor.net> wrote:
> >
> > On Sun, Dec 02, 2018 at 02:10:13PM +0100, Stefano Garzarella wrote:
> > > In order to speed up the boot phase, we can check the QEMU
> > > debugcon device, and disable the writes if it is not recognized.
> > >
> > > This patch allow us to save around 10 msec (time measured
> > > between SeaBIOS entry point and "linuxboot" entry point)
> > > when CONFIG_DEBUG_LEVEL=1 and debugcon is not enabled.
> >
> > Thanks. In order to properly track reboots, the HaveRunPost variable
> > must always be the first global variable to be modified. So, the qemu
> > debug init must come later in the boot. How about the patch below
> > instead?
>
> Thanks for the explanation! It looks good!
Thanks. I committed this change.
-Kevin
More information about the SeaBIOS
mailing list