Skip to content

Commit

Permalink
cpu-exec: add assert_no_pages_locked() after longjmp
Browse files Browse the repository at this point in the history
We forgot to add this check in faa9372 ("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 <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
cota authored and bonzini committed Feb 5, 2019
1 parent 2a11ee1 commit 8fd3a9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions accel/tcg/cpu-exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 8fd3a9b

Please sign in to comment.