Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9qi1-0002CJ-20 for qemu-devel@nongnu.org; Tue, 21 Sep 2004 15:53:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9qhz-0002AH-Bd for qemu-devel@nongnu.org; Tue, 21 Sep 2004 15:53:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9qhz-0002AE-9V for qemu-devel@nongnu.org; Tue, 21 Sep 2004 15:53:51 -0400 Received: from [151.189.21.45] (helo=mail-in-01.arcor-online.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C9qba-00008S-Eu for qemu-devel@nongnu.org; Tue, 21 Sep 2004 15:47:14 -0400 Received: from hatatitla.NotaMusica.com (dsl-084-057-038-115.arcor-ip.net [84.57.38.115]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id DD5BE30FAC for ; Tue, 21 Sep 2004 21:47:11 +0200 (CEST) Received: from hatatitla.NotaMusica.com (jmartin@localhost [127.0.0.1]) by hatatitla.NotaMusica.com (8.12.3/8.12.3/Debian-6.6) with ESMTP id i8LJlBhW004834 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 21 Sep 2004 21:47:11 +0200 Received: from localhost (jmartin@localhost) by hatatitla.NotaMusica.com (8.12.3/8.12.3/Debian-6.6) with ESMTP id i8LJlBuf004829 for ; Tue, 21 Sep 2004 21:47:11 +0200 Date: Tue, 21 Sep 2004 21:47:11 +0200 (CEST) From: Johannes Martin Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] qemu -serial pty bug and serial/slirp considerations Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, when I run qemu -serial -pty I get output like: char device redirected to @=A1<@ T<@=F0y.@u This is because vl.c calls openpty() as follows: if (openpty(&master_fd, &slave_fd, slave_name, NULL, NULL) < 0) while in slirp/misc.c openpty() expects only two parameters (current CVS)= . Well, by looking in /proc//fd I can find out which pty qemu opened s= o there's no real harm done. I just successfully attached a pppd to the qemu pty and finally got a stable network connection working in my OS/2 Warp 4 guest. I should have thought about this before rather than trying to get NE2000 and PCNET to work in OS/2. Thinking on this line, it would be really neat to be able to attach the qemu-internal slirp to the virtual com port so any guest could access SLIP/ppp through the serial port (ppp needs root permissions and I haven'= t figured out how to run slirp proper on a pty - any hints?). Johannes