Re: [PATCH 4/5] accel/tcg: Avoid using lock_user() in cpu_memory_rw_debug()

2025-02-17 Thread Richard Henderson
On 2/17/25 05:06, Philippe Mathieu-Daudé wrote: We checked the page flags with page_get_flags(), so locking the page is superfluous. Remove the lock_user() calls and directly use g2h() in place. Suggested-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- cpu-target.c | 17 ++-

[PATCH 4/5] accel/tcg: Avoid using lock_user() in cpu_memory_rw_debug()

2025-02-17 Thread Philippe Mathieu-Daudé
We checked the page flags with page_get_flags(), so locking the page is superfluous. Remove the lock_user() calls and directly use g2h() in place. Suggested-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- cpu-target.c | 17 ++--- 1 file changed, 2 insertions(+), 15 d