WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-3.3-testing] ioemu: Fix serial console for HVM gues

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.3-testing] ioemu: Fix serial console for HVM guests
From: "Xen patchbot-3.3-testing" <patchbot-3.3-testing@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 26 Oct 2009 06:40:49 -0700
Delivery-date: Mon, 26 Oct 2009 06:41:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1256564211 0
# Node ID 98fe9e75d24b886b795b7ee39c3b2935d881604f
# Parent  f1fb228b43acf7149c1791197266cf16a8647ae7
ioemu: Fix serial console for HVM guests

Manpage states: "The cfmakeraw function sets the flags stored in the
termios structure (initialized by tcgetattr) to a state ... giving a
'raw I/O path'.

From: Manuel Bouyer <bouyer@xxxxxxxxxx>
Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---
 tools/ioemu/vl.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -r f1fb228b43ac -r 98fe9e75d24b tools/ioemu/vl.c
--- a/tools/ioemu/vl.c  Mon Aug 31 09:45:27 2009 +0100
+++ b/tools/ioemu/vl.c  Mon Oct 26 13:36:51 2009 +0000
@@ -1914,8 +1914,11 @@ static CharDriverState *qemu_chr_open_pt
     }
     
     /* Set raw attributes on the pty. */
+    if (tcgetattr(master_fd, &tty) < 0)
+        perror("tcgetattr failed");
     cfmakeraw(&tty);
-    tcsetattr(slave_fd, TCSAFLUSH, &tty);
+    if (tcsetattr(slave_fd, TCSAFLUSH, &tty) < 0)
+        perror("tcsetattr failed");
 
     fprintf(stderr, "char device redirected to %s\n", ptsname(master_fd));
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.3-testing] ioemu: Fix serial console for HVM guests, Xen patchbot-3.3-testing <=