Re: [Xen-devel] [PATCH v7 1/5] xen: introduce smp_mb__[after|before]_atomic() barriers

2020-03-25 Thread Julien Grall
Hi Juergen, On 25/03/2020 10:55, Juergen Gross wrote: When using atomic variables for synchronization barriers are needed to ensure proper data serialization. Introduce smp_mb__before_atomic() and smp_mb__after_atomic() as in the Linux kernel for that purpose. Use the same definitions as in the

Re: [Xen-devel] [PATCH v7 1/5] xen: introduce smp_mb__[after|before]_atomic() barriers

2020-03-25 Thread Jan Beulich
On 25.03.2020 11:55, Juergen Gross wrote: > When using atomic variables for synchronization barriers are needed > to ensure proper data serialization. Introduce smp_mb__before_atomic() > and smp_mb__after_atomic() as in the Linux kernel for that purpose. > > Use the same definitions as in the Linu

[Xen-devel] [PATCH v7 1/5] xen: introduce smp_mb__[after|before]_atomic() barriers

2020-03-25 Thread Juergen Gross
When using atomic variables for synchronization barriers are needed to ensure proper data serialization. Introduce smp_mb__before_atomic() and smp_mb__after_atomic() as in the Linux kernel for that purpose. Use the same definitions as in the Linux kernel. Suggested-by: Jan Beulich Signed-off-by: