aboutsummaryrefslogtreecommitdiff
path: root/cpus.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2019-02-18 10:21:57 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2019-02-26 09:21:25 +1100
commitd40bfcbbbb0ab2c9b585b94956d225ee51a013f8 (patch)
treee08f066092aff746dbea8be19ab3eab92a60e5b3 /cpus.c
parent27461d69a0f108dea756419251acc3ea65198f1b (diff)
downloadqemu-d40bfcbbbb0ab2c9b585b94956d225ee51a013f8.zip
qemu-d40bfcbbbb0ab2c9b585b94956d225ee51a013f8.tar.gz
qemu-d40bfcbbbb0ab2c9b585b94956d225ee51a013f8.tar.bz2
cpus: Properly release the iothread lock when killing a dummy VCPU
This enables CPU unplug under qtest. Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Greg Kurz <groug@kaod.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20190218092202.26683-2-david@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'cpus.c')
-rw-r--r--cpus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpus.c b/cpus.c
index 154daf5..e83f72b 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);
+ qemu_mutex_unlock_iothread();
rcu_unregister_thread();
return NULL;
#endif