On 9/19/26 19:20, Warner Losh wrote:
Catch up with linux-user 228168cbb7c:
     Signal the translator to use host atomic instructions for
     guest operations, insofar as it is possible.  This is the
     best we can do to allow the guest to interact atomically
     with other processes.

as well as subsequent tweaks and adjustmentst for bsd-user's code
structure (we don't have one exit path linux-user does and could frankly
stand to resturcture a bit to match the evolved code in linux-user). On
non-private mmap(2) sharing and all successful shmat(2) calls we tell
tcg that we're in a parallel context, which changes how it does atomics.

Signed-off-by: Warner Losh<[email protected]>
---
  bsd-user/bsd-mem.h | 8 ++++++++
  bsd-user/mmap.c    | 9 +++++++++
  2 files changed, 17 insertions(+)

Reviewed-by: Richard Henderson <[email protected]>

r~

Reply via email to