target/ppc/excp_helper: Take BQL before calling cpu_interrupt()
commitf1c29ebc51be77bd64178c8d9fc98a8f91a69d25
authorThomas Huth <thuth@redhat.com>
Tue, 13 Jun 2017 10:55:29 +0000 (13 12:55 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 30 Jun 2017 04:03:31 +0000 (30 14:03 +1000)
tree5855d3c575b66cdb7b6402fa10e8b28ae1e34cf6
parentd39c90f5f3ae23a6c8202eb6e1204ea84991e7f5
target/ppc/excp_helper: Take BQL before calling cpu_interrupt()

Since the introduction of MTTCG, using the msgsnd instruction
abort()s if being called without holding the BQL. So let's protect
that part of the code now with qemu_mutex_lock_iothread().

Buglink: https://bugs.launchpad.net/qemu/+bug/1694998
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/excp_helper.c