qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Guest application reading from pl011 without device driver
@ 2017-03-21 16:32 Jiahuan Zhang
  2017-03-21 16:39 ` Peter Maydell
  0 siblings, 1 reply; 26+ messages in thread
From: Jiahuan Zhang @ 2017-03-21 16:32 UTC (permalink / raw)
  To: qemu-devel

Dear QEMU developers,

I am trying to read streaming data from a serial device by pointing to the
data register. The input data for the serial device is a string, whose
length is larger than the receiving fifo (I am using pl011). Ths input is
done by ReadFile() since my host is Win 7;

Now the guest application is able to receive the data, if the data size is
smaller than the fifo size, 16 bytes. But the communication fails when
receiving larger data.

I found the serial device is always trying to receive all the data when
ReadFile() is running, then start reading. Even if the fifo is full, the
_can_receive function still keeps polling if the data is larger than 16
bytes.

I try to write the interrupt in the guest application to force the serial
device to start reading right after the fifo is not empty. However, my
programming is too poor to work.

Am I on the right way to figure it out?
Looking forwards to your suggestion.

Best,
Huan

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2017-05-01 12:06 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-21 16:32 [Qemu-devel] Guest application reading from pl011 without device driver Jiahuan Zhang
2017-03-21 16:39 ` Peter Maydell
2017-03-21 16:47   ` Jiahuan Zhang
2017-03-21 16:50     ` Peter Maydell
2017-03-21 16:59       ` Jiahuan Zhang
2017-03-21 17:10         ` Jiahuan Zhang
2017-03-21 17:16         ` Peter Maydell
2017-03-21 17:48           ` Jiahuan Zhang
2017-03-21 17:55             ` Peter Maydell
     [not found]               ` <CAJy91CZ4Ed-HGHLkzEc1dqQbo32d-eTE1S1ovO_ZwkDdTpkQXQ@mail.gmail.com>
     [not found]                 ` <CAJy91CaCV40FgSP55qWZeZgkQ=2+E8Cr7xdbu9pn5HLEo+6JJQ@mail.gmail.com>
2017-03-21 18:11                   ` Jiahuan Zhang
2017-03-21 18:28                     ` Peter Maydell
2017-03-21 18:33                       ` Jiahuan Zhang
2017-03-22  8:40                       ` Paolo Bonzini
2017-03-22  8:48                         ` Jiahuan Zhang
2017-03-22  9:37                           ` Paolo Bonzini
2017-03-22 10:28                             ` Jiahuan Zhang
2017-03-22 11:27                               ` Paolo Bonzini
2017-03-23 10:12                                 ` Jiahuan Zhang
2017-03-23 10:35                                   ` Paolo Bonzini
2017-03-23 17:28                                     ` Jiahuan Zhang
2017-03-23 17:31                                       ` Paolo Bonzini
2017-03-24  7:24                                         ` Jiahuan Zhang
2017-03-24 10:00                                           ` Jiahuan Zhang
2017-05-01 12:06                                             ` Jiahuan Zhang
2017-03-22 11:07                         ` Peter Maydell
2017-03-22 11:33                           ` Paolo Bonzini

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