NetBSD-Bugs archive

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

Re: port-xen/40675: Xen 3.3: guest serial console not functional



Nope, that doesn't fix it.

With help from uebayasi, I found the issue yesterday
and the fix is upstream now:

http://xenbits.xensource.com/staging/xen-3.3-testing.hg?rev/39c14827be55

xenconsoled: make guest console visible on NetBSD dom0

After openpty(), slave_fd must be closed or guest console output
goes to the slave while select() in xen console client listens on
the master.

--- a/tools/console/daemon/io.c Fri Feb 20 11:44:27 2009 +0000
+++ b/tools/console/daemon/io.c Fri Feb 20 11:44:58 2009 +0000
@@ -420,6 +420,14 @@ static int domain_create_tty(struct doma
                goto out;
        }
 
+       /* Close the slave fd or the guest console output disappears,
+        * otherwise.
+        */
+       if (dom->slave_fd != -1) {
+               close(dom->slave_fd);
+               dom->slave_fd = -1;
+       }
+
        if (dom->use_consolepath) {
                success = asprintf(&path, "%s/limit", dom->conspath) !=
                        -1;


-- 
Greetings,

Christoph




Home | Main Index | Thread Index | Old Index