Re: [Qemu-devel] Windows Pipe

2017-03-01 Thread Jiahuan Zhang
I found the problem! The pipe server and client should be both ready, and then data transfer can start. The windows pipe implementation is well-done! Sorry for bothering... On 1 March 2017 at 16:24, Jiahuan Zhang wrote: > I think the reading failure in 2 is because there is no writing to the >

Re: [Qemu-devel] Windows Pipe

2017-03-01 Thread Jiahuan Zhang
I think the reading failure in 2 is because there is no writing to the pipe from the frontend (serial port). So i wonder if the windows pipe implementation is complete. I mean dual-way pipe. >From the codes, I sense not. If somebody knows please inform me. 🙏 Thanks a lot! On 1 March 2017 at 16:1

Re: [Qemu-devel] Windows Pipe

2017-03-01 Thread Jiahuan Zhang
What I have done is two things. 1. I create a NamedPipeClient.exe to open the pipe and write a string into it. QEMU indicates the string is recieved from the pipe. 2. I create another NamedPipeClient.exe to open the pipe and read the data in the pipe. In qemu, I run a test.bin as kernel with vers

Re: [Qemu-devel] Windows Pipe

2017-03-01 Thread Marc-André Lureau
Hi On Wed, Mar 1, 2017 at 6:42 PM Jiahuan Zhang wrote: > Hi, > > I agree with you about win_chr_poll(). But what I wonder is how to write > data into the pipe for the host to get. I see "writeFile()" in > "win_chr_write()", but have no idea how to use it. Or I have to write > something for this

Re: [Qemu-devel] Windows Pipe

2017-03-01 Thread Jiahuan Zhang
Hi, I agree with you about win_chr_poll(). But what I wonder is how to write data into the pipe for the host to get. I see "writeFile()" in "win_chr_write()", but have no idea how to use it. Or I have to write something for this writing. In this case, I don't know what the right buffer pointer for

Re: [Qemu-devel] Windows Pipe

2017-03-01 Thread Marc-André Lureau
Hi On Wed, Mar 1, 2017 at 5:16 PM Jiahuan Zhang wrote: > Dear QEMU developers, > > I want the host-guest communication for QEMU. I want to achieve > it via serial port redirection to a pipe. My host is windows and guest is > Linux. QEMU is in version 2.8.50 > > I looked into char-pipe.c and char

[Qemu-devel] Windows Pipe

2017-03-01 Thread Jiahuan Zhang
Dear QEMU developers, I want the host-guest communication for QEMU. I want to achieve it via serial port redirection to a pipe. My host is windows and guest is Linux. QEMU is in version 2.8.50 I looked into char-pipe.c and char-win.c, and find that the current QEMU only supports reading data on t