mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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>
This commit is contained in:
1 parent
361fad2231
commit
86bf018541
1 file changed
+4
-1
@@ -311,7 +311,7 @@ static void serial_rx(char c, struct cpu_user_regs *regs)
|
||||
|
||||
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, int count)
|
||||
|
||||
serial_puts(sercon_handle, kbuf);
|
||||
|
||||
for ( kptr = kbuf; *kptr != '\0'; kptr++ )
|
||||
putchar_console(*kptr);
|
||||
|
||||
buffer += kcount;
|
||||
count -= kcount;
|
||||
}
|
||||
|
||||