aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio G. Cota <cota@braap.org>2019-01-15 14:47:53 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2019-02-05 16:50:16 +0100
commit8fd3a9b81d29abf16f9cadfdcb55dd3a229ab12a (patch)
tree6a10955430c0edabc19efa6d83eb881c2d66a0da
parent2a11ee1019530a917fff43182a1ef19a0d701018 (diff)
downloadqemu-8fd3a9b81d29abf16f9cadfdcb55dd3a229ab12a.zip
qemu-8fd3a9b81d29abf16f9cadfdcb55dd3a229ab12a.tar.gz
qemu-8fd3a9b81d29abf16f9cadfdcb55dd3a229ab12a.tar.bz2
cpu-exec: add assert_no_pages_locked() after longjmp
We forgot to add this check in faa9372c07 ("translate-all: introduce assert_no_pages_locked", 2018-06-15); we only added it after returning from a longjmp in cpu_exec_step_atomic. Fix it. Signed-off-by: Emilio G. Cota <cota@braap.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--accel/tcg/cpu-exec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c
index 7cf1292..49b3259 100644
--- a/accel/tcg/cpu-exec.c
+++ b/accel/tcg/cpu-exec.c
@@ -702,6 +702,7 @@ int cpu_exec(CPUState *cpu)
if (qemu_mutex_iothread_locked()) {
qemu_mutex_unlock_iothread();
}
+ assert_no_pages_locked();
}
/* if an exception is pending, we execute it here */