qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] bugreport -serial pipe:named_pipe_filename
@ 2006-04-18 21:50 NyOS
  0 siblings, 0 replies; only message in thread
From: NyOS @ 2006-04-18 21:50 UTC (permalink / raw)
  To: qemu-devel

Hi!

During developing a driver for a home-made serial hardware, I've noticed  
that the 0 characters couldn't received in guest OS.

The HW is not ready yet, so I've bulit a test environment using Debian  
GNU/Linux on Prescott (x86) as a host machine, and win98 as a guest. Qemu  
version is 0.8 release, (not the CVS one).

A bash script started the env.:

export QEMU_AUDIO_DRV=alsa
nice -n 19 qemu -m 256 -soundhw sb16 -hda $HOME/image/qemu-win98.img  
-localtime -net nic -net user -redir tcp:58000::58000 -redir  
tcp:59000::59000 -serial pipe:/dev/qemuttyS0

/dev/qemuttyS* files are pipes, with read-write permission to the current  
user (tried other pipes also, in /home/nyos/...)

I've used 'cat' command to pipe test data to the named pipe (on the host),  
and the program (in guest) couldn't receive 0 bytes (0x00 hex code), but  
it could any other one.
First I've thought it was my fault, but Hyperterm did the same.
Also tried sending through the same named pipe the same content, and it  
was received correctly.

I've been using qemu for approx. half a year (0.7.2 earlier), and the same  
image for several weeks, and it works, so I'm quite sure the problem is  
somewhere in qemu code.
I'm not so familiar with its source, and after looking at serial.c, I  
don't have an idea where the problem could be (maybe some string  
manipulation because of '\0').

Could You have any idea what the problem is? (Or where should I look for  
it.)

Nyos

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

only message in thread, other threads:[~2006-04-18 21:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-18 21:50 [Qemu-devel] bugreport -serial pipe:named_pipe_filename NyOS

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).