]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
vl: take iothread lock very early
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 3 Mar 2015 10:36:09 +0000 (11:36 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 3 Mar 2015 13:21:53 +0000 (13:21 +0000)
commit576a94d8bcaa1bb07a81d9ffd2cf76095a66ad9a
tree879706ba4e400072ae763c7c520292a85d9fe4d7
parent3180aadb1f00fa0f0b47bccbcae5b1d47dc5ff74
vl: take iothread lock very early

If the iothread lock isn't taken by the main thread, the RCU callbacks
might run concurrently with the main thread.  QEMU's not ready for that.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Tested-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
vl.c