Re: [libvirt] [PATCH] qemu_agent: fix deadlock in qemuProcessHandleAgentEOF

2015-12-14 Thread Wang Yufei
On 2015/10/28 5:45, John Ferlan wrote: > > > On 10/02/2015 08:17 AM, John Ferlan wrote: >> >> >> On 09/26/2015 08:18 AM, Wang Yufei wrote: >>> We shutdown a VM A by qemu agent,meanwhile an agent EOF >>> of VM A happened, there's a chance that deadlock occurred: >>> >>> qemuProcessHandleAgentEOF

Re: [libvirt] [PATCH] qemu_agent: fix deadlock in qemuProcessHandleAgentEOF

2015-11-20 Thread John Ferlan
On 10/27/2015 05:45 PM, John Ferlan wrote: > > > On 10/02/2015 08:17 AM, John Ferlan wrote: >> >> >> On 09/26/2015 08:18 AM, Wang Yufei wrote: >>> We shutdown a VM A by qemu agent,meanwhile an agent EOF >>> of VM A happened, there's a chance that deadlock occurred: >>> >>>

Re: [libvirt] [PATCH] qemu_agent: fix deadlock in qemuProcessHandleAgentEOF

2015-10-27 Thread John Ferlan
On 10/02/2015 08:17 AM, John Ferlan wrote: > > > On 09/26/2015 08:18 AM, Wang Yufei wrote: >> We shutdown a VM A by qemu agent,meanwhile an agent EOF >> of VM A happened, there's a chance that deadlock occurred: >> >> qemuProcessHandleAgentEOF in main thread >> A) priv->agent = NULL; //A

Re: [libvirt] [PATCH] qemu_agent: fix deadlock in qemuProcessHandleAgentEOF

2015-10-26 Thread John Ferlan
On 10/23/2015 10:17 PM, Wang Yufei wrote: > On 2015/10/23 23:32, John Ferlan wrote: > >> >> >> On 10/13/2015 02:36 AM, Wang Yufei wrote: >>> On 2015/10/2 20:17, John Ferlan wrote: >>> On 09/26/2015 08:18 AM, Wang Yufei wrote: > We shutdown a VM A by qemu agent,meanwhile an

Re: [libvirt] [PATCH] qemu_agent: fix deadlock in qemuProcessHandleAgentEOF

2015-10-23 Thread Wang Yufei
On 2015/10/23 23:32, John Ferlan wrote: > > > On 10/13/2015 02:36 AM, Wang Yufei wrote: >> On 2015/10/2 20:17, John Ferlan wrote: >> >>> >>> >>> On 09/26/2015 08:18 AM, Wang Yufei wrote: We shutdown a VM A by qemu agent,meanwhile an agent EOF of VM A happened, there's a chance that

Re: [libvirt] [PATCH] qemu_agent: fix deadlock in qemuProcessHandleAgentEOF

2015-10-23 Thread John Ferlan
On 10/13/2015 02:36 AM, Wang Yufei wrote: > On 2015/10/2 20:17, John Ferlan wrote: > >> >> >> On 09/26/2015 08:18 AM, Wang Yufei wrote: >>> We shutdown a VM A by qemu agent,meanwhile an agent EOF >>> of VM A happened, there's a chance that deadlock occurred: >>> >>> qemuProcessHandleAgentEOF in

Re: [libvirt] [PATCH] qemu_agent: fix deadlock in qemuProcessHandleAgentEOF

2015-10-13 Thread Wang Yufei
On 2015/10/2 20:17, John Ferlan wrote: > > > On 09/26/2015 08:18 AM, Wang Yufei wrote: >> We shutdown a VM A by qemu agent,meanwhile an agent EOF >> of VM A happened, there's a chance that deadlock occurred: >> >> qemuProcessHandleAgentEOF in main thread >> A) priv->agent = NULL; //A happened

Re: [libvirt] [PATCH] qemu_agent: fix deadlock in qemuProcessHandleAgentEOF

2015-10-02 Thread John Ferlan
On 09/26/2015 08:18 AM, Wang Yufei wrote: > We shutdown a VM A by qemu agent,meanwhile an agent EOF > of VM A happened, there's a chance that deadlock occurred: > > qemuProcessHandleAgentEOF in main thread > A) priv->agent = NULL; //A happened before B > > //deadlock when we get agent

[libvirt] [PATCH] qemu_agent: fix deadlock in qemuProcessHandleAgentEOF

2015-09-26 Thread Wang Yufei
We shutdown a VM A by qemu agent,meanwhile an agent EOF of VM A happened, there's a chance that deadlock occurred: qemuProcessHandleAgentEOF in main thread A) priv->agent = NULL; //A happened before B //deadlock when we get agent lock which's held by worker thread qemuAgentClose(agent);