]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vz: fix possible vzDomainDefineXMLFlags and prlsdkNewDomainByHandle race
authorMaxim Nestratov <mnestratov@virtuozzo.com>
Tue, 12 Apr 2016 17:30:57 +0000 (20:30 +0300)
committerMaxim Nestratov <mnestratov@virtuozzo.com>
Wed, 13 Apr 2016 15:48:44 +0000 (18:48 +0300)
commiteb5e9c1ea90327d49eafd59db8cc809bd96e8d19
tree238ab56015c258170c05995cb05cdfc8053c2a20
parent7762c5a233e147a546323a25a8d04dbb564ae409
vz: fix possible vzDomainDefineXMLFlags and prlsdkNewDomainByHandle race

Lock driver when a new domain is created in prlsdkNewDomainByHandle
and try to find it in the list under lock again because it can race
with vzDomainDefineXMLFlags when a domain with the same uuid is added
via vz dispatcher directly and libvirt define.

Signed-off-by: Maxim Nestratov <mnestratov@virtuozzo.com>
src/vz/vz_sdk.c