]> git.proxmox.com Git - mirror_qemu.git/commit
bsd-user: Implement interlock for atomic operations
authorWarner Losh <imp@FreeBSD.org>
Sat, 7 Aug 2021 20:22:34 +0000 (14:22 -0600)
committerWarner Losh <imp@bsdimp.com>
Fri, 10 Sep 2021 20:13:06 +0000 (14:13 -0600)
commit63cca1067ac70df2d71c0064f7bf53e19334223c
tree4d02d6d0e6fbbec861ce27212c7d73f9bbfbd94f
parentf0f7f9dca986bebf2a0b88dd83f84f5e39a61462
bsd-user: Implement interlock for atomic operations

Implement the internlock in fork_start() and fork_end() to properly cope
with atomic operations and to safely keep state for parent and child
processes.

Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
bsd-user/main.c