Re: [libvirt] [PATCH v2] qemu: aquire job in qemuDomainDefineXMLFlags

2019-05-30 Thread Michal Privoznik
On 5/28/19 6:11 PM, Nikolay Shirokovskiy wrote: The function updates vm->newDef and frees previous pesistent definition which can be used by in different thread by some API that unlocks domain to communicate to qemu. So we have an access to freed memory in that thread. Let's acquire job condition

[libvirt] [PATCH v2] qemu: aquire job in qemuDomainDefineXMLFlags

2019-05-28 Thread Nikolay Shirokovskiy
The function updates vm->newDef and frees previous pesistent definition which can be used by in different thread by some API that unlocks domain to communicate to qemu. So we have an access to freed memory in that thread. Let's acquire job condition in case of updating exiting domain. Signed-off-b