]> git.ipfire.org Git - thirdparty/qemu.git/commit
accel/tcg/cputlb: avoid recursive BQL (fixes #1706296)
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 21 Sep 2017 11:06:25 +0000 (12:06 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 28 Sep 2017 21:52:09 +0000 (16:52 -0500)
commit4d824886c84cd88dd2f3ce9061835689152c25f8
treecd5d19d291eaa7817bb790c583ef836f21335742
parent780fb4ce48bce4d6755972bf783dff915b0d1a11
accel/tcg/cputlb: avoid recursive BQL (fixes #1706296)

The mmio path (see exec.c:prepare_mmio_access) already protects itself
against recursive locking and it makes sense to do the same for
io_readx/writex. Otherwise any helper running in the BQL context will
assert when it attempts to write to device memory as in the case of
the bug report.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
CC: Richard Jones <rjones@redhat.com>
CC: Paolo Bonzini <bonzini@gnu.org>
CC: qemu-stable@nongnu.org
Message-Id: <20170921110625.9500-1-alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
(cherry picked from commit 8b81253332b5a3f3c67b6462f39caef47a00dd29)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
accel/tcg/cputlb.c