From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDHGJ-0003ME-Q7 for qemu-devel@nongnu.org; Wed, 25 Nov 2009 07:46:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDHGF-0003KV-R8 for qemu-devel@nongnu.org; Wed, 25 Nov 2009 07:46:23 -0500 Received: from [199.232.76.173] (port=54306 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDHGF-0003KP-IM for qemu-devel@nongnu.org; Wed, 25 Nov 2009 07:46:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:9368) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDHGD-0008EJ-C8 for qemu-devel@nongnu.org; Wed, 25 Nov 2009 07:46:18 -0500 Message-ID: <4B0D2713.60001@redhat.com> Date: Wed, 25 Nov 2009 13:46:11 +0100 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] debugcon: support for debugging consoles (e.g. Bochs port 0xe9) References: <1258752795-15434-1-git-send-email-hpa@linux.intel.com> <4B0A6973.4010303@redhat.com> <4B0AEC8A.1020905@zytor.com> <4B0C66B0.5090805@zytor.com> In-Reply-To: <4B0C66B0.5090805@zytor.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "H. Peter Anvin" Cc: "H. Peter Anvin" , qemu-devel@nongnu.org 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.