From: Manfred Haertel Subject: [PATCH] xen: allow 8bit input in Xen serial console Date: Tue, 28 Jul 2015 19:02:38 +0200 Message-ID: <55B7B5AE.5050801@rz-online.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZK8HQ-00028M-HM for xen-devel@lists.xenproject.org; Tue, 28 Jul 2015 17:03:04 +0000 Received: from donald.local (212-7-188-28.ktk-ip.de [212.7.188.28]) by mout01.rz-online.net (8.14.0/8.12.10) with ESMTP id t6SH32OC029151 for ; Tue, 28 Jul 2015 19:03:02 +0200 Received: from [192.168.1.13] (work.donald.local [192.168.1.13]) by donald.local (Postfix) with ESMTP id 924A1A2CAA for ; Tue, 28 Jul 2015 19:02:38 +0200 (CEST) List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel List-Id: xen-devel@lists.xenproject.org The Xen serial console cuts off the most significant bit from input characters, so you can't use e.g. German umlauts when logging in to the DOM0 Linux system from the serial console. The following patch fixes that problem. --- xen/drivers/char/serial.c.orig 2015-07-28 18:44:49.443889719 +0200 +++ xen/drivers/char/serial.c 2015-07-28 18:47:10.593728590 +0200 @@ -66,7 +66,7 @@ spin_unlock_irqrestore(&port->rx_lock, flags); if ( fn != NULL ) - (*fn)(c & 0x7f, regs); + (*fn)(c, regs); } void serial_tx_interrupt(struct serial_port *port, struct cpu_user_regs *regs) @@ -297,7 +297,11 @@ } while ( ((handle & SERHND_LO) && (c & 0x80)) || ((handle & SERHND_HI) && !(c & 0x80)) ); - return c & 0x7f; + if (handle & SERHND_HI) + { + c &= 0x7f; + } + return c; } int __init serial_parse_handle(char *conf)