]> git.ipfire.org Git - thirdparty/qemu.git/commit
accel/tcg: Always lock pages before translation
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 6 Jul 2023 16:55:48 +0000 (17:55 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 15 Jul 2023 07:02:33 +0000 (08:02 +0100)
commitdeba78709ae8ce103e2248413857747f804cd1ef
tree9e3993af183c57f27270979281ba00e6b92f08a8
parentd713cf4d6c71076513a10528303b3e337b4d5998
accel/tcg: Always lock pages before translation

We had done this for user-mode by invoking page_protect
within the translator loop.  Extend this to handle system
mode as well.  Move page locking out of tb_link_page.

Reported-by: Liren Wei <lrwei@bupt.edu.cn>
Reported-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Richard W.M. Jones <rjones@redhat.com>
accel/tcg/cpu-exec.c
accel/tcg/internal.h
accel/tcg/tb-maint.c
accel/tcg/translate-all.c
accel/tcg/translator.c