Debian Bug report logs - #740464
qemu-kvm: support for seabios option "screen-and-debug"

version graph

Package: qemu-kvm; Maintainer for qemu-kvm is Debian QEMU Team <pkg-qemu-devel@lists.alioth.debian.org>; Source for qemu-kvm is src:qemu (PTS, buildd, popcon).

Reported by: Matt Taggart <taggart@debian.org>

Date: Sat, 1 Mar 2014 22:30:01 UTC

Severity: wishlist

Found in version qemu/1.7.0+dfsg-3

Forwarded to http://news.gmane.org/find-root.php?group=gmane.comp.emulators.qemu&article=258935

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Michael Tokarev <mjt@tls.msk.ru>:
Bug#740464; Package qemu-kvm. (Sat, 01 Mar 2014 22:30:06 GMT) (full text, mbox, link).


Acknowledgement sent to Matt Taggart <taggart@debian.org>:
New Bug report received and forwarded. Copy sent to Michael Tokarev <mjt@tls.msk.ru>. (Sat, 01 Mar 2014 22:30:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Matt Taggart <taggart@debian.org>
To: submit@bugs.debian.org
Subject: qemu-kvm: support for seabios option "screen-and-debug"
Date: Sat, 01 Mar 2014 14:27:35 -0800
Package: qemu-kvm
Version: 1.7.0+dfsg-3
Severity: wishlist

I am using seabios with sgabios in kvm (in order to get early BIOS messages 
on serial), and during the bootloader stage I am seeing all characters 
printed twice. I found this page

  http://www.coreboot.org/SeaBIOS#Adding_sgabios_support

which explains the problem and that you can fix it by disabling the 
"screen-and-debug" config option. It also references this list of other 
config options

  http://www.coreboot.org/SeaBIOS#Other_Configuration_items

Looking at the qemu-kvm source, I see that in hw/nvram/fw_cfg.c and 
qemu-options.hx there is support for changing a few of these, things like 
show-boot-menu, boot-menu-wait, splashfile.

Could you please add support for enabling the "screen-and-debug" option?

Also interesting from that list might be
  boot-menu-message
  boot-menu-key
  boot-fail-wait

i(the others are either obscure or I don't know what they are for, so I
don't know if they would be useful).

Thanks,

-- 
Matt Taggart
taggart@debian.org





Information forwarded to debian-bugs-dist@lists.debian.org, Michael Tokarev <mjt@tls.msk.ru>:
Bug#740464; Package qemu-kvm. (Sun, 02 Mar 2014 01:09:08 GMT) (full text, mbox, link).


Acknowledgement sent to Matt Taggart <taggart@debian.org>:
Extra info received and forwarded to list. Copy sent to Michael Tokarev <mjt@tls.msk.ru>. (Sun, 02 Mar 2014 01:09:08 GMT) (full text, mbox, link).


Message #10 received at 740464@bugs.debian.org (full text, mbox, reply):

From: Matt Taggart <taggart@debian.org>
To: 740464@bugs.debian.org
Subject: qemu-kvm: more screen-and-debug info
Date: Sat, 01 Mar 2014 16:59:41 -0800
Here is some more info on the double character printing problem in #740464

1) seabios default
In the Debian seabios source (version 1.7.4-4), if you look at line 437 of 
src/optionroms.c

  ScreenAndDebug = romfile_loadint("etc/screen-and-debug", 1);

it's defaulting to having the debug printing enabled.
Upstream of the same file (but line 435) is the same,

http://review.coreboot.org/gitweb?p=seabios.git;a=blob;f=src/optionroms.c;h=
93d9d2fe6507482b3ba0b6782a13887fb8a0fdf7;hb=HEAD#l435

2) Fedora
I heard a report that using sgabios on Fedora/RHEL does not have this 
double priinting problem. I wasn't able to easily determine if they have 
patches to change this behavior

The Fedora qemu source doesn't appear change anything related

  http://pkgs.fedoraproject.org/cgit/qemu.git

The Fedora seabios doesn't appear to change anything related

  http://pkgs.fedoraproject.org/cgit/seabios.git

It's possible they are doing something like setting a debug level 
differently that results in differences, or I missed something, or they are 
changing it elsewhere. First step would be testing to confirm they don't 
have the problem.

3) I don't know if this is relevant, but in the upstream sgabios design 
document, line 240

  http://code.google.com/p/sgabios/source/browse/trunk/design.txt#240

it says

  "When lilo 22.6 is detected, SGABIOS now knows how to disable
  lilo's serial output in favor of its own. This avoids having
  double character output from both serial and VGABIOS interleaved."

I am seeing the problem with pxelinux 4.06.

4) Potential solutions
I don't know what the purpose of screen-and-debug is, it might be that
it could be disabled with no ill effects. So here are some potential
solutions

* Change seabios screen-and-debug default to 0 in the seabios package
* Have the seabios package produce an alternate bios.rom with
   screen-and-debug disabled, then kvm could use it with "-bios"
* Add a -boot suboption for screen-and-debug to kvm and have it default
   to enabled
* Add a -boot suboption for screen-and-debug to kvm and have it default
   to disabled
* Add hacks to sgabios to have it detect and work around bootloaders
   that have the problem.
* Come up with a more generic sgabios fix.
* Something else

Feel free to reassign this bug to seabios, sgabios, etc or forward 
elsewhere depending on what makes sense.

Thanks,

-- 
Matt Taggart
taggart@debian.org





Information forwarded to debian-bugs-dist@lists.debian.org, Michael Tokarev <mjt@tls.msk.ru>:
Bug#740464; Package qemu-kvm. (Sun, 02 Mar 2014 06:00:14 GMT) (full text, mbox, link).


Acknowledgement sent to 740464@bugs.debian.org, qemu-devel <qemu-devel@nongnu.org>:
Extra info received and forwarded to list. Copy sent to Michael Tokarev <mjt@tls.msk.ru>. (Sun, 02 Mar 2014 06:00:14 GMT) (full text, mbox, link).


Message #15 received at 740464@bugs.debian.org (full text, mbox, reply):

From: Michael Tokarev <mjt@tls.msk.ru>
To: qemu-devel <qemu-devel@nongnu.org>
Cc: Matt Taggart <taggart@debian.org>, 740464@bugs.debian.org
Subject: Fwd: Bug#740464: qemu-kvm: support for seabios option "screen-and-debug"
Date: Sun, 02 Mar 2014 09:58:22 +0400
I'm forwarding this to upstream, such enhancements, in my opinion,
should not be done inside a single distribution, and since I don't
use (and don't even know how to use) the mentioned features I can't
further comment on this, and don't really want to become a broken
phone.

Thank you for the good analisys (in initial email and in a folllowup
at http://bugs.debian.org/740464 ).

BTW, this is not qemu-kvm, this is qemu.  Qemu-kvm has been merged
into qemu since version 1.3.

Thanks,

/mjt

------- Original message --------
Subject: Bug#740464: qemu-kvm: support for seabios option "screen-and-debug"
Date: Sat, 01 Mar 2014 14:27:35 -0800
From: Matt Taggart <taggart@debian.org>

Package: qemu-kvm
Version: 1.7.0+dfsg-3
Severity: wishlist

I am using seabios with sgabios in kvm (in order to get early BIOS messages
on serial), and during the bootloader stage I am seeing all characters
printed twice. I found this page

  http://www.coreboot.org/SeaBIOS#Adding_sgabios_support

which explains the problem and that you can fix it by disabling the
"screen-and-debug" config option. It also references this list of other
config options

  http://www.coreboot.org/SeaBIOS#Other_Configuration_items

Looking at the qemu-kvm source, I see that in hw/nvram/fw_cfg.c and
qemu-options.hx there is support for changing a few of these, things like
show-boot-menu, boot-menu-wait, splashfile.

Could you please add support for enabling the "screen-and-debug" option?

Also interesting from that list might be
  boot-menu-message
  boot-menu-key
  boot-fail-wait

i(the others are either obscure or I don't know what they are for, so I
don't know if they would be useful).

Thanks,

-- 
Matt Taggart
taggart@debian.org





Set Bug forwarded-to-address to 'http://news.gmane.org/find-root.php?group=gmane.comp.emulators.qemu&article=258935'. Request was from <mjt@tls.msk.ru> to control@bugs.debian.org. (Thu, 17 Apr 2014 14:21:08 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Nov 24 21:36:39 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.