Re: [PATCH v2 3/3] accel/tcg: Take mmap_lock in load_atomic*_or_exit

2023-07-23 Thread Peter Maydell
On Sat, 22 Jul 2023 at 12:35, Richard Henderson wrote: > > For user-only, the probe for page writability may race with another > thread's mprotect. Take the mmap_lock around the operation. This > is still faster than the start/end_exclusive fallback. > > Signed-off-by: Richard Henderson > ---

[PATCH v2 3/3] accel/tcg: Take mmap_lock in load_atomic*_or_exit

2023-07-22 Thread Richard Henderson
For user-only, the probe for page writability may race with another thread's mprotect. Take the mmap_lock around the operation. This is still faster than the start/end_exclusive fallback. Signed-off-by: Richard Henderson --- accel/tcg/ldst_atomicity.c.inc | 32 ++--