cpu: atomically modify cpu->exit_request
commit027d9a7d2911e993cdcbd21c7c35d1dd058f05bb
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 30 Sep 2016 21:30:59 +0000 (30 22:30 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 4 Oct 2016 08:00:26 +0000 (4 10:00 +0200)
treeb215197742f489c9af5dd1737ee60be313190f49
parentce7cf6a973f4b614162b9518954d441fa5e32fc6
cpu: atomically modify cpu->exit_request

ThreadSanitizer picks up potential races although we already use
barriers to ensure things are in the correct order when processing exit
requests. For true C11 defined behaviour across threads we need to use
relaxed atomic_set/atomic_read semantics to reassure tsan.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20160930213106.20186-9-alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
cpu-exec.c
qom/cpu.c