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

[Xen-changelog] Send guest output on all xen-attached console devices



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 50d46a775ad04e0723a973dea573917567fd2961
# Parent  3904e3c336111c6c9f5f007fb2d3c8bb58beec6d
Send guest output on all xen-attached console devices
(i.e., on vga console as well as serial console, if dom0
didn't take over the vga console).

Signed-off-by: Jan Beulich <JBeulich@xxxxxxxxxx>

diff -r 3904e3c33611 -r 50d46a775ad0 xen/drivers/char/console.c
--- a/xen/drivers/char/console.c        Tue Jan 10 14:53:39 2006
+++ b/xen/drivers/char/console.c        Tue Jan 10 15:00:37 2006
@@ -311,7 +311,7 @@
 
 long guest_console_write(char *buffer, int count)
 {
-    char kbuf[128];
+    char kbuf[128], *kptr;
     int kcount;
 
     while ( count > 0 )
@@ -333,6 +333,9 @@
         kbuf[kcount] = '\0';
 
         serial_puts(sercon_handle, kbuf);
+
+        for ( kptr = kbuf; *kptr != '\0'; kptr++ )
+            putchar_console(*kptr);
 
         buffer += kcount;
         count  -= kcount;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.