All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] update stubdom config example
@ 2009-06-16 15:46 Stefano Stabellini
  2009-06-16 15:56 ` Samuel Thibault
  0 siblings, 1 reply; 3+ messages in thread
From: Stefano Stabellini @ 2009-06-16 15:46 UTC (permalink / raw)
  To: xen-devel

Hi all,
this patch updates the stubdom config example to reflect that the serial
option can now be used.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>

---

diff -r 81ca5d5b2ad3 tools/examples/xmexample.hvm-stubdom
--- a/tools/examples/xmexample.hvm-stubdom	Tue Jun 16 13:27:35 2009 +0100
+++ b/tools/examples/xmexample.hvm-stubdom	Tue Jun 16 13:32:07 2009 +0100
@@ -178,9 +178,11 @@
 #-----------------------------------------------------------------------------
 #   serial port re-direct to pty deivce, /dev/pts/n 
 #   then xm console or minicom can connect
-# 
-# STUBDOM: always disable as the stub domain doesn't have access to dom0's
-# ptys
+#
+#   In the stubdoms case this option adds a secondary console to the
+#   stubdom because there is always one for logging.
+#   To connect to the guest serial you can use "xm console -n 1"
+#   followed by the domain name of the stubdom.
 #serial='pty'

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] update stubdom config example
  2009-06-16 15:46 [PATCH] update stubdom config example Stefano Stabellini
@ 2009-06-16 15:56 ` Samuel Thibault
  2009-06-16 16:09   ` Stefano Stabellini
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Thibault @ 2009-06-16 15:56 UTC (permalink / raw)
  To: Stefano Stabellini; +Cc: xen-devel

Stefano Stabellini, le Tue 16 Jun 2009 16:46:17 +0100, a écrit :
> this patch updates the stubdom config example to reflect that the serial
> option can now be used.

Ok, so now I see what your previous patch is for :) I still think
openpty() shouldn't be used, as a standard function with the same name
but different prototype exists, that would lead us to troubles. I would
rather see it as open("/dev/ptmx") and/or posix_openpt(), which actually
does the same, but can be interfaced in a standard way. And then we
could even implement pts_name() to provide the console frontend path.

Samuel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] update stubdom config example
  2009-06-16 15:56 ` Samuel Thibault
@ 2009-06-16 16:09   ` Stefano Stabellini
  0 siblings, 0 replies; 3+ messages in thread
From: Stefano Stabellini @ 2009-06-16 16:09 UTC (permalink / raw)
  To: Samuel Thibault, Stefano Stabellini, xen-devel

Samuel Thibault wrote:

> Stefano Stabellini, le Tue 16 Jun 2009 16:46:17 +0100, a écrit :
>> this patch updates the stubdom config example to reflect that the serial
>> option can now be used.
> 
> Ok, so now I see what your previous patch is for :) I still think
> openpty() shouldn't be used, as a standard function with the same name
> but different prototype exists, that would lead us to troubles. I would
> rather see it as open("/dev/ptmx") and/or posix_openpt(), which actually
> does the same, but can be interfaced in a standard way. And then we
> could even implement pts_name() to provide the console frontend path.
> 

I wasn't aware of posix_openpt, I think that is the best choice.
I'll resend the patch and also update the qemu patch that uses it.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-16 16:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-16 15:46 [PATCH] update stubdom config example Stefano Stabellini
2009-06-16 15:56 ` Samuel Thibault
2009-06-16 16:09   ` Stefano Stabellini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.