[Qemu-devel] [PATCH 5/6] cpus: hvf: unregister thread with RCU

Paolo Bonzini posted 6 patches 8 years ago
[Qemu-devel] [PATCH 5/6] cpus: hvf: unregister thread with RCU
Posted by Paolo Bonzini 8 years ago
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 cpus.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpus.c b/cpus.c
index 9f48ccad9e..03b4533b7d 100644
--- a/cpus.c
+++ b/cpus.c
@@ -1542,6 +1542,7 @@ static void *qemu_hvf_cpu_thread_fn(void *arg)
     cpu->created = false;
     qemu_cond_signal(&qemu_cpu_cond);
     qemu_mutex_unlock_iothread();
+    rcu_unregister_thread();
     return NULL;
 }
 
-- 
2.14.3