accel/tcg: Take mmap lock in the whole cpu_memory_rw_debug() function
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 17 Feb 2025 10:53:47 +0000 (11:53 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 6 Mar 2025 14:46:18 +0000 (15:46 +0100)
commit964a4f2c2972ec9c7574b87541d6070ef5d22f4f
treef412ecb430cbe171e079eadbc164692c64100c18
parenta523b62c8573c09d96472e06486bb58740945215
accel/tcg: Take mmap lock in the whole cpu_memory_rw_debug() function

Simplify user implementation of cpu_memory_rw_debug() by
taking the mmap lock globally. See commit 87ab2704296
("linux-user: Allow gdbstub to ignore page protection")
for why this lock is necessary.

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250217130610.18313-4-philmd@linaro.org>
cpu-target.c