[libvirt] Exclusive VM lock

Peter Krempa pkrempa at redhat.com
Mon Dec 14 15:10:27 UTC 2015


On Mon, Dec 14, 2015 at 17:18:22 +0300, Dmitry Andreev wrote:
> Hi,
> 
> I'm looking for a mechanism to do a sequence of API calls as atomic
> operation. Is there any way for libvirt's API client to acquire an
> exclusive VM lock to prevent other client from changing VM state
> through libvirt?

No there isn't anything. Libvirt is locking only on internal events that
need protection.

Doing transaction locking should be relatively easy to implement on
application layer though.

Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20151214/197765f6/attachment-0001.sig>


More information about the libvir-list mailing list