ia64/xen-unstable

changeset 8546:50d46a775ad0

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@novell.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Jan 10 16:00:37 2006 +0100 (2006-01-10)
parents 3904e3c33611
children 991ccc24bf2e
files xen/drivers/char/console.c
line diff
     1.1 --- a/xen/drivers/char/console.c	Tue Jan 10 15:53:39 2006 +0100
     1.2 +++ b/xen/drivers/char/console.c	Tue Jan 10 16:00:37 2006 +0100
     1.3 @@ -311,7 +311,7 @@ static void serial_rx(char c, struct cpu
     1.4  
     1.5  long guest_console_write(char *buffer, int count)
     1.6  {
     1.7 -    char kbuf[128];
     1.8 +    char kbuf[128], *kptr;
     1.9      int kcount;
    1.10  
    1.11      while ( count > 0 )
    1.12 @@ -334,6 +334,9 @@ long guest_console_write(char *buffer, i
    1.13  
    1.14          serial_puts(sercon_handle, kbuf);
    1.15  
    1.16 +        for ( kptr = kbuf; *kptr != '\0'; kptr++ )
    1.17 +            putchar_console(*kptr);
    1.18 +
    1.19          buffer += kcount;
    1.20          count  -= kcount;
    1.21      }