Received: from eggs.gnu.org ([209.51.188.92]:57675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyUkm-0004vL-G4 for qemu-devel@nongnu.org; Mon, 25 Feb 2019 23:54:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyUkl-0002Kt-JI for qemu-devel@nongnu.org; Mon, 25 Feb 2019 23:54:04 -0500 From: David Gibson Date: Tue, 26 Feb 2019 15:52:26 +1100 Message-Id: <20190226045304.25618-13-david@gibson.dropbear.id.au> In-Reply-To: <20190226045304.25618-1-david@gibson.dropbear.id.au> References: <20190226045304.25618-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 12/50] cpus: Properly release the iothread lock when killing a dummy VCPU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org Cc: gkurz@kaod.org, clg@kaod.org, lvivier@redhat.com, qemu-devel@nongnu.org, qemu-ppc@nongnu.org, David Hildenbrand , "Michael S . Tsirkin" , Greg Kurz , Thomas Huth , David Gibson From: David Hildenbrand This enables CPU unplug under qtest. Reviewed-by: Michael S. Tsirkin Reviewed-by: Greg Kurz Reviewed-by: Thomas Huth Reviewed-by: David Gibson Signed-off-by: David Hildenbrand Message-Id: <20190218092202.26683-2-david@redhat.com> Signed-off-by: David Gibson --- cpus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpus.c b/cpus.c index 154daf57dc..e83f72b48b 100644 --- a/cpus.c +++ b/cpus.c @@ -1333,6 +1333,7 @@ static void *qemu_dummy_cpu_thread_fn(void *arg) qemu_wait_io_event(cpu); } while (!cpu->unplug); =20 + qemu_mutex_unlock_iothread(); rcu_unregister_thread(); return NULL; #endif --=20 2.20.1