Skip to contentSkip to conversation

also send guest console output to VGA console

PATCH New Jan Beulich 1 participant 1 message Jan 10, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 also send guest console output to VGA console

Without a serial console attached, guest output was invisible. Jan

xen/drivers/char/console.c renamed from home/jbeulich/src/xen/unstable/2006-01-05/xen/drivers/char/console.c +4 -1
diff -Npru /home/jbeulich/src/xen/unstable/2006-01-05/xen/drivers/char/console.c 2006-01-05/xen/drivers/char/console.c
@@ -311,7 +311,7 @@ static void serial_rx(char c, struct cpu
 
 long guest_console_write(char *buffer, int count)
 {
-    char kbuf[128];
+    char kbuf[128], *kptr;
     int kcount;
 
     while ( count > 0 )
@@ -334,6 +334,9 @@ long guest_console_write(char *buffer, i
 
         serial_puts(sercon_handle, kbuf);
 
+        for (kptr = kbuf; *kptr; ++kptr)
+            putchar_console(*kptr);
+
         buffer += kcount;
         count  -= kcount;
     }

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel