Re: [Qemu-devel] [PATCH v3 15/15] translate-all: mark updates to PageDesc as atomic

2016-10-03 Thread Paolo Bonzini
On 30/09/2016 23:31, Alex Bennée wrote: > Updates to the internal page table are protected by the mmap_lock. > However for defined C11 semantics things that are access across threads > need to accessed using at least relaxed atomics. Again, this is only necessary for the initial load-acquire ope

[Qemu-devel] [PATCH v3 15/15] translate-all: mark updates to PageDesc as atomic

2016-09-30 Thread Alex Bennée
Updates to the internal page table are protected by the mmap_lock. However for defined C11 semantics things that are access across threads need to accessed using at least relaxed atomics. Signed-off-by: Alex Bennée --- translate-all.c | 67 +---