Re: [Qemu-devel] [PATCH] cpu: skip unpluged cpu when querying cpus

2018-04-13 Thread xuyandong
: Igor Mammedov [mailto:imamm...@redhat.com] > Sent: Wednesday, April 11, 2018 7:46 PM > To: linzhecheng > Cc: qemu-devel@nongnu.org; xuyandong ; > pbonz...@redhat.com; wangxin (U) ; > r...@twiddle.net; crosthwaite.pe...@gmail.com > Subject: Re: [Qemu-devel] [PATCH] cpu: skip un

Re: [Qemu-devel] [PATCH] cpu: skip unpluged cpu when querying cpus

2018-04-11 Thread Igor Mammedov
On Wed, 11 Apr 2018 19:16:02 +0800 linzhecheng wrote: > From: XuYandong > > After vcpu1 thread exiting, vcpu0 thread (received notification) is still > waiting for > holding qemu_global_mutex in cpu_remove_sync, at this moment, vcpu1 is still > in global cpus list. > If main thread grab qemu_

[Qemu-devel] [PATCH] cpu: skip unpluged cpu when querying cpus

2018-04-11 Thread linzhecheng
From: XuYandong After vcpu1 thread exiting, vcpu0 thread (received notification) is still waiting for holding qemu_global_mutex in cpu_remove_sync, at this moment, vcpu1 is still in global cpus list. If main thread grab qemu_global_mutex in order to handle qmp command "info cpus", qmp_query_cp