qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] qemu -serial pty bug and serial/slirp considerations
@ 2004-09-21 19:47 Johannes Martin
  0 siblings, 0 replies; only message in thread
From: Johannes Martin @ 2004-09-21 19:47 UTC (permalink / raw)
  To: qemu-devel

Hi,

when I run qemu -serial -pty I get output like:
	char device redirected to @¡<@ T<@ðy.@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/<pid>/fd I can find out which pty qemu opened so
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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-21 19:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-21 19:47 [Qemu-devel] qemu -serial pty bug and serial/slirp considerations Johannes Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).