WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] serial port use in domain > 0

To: <ncmike@xxxxxxxxxx>, "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] serial port use in domain > 0
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Fri, 21 Jan 2005 22:12:37 -0000
Cc: "Ian Pratt" <Ian.Pratt@xxxxxxxxxxxx>
Delivery-date: Fri, 21 Jan 2005 22:15:08 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Thread-index: AcUAAht/ePIxQ9E4RxSBox94rx/UegAAD1hg
Thread-topic: [Xen-devel] serial port use in domain > 0
> Is there a way in xen using the existing tools to export one 
> of the com
> ports to a domain > 0? e.g., if I wanted kdb running in domain 1 to be
> able to use ttyS1. 

If you compile the appropriate uart into the kernel and start the kernel
with hardware privilege it should work. It's pretty nasty though, as the
kernel will also find the first uart, and try to initialise that under
Xen's feet. This may fail because the interrupt is in use. It may bail,
or it may continue to find the second uart. [We could fix some of this
ugliness if the control tools allowed individual ioport ranges to be
specified.]

However, wouldn't it be nicer to connect kdb to a virtualy tty rather
than a real serial port? It would be pretty easy to modify the console
driver so that it supported multiple console streams. I can't imagine it
would be too hard to modify kdb to drive one of the virtual consoles.

Alternatively, rather than using kdb you could use Kip Macy's patch that
implements a gdb stub tcp server in domain zero that uses dom0 ops to
stop/start/step/peek/poke other domains. Personally, I think this will
work better than kdb. 

[Kip -- please can you resend the patch]

Thanks,
Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>