[libvirt] In libxl_driver, how to lock/unlock objects while doing an operation that runs for a long time?

Oscar Ben bobooscar at gmail.com
Thu May 10 15:20:20 UTC 2012


In the discussion :
         http://thread.gmane.org/gmane.comp.emulators.libvirt/53534

People mentioned about long-term operations' LOCKs there. It seems that, in
libxl_driver, certain opeations may hold a lock for too long, thus other
operations, even those just do query jobs, would be blocked.

In qemu_driver, there seems to be a more complexy way to solve this
problem, by employing a condition variable.

My question is :
   Is "Fixing such problem in libxl_driver" in our todo-list?
   If yes, what's the detailed solution? Will that be similar to qemu's
CONDITION VARIABLE method?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120510/b53fa21f/attachment-0001.htm>


More information about the libvir-list mailing list