diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-07-16 16:54:16 +0000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-07-23 17:57:10 +0100 |
commit | 2c8412d469707124c6f471822aff2e2cab395907 (patch) | |
tree | 30373a4755be4842e9949c959aefb39f7893a77a /tcg/i386/tcg-target-con-set.h | |
parent | f1ce0b80283e19d5e65a5c2b0b4de6d92ca7f527 (diff) |
accel/tcg: Take mmap_lock in load_atomic*_or_exit
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.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/i386/tcg-target-con-set.h')
0 files changed, 0 insertions, 0 deletions