qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/3] Always use nonblocking mode for qemu_chr_op


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 2/3] Always use nonblocking mode for qemu_chr_open_fd.
Date: Thu, 24 Jul 2008 12:37:58 -0500
User-agent: Thunderbird 2.0.0.14 (X11/20080501)

Paul Brook wrote:
On Wednesday 23 July 2008, Gerd Hoffmann wrote:
Anthony Liguori wrote:
Gerd Hoffmann wrote:
Comments on this one?
Checking every 100ms for every pty device really makes me cringe.
Only when unconnected, and the interval can be changed.
And I'm certainly open for better ideas ...

Anything that requires periodic polling is almost certainly wrong.

If it's unconnected then why do we need to poll at all? If we're discarding data then we aren't going to retry, so it should be sufficient to check whenever we send data.

There's no way to determine if someone reconnected without trying to do a read(). pty's just aren't designed for this sort of thing.

Regards,

Anthony Liguori

Paul







reply via email to

[Prev in Thread] Current Thread [Next in Thread]