History | View | Annotate | Download (6.6 kB)
atomic.h: Fix build with clang
clang defines ATOMIC_SEQ_CST but its implementation of the_atomic_exchange() builtin differs from that of gcc. Move the_clang branch of the ifdef ladder to the top and fix itsimplementation (there is no such builtin as __sync_exchange),...
add a header file for atomic operations
We're already using them in several places, but __sync builtins are justtoo ugly to type, and do not provide seqcst load/store operations.
Reviewed-by: Richard Henderson <rth@twiddle.net>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block-migration: add lock
Some state is shared between the block migration code and its AIOcallbacks. Once block migration will run outside the iothread,the block migration code and the AIO callbacks will be able torun concurrently. Protect the critical sections with a separate...
misc: move include files to include/qemu/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>