]> git.proxmox.com Git - mirror_qemu.git/commit
accel/tcg: Set can_do_io at at start of lookup_tb_ptr helper
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 19 Feb 2024 17:31:51 +0000 (17:31 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 29 Feb 2024 21:35:36 +0000 (11:35 -1000)
commit62bcba836cb199bb0d9b5aa160919c863393859f
tree6aa2388c2d9e3f85f9d5ca13d0a6174b1d0ecbde
parent7f89fdf8ebe6ef8df48f0a05f44e1020c713a94e
accel/tcg: Set can_do_io at at start of lookup_tb_ptr helper

If a page table is in IO memory and lookup_tb_ptr probes
the TLB it can result in a page table walk for the instruction
fetch.  If this hits IO memory and io_prepare falsely assumes
it needs to do a TLB recompile.

Avoid that by setting can_do_io at the start of lookup_tb_ptr.

Link: https://lore.kernel.org/qemu-devel/CAFEAcA_a_AyQ=Epz3_+CheAT8Crsk9mOu894wbNW_FywamkZiw@mail.gmail.com/#t
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20240219173153.12114-2-Jonathan.Cameron@huawei.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cpu-exec.c