qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] debugcon: support for debugging consoles (e.g.


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH] debugcon: support for debugging consoles (e.g. Bochs port 0xe9)
Date: Wed, 25 Nov 2009 13:46:11 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4

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

[Prev in Thread] Current Thread [Next in Thread]