[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Guest application reading from pl011 without device dri
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] Guest application reading from pl011 without device driver |
Date: |
Thu, 23 Mar 2017 18:31:41 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 23/03/2017 18:28, Jiahuan Zhang wrote:
> Hi, the method doesn't work for pipe. It still causes the same issue.
> The only difference is that the first byte in the UART fifo can be read
> by the guest app.
> So now my guest app can immediately read 17bytes when the host is
> sending data continuously,
> then guest app is unable to read.
>
> Now there is a solution-to-be. Set the qemu pipe chardev to wait for 1
> millisecond before do a next ReadFile(),
> then the pl011 can deliver the complete large data by the 16-byte fifo
> continuously to the guest app.
>
> Is it rational? Or is this host -CPU-dependent?
Post the patch, maybe you have a bug.
Paolo
- Re: [Qemu-devel] Guest application reading from pl011 without device driver, (continued)
- Re: [Qemu-devel] Guest application reading from pl011 without device driver, Peter Maydell, 2017/03/21
- Re: [Qemu-devel] Guest application reading from pl011 without device driver, Jiahuan Zhang, 2017/03/21
- Re: [Qemu-devel] Guest application reading from pl011 without device driver, Paolo Bonzini, 2017/03/22
- Re: [Qemu-devel] Guest application reading from pl011 without device driver, Jiahuan Zhang, 2017/03/22
- Re: [Qemu-devel] Guest application reading from pl011 without device driver, Paolo Bonzini, 2017/03/22
- Re: [Qemu-devel] Guest application reading from pl011 without device driver, Jiahuan Zhang, 2017/03/22
- Re: [Qemu-devel] Guest application reading from pl011 without device driver, Paolo Bonzini, 2017/03/22
- Re: [Qemu-devel] Guest application reading from pl011 without device driver, Jiahuan Zhang, 2017/03/23
- Re: [Qemu-devel] Guest application reading from pl011 without device driver, Paolo Bonzini, 2017/03/23
- Re: [Qemu-devel] Guest application reading from pl011 without device driver, Jiahuan Zhang, 2017/03/23
- Re: [Qemu-devel] Guest application reading from pl011 without device driver,
Paolo Bonzini <=
- Re: [Qemu-devel] Guest application reading from pl011 without device driver, Jiahuan Zhang, 2017/03/24
- Re: [Qemu-devel] Guest application reading from pl011 without device driver, Jiahuan Zhang, 2017/03/24
- Re: [Qemu-devel] Guest application reading from pl011 without device driver, Peter Maydell, 2017/03/22
- Re: [Qemu-devel] Guest application reading from pl011 without device driver, Paolo Bonzini, 2017/03/22