[libvirt] [RFC] Events API

Richard W.M. Jones rjones at redhat.com
Fri Sep 19 10:30:01 UTC 2008


On Fri, Sep 19, 2008 at 11:22:24AM +0100, Daniel P. Berrange wrote:
> Making a client poll for events is evil because it prevents the CPU
> going into low power mode when nothing is happening.

Didn't mean literally poll of course :-)

> Exposing a FD severely limits your flexibility, because libvirt then
> has no control over when the FD is being monitored - you may well
> not want it being select'd on all the time - and/or want to change
> the events being monitored for at various times.

Yup, didn't get down to the bottom of your other email.  Exposing an
FD is also tricky on Windows too (where you have the joys of
"WSAWaitForMultipleEvents"), so best to avoid it if possible.  If
someone (dbus? glib?) has solved this in a platform-independent way
already then so much the better.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/




More information about the libvir-list mailing list