Re: [PATCH v6 09/21] accel/tcg: Unlock mmap_lock after longjmp

2022-08-21 Thread Alistair Francis
On Fri, Aug 19, 2022 at 1:29 PM Richard Henderson wrote: > > The mmap_lock is held around tb_gen_code. While the comment > is correct that the lock is dropped when tb_gen_code runs out > of memory, the lock is *not* dropped when an exception is > raised reading code for translation. > > Signed-of

[PATCH v6 09/21] accel/tcg: Unlock mmap_lock after longjmp

2022-08-18 Thread Richard Henderson
The mmap_lock is held around tb_gen_code. While the comment is correct that the lock is dropped when tb_gen_code runs out of memory, the lock is *not* dropped when an exception is raised reading code for translation. Signed-off-by: Richard Henderson --- accel/tcg/cpu-exec.c | 12 ++--