From: "Jan Beulich" Subject: [PATCH] also send guest console output to VGA console Date: Tue, 10 Jan 2006 15:10:56 +0100 Message-ID: <43C3CE80.76F0.0078.0@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part486AC560.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part486AC560.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Without a serial console attached, guest output was invisible. Jan --=__Part486AC560.0__= Content-Type: text/plain; name="xen-guest-console-write.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="xen-guest-console-write.patch" diff -Npru /home/jbeulich/src/xen/unstable/2006-01-05/xen/drivers/char/console.c 2006-01-05/xen/drivers/char/console.c --- /home/jbeulich/src/xen/unstable/2006-01-05/xen/drivers/char/console.c 2005-11-17 15:51:05.000000000 +0100 +++ 2006-01-05/xen/drivers/char/console.c 2006-01-10 13:34:58.000000000 +0100 @@ -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; } --=__Part486AC560.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part486AC560.0__=--