]> Git Repo - qemu.git/commitdiff
cpus: Properly release the iothread lock when killing a dummy VCPU
authorDavid Hildenbrand <[email protected]>
Mon, 18 Feb 2019 09:21:57 +0000 (10:21 +0100)
committerDavid Gibson <[email protected]>
Mon, 25 Feb 2019 22:21:25 +0000 (09:21 +1100)
This enables CPU unplug under qtest.

Reviewed-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Greg Kurz <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Reviewed-by: David Gibson <[email protected]>
Signed-off-by: David Hildenbrand <[email protected]>
Message-Id: <20190218092202[email protected]>
Signed-off-by: David Gibson <[email protected]>
cpus.c

diff --git a/cpus.c b/cpus.c
index 154daf57dcb02ab546ddc3ddafb833b240418158..e83f72b48b4bf21e93b8588f953659e64eb20645 100644 (file)
--- 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
This page took 0.027351 seconds and 4 git commands to generate.