On Thu, Sep 19, 2013 at 05:43:58PM -0400, Jonathan Lebon wrote:
> > As a test why not try hacking virsh console so that it connects to your
> > virtio serial port, instead of a console. If we assume 'virsh console'
> > is bug-free, that would let you identify whether the flaw is in your host
> > co
On Thu, Sep 19, 2013 at 12:59:33PM -0400, Jonathan Lebon wrote:
> > poll() will be listening for i/o on the libvirt socket as well as
> > stdin, so it'll see incoming I/O from the guest.
>
> That's strange, that's not what I'm seeing when running it step-by-step. I see
> poll() hanging regardless
On Thu, Sep 19, 2013 at 11:59:45AM -0400, Jonathan Lebon wrote:
> I tried to dig a bit deeper in this. From my limited understanding,
> it seems like stream events are implemented as enabled/disabled timers.
> The issue is that if there's no data from the guest app pending, the
> timeout in virEven
> As a test why not try hacking virsh console so that it connects to your
> virtio serial port, instead of a console. If we assume 'virsh console'
> is bug-free, that would let you identify whether the flaw is in your host
> code, or the guest side.
Thanks for the pointer. Doing a few trivial chan
I tried to dig a bit deeper in this. From my limited understanding,
it seems like stream events are implemented as enabled/disabled timers.
The issue is that if there's no data from the guest app pending, the
timeout in virEventPollRunOnce will be calculated as -1. So then we
block on the poll() an
> poll() will be listening for i/o on the libvirt socket as well as
> stdin, so it'll see incoming I/O from the guest.
That's strange, that's not what I'm seeing when running it step-by-step. I see
poll() hanging regardless of guest events. There are indeed two fds in the
array (stdin and the othe
I am trying to write a simple app which connects a channel obtained
from virDomainOpenChannel() to stdin/stdout (based in part on the
snippet at [1]). However, it seems like the data received back from
the stream is delayed by one iteration. It would be hard to explain
this by simply showing the ou