Re: [PATCH 2/3] qemu: get the stackManager lock before getting nested lock

2022-10-17 Thread Michal Prívozník
[please keep the list on CC] On 10/15/22 13:55, Jiang Jiacheng wrote: > Thanks for your reply. > In other similar situation, we will get the StacksecurityManager lock > before get other driver's lock to keep the use of the security drivers > is internally serialized(in 'virSecurityManagerGenLabel')

Re: [PATCH 2/3] qemu: get the stackManager lock before getting nested lock

2022-10-12 Thread Michal Prívozník
On 9/28/22 15:53, Jiang Jiacheng wrote: > When creating a VM by forking, there is a logic that get the lock of > StacksecurityManager before get other nested lock to avoid deadlock > between child process and thread of the parent. While in > `virQEMUDriverCreateCapabilities` and `qemuDomainGetSecur

[PATCH 2/3] qemu: get the stackManager lock before getting nested lock

2022-09-28 Thread Jiang Jiacheng
When creating a VM by forking, there is a logic that get the lock of StacksecurityManager before get other nested lock to avoid deadlock between child process and thread of the parent. While in `virQEMUDriverCreateCapabilities` and `qemuDomainGetSecurityLabelList`, we get nested lock without gettin