On 11/25/09 00:05, H. Peter Anvin wrote:
On 11/23/2009 12:11 PM, H. Peter Anvin wrote:
On 11/23/2009 02:52 AM, Gerd Hoffmann wrote:

All not needed.  Simply registering as qdev device is enougth.  You can
then add a debug port like this, without adding new cmd line options:

    -chardev vc,id=debug -device isa-debugcon,chardev=debug

Adding a second one on a non-default port works this way:

    -chardev vc,id=d2 -device isa-debugcon,iobase=0xea,chardev=d2


Sure, but is that user friendly?


Question still stands... if this is The Way It Is Done, then I'll do it
that way, but I will personally never be able to remember to type the
above stuff without looking it up every time, whereas "-debugcon stdio"
is something I can remember in my sleep.

You can stick it into a config file[1] like this:

[chardev "debuglog"]
  backend = "file"
  path = "/path/to/debug.log"

[device]
  driver = "isa-debugcon"
  chardev = "debuglog"

Then use "qemu -readconfig $file".

cheers,
  Gerd

[1] Well, almost, fix to make this actually work went to the list today.


Reply via email to