exec.c: ensure all AddressSpaceDispatch updates under RCU
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 21 Oct 2016 15:34:18 +0000 (16:34 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 Nov 2016 15:06:57 +0000 (16:06 +0100)
commitf35e44e7645edbb08e35b111c10c2fc57e2905c7
tree7b818227243f7f62dcdabc4db83f23d9f474298a
parent28017e010ddf6849cfa830e898da3e44e6610952
exec.c: ensure all AddressSpaceDispatch updates under RCU

The memory_dispatch field is meant to be protected by RCU so we should
use the correct primitives when accessing it. This race was flagged up
by the ThreadSanitizer.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20161021153418.21571-1-alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c