Re: [PATCH 2/3] linux-user/arm: Implement __kernel_cmpxchg with host atomics

2022-03-22 Thread Richard Henderson
On 3/22/22 13:08, Laurent Vivier wrote: I have removed this patch and the following one from the branch because it hangs when executed in an armhf/bionic chroot the following example: cat > /tmp/hello.go < I don't see a hang. I see a SIGBUS, due to a silly typo here: +static void arm_kerne

Re: [PATCH 2/3] linux-user/arm: Implement __kernel_cmpxchg with host atomics

2022-03-22 Thread Laurent Vivier
Le 22/03/2022 à 12:46, Laurent Vivier a écrit : Le 14/03/2022 à 05:43, Richard Henderson a écrit : The existing implementation using start/end_exclusive does not provide atomicity across processes. Signed-off-by: Richard Henderson ---   linux-user/arm/cpu_loop.c | 85 ++

Re: [PATCH 2/3] linux-user/arm: Implement __kernel_cmpxchg with host atomics

2022-03-22 Thread Laurent Vivier
Le 14/03/2022 à 05:43, Richard Henderson a écrit : The existing implementation using start/end_exclusive does not provide atomicity across processes. Signed-off-by: Richard Henderson --- linux-user/arm/cpu_loop.c | 85 +++ 1 file changed, 60 insertions(+),

Re: [PATCH 2/3] linux-user/arm: Implement __kernel_cmpxchg with host atomics

2022-03-15 Thread Peter Maydell
On Mon, 14 Mar 2022 at 04:44, Richard Henderson wrote: > > The existing implementation using start/end_exclusive > does not provide atomicity across processes. > > Signed-off-by: Richard Henderson > --- > linux-user/arm/cpu_loop.c | 85 +++ > 1 file changed, 6

[PATCH 2/3] linux-user/arm: Implement __kernel_cmpxchg with host atomics

2022-03-13 Thread Richard Henderson
The existing implementation using start/end_exclusive does not provide atomicity across processes. Signed-off-by: Richard Henderson --- linux-user/arm/cpu_loop.c | 85 +++ 1 file changed, 60 insertions(+), 25 deletions(-) diff --git a/linux-user/arm/cpu_loop.