]> xenbits.xensource.com Git - seabios.git/commit
qemu: avoid debug prints if debugcon is not enabled
authorStefano Garzarella <sgarzare@redhat.com>
Sun, 2 Dec 2018 13:10:13 +0000 (14:10 +0100)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 11 Dec 2018 03:03:30 +0000 (22:03 -0500)
commit75b42835134553c96f113e5014072c0caf99d092
treea22ca8b72057f3dc489c1653eca093c42304f498
parent628b2e6b0e390e26d59b3c5db07a4226175b6f8a
qemu: avoid debug prints if debugcon is not enabled

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.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/fw/paravirt.c
src/fw/paravirt.h
src/hw/serialio.c
src/hw/serialio.h