Re: [PATCH] tb-maint: do not use mb_read/mb_set

2023-05-01 Thread Richard Henderson
On 4/30/23 12:25, Paolo Bonzini wrote: The load side can use a relaxed load, which will surely happen before the work item is run by async_safe_run_on_cpu() or before double-checking under mmap_lock. The store side can use an atomic RMW operation. Signed-off-by: Paolo Bonzini --- accel/tcg/tb

[PATCH] tb-maint: do not use mb_read/mb_set

2023-04-30 Thread Paolo Bonzini
The load side can use a relaxed load, which will surely happen before the work item is run by async_safe_run_on_cpu() or before double-checking under mmap_lock. The store side can use an atomic RMW operation. Signed-off-by: Paolo Bonzini --- accel/tcg/tb-maint.c | 4 ++-- 1 file changed, 2 inse