diff options
author | David Hildenbrand <david@redhat.com> | 2019-02-18 10:21:57 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-02-26 09:21:25 +1100 |
commit | d40bfcbbbb0ab2c9b585b94956d225ee51a013f8 (patch) | |
tree | e08f066092aff746dbea8be19ab3eab92a60e5b3 /cpus.c | |
parent | 27461d69a0f108dea756419251acc3ea65198f1b (diff) |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |