memory: use atomic ops for setting dirty memory bits
commitd114875b9a1c21162f69a12d72f69a22e7bab376
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 2 Dec 2014 11:23:16 +0000 (2 11:23 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Jun 2015 15:10:00 +0000 (5 17:10 +0200)
tree4e7dc4d1ae0b17be4d51d4aa529ecdbc6fa63ff0
parent36546e5b803f6e363906607307f27c489441fd15
memory: use atomic ops for setting dirty memory bits

Use set_bit_atomic() and bitmap_set_atomic() so that multiple threads
can dirty memory without race conditions.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <1417519399-3166-4-git-send-email-stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/exec/ram_addr.h