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