Re: [libvirt] [PATCH] Add macro for handling exponential backoff loops.

2016-04-08 Thread Richard W.M. Jones
I'm going to send a v2 of this patch in a moment which should be slightly better. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines

[libvirt] [PATCH] Add macro for handling exponential backoff loops.

2016-04-08 Thread Richard W.M. Jones
In a few places in libvirt we busy-wait for events, for example qemu creating a monitor socket. This is problematic because: - We need to choose a sufficiently small polling period so that libvirt doesn't add unnecessary delays. - We need to choose a sufficiently large polling period so tha