Home
last modified time | relevance | path

Searched hist:"03 eebc9e3246b9b3f5925aa41f7dfd7c1e467875" (Results 1 – 2 of 2) sorted by relevance

/qemu/system/
H A Dmemory.c03eebc9e3246b9b3f5925aa41f7dfd7c1e467875 Tue Dec 02 11:23:18 UTC 2014 Stefan Hajnoczi <stefanha@redhat.com> memory: replace cpu_physical_memory_reset_dirty() with test-and-clear

The cpu_physical_memory_reset_dirty() function is sometimes used
together with cpu_physical_memory_get_dirty(). This is not atomic since
two separate accesses to the dirty memory bitmap are made.

Turn cpu_physical_memory_reset_dirty() and
cpu_physical_memory_clear_dirty_range_type() into the atomic
cpu_physical_memory_test_and_clear_dirty().

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <1417519399-3166-6-git-send-email-stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
/qemu/accel/tcg/
H A Dcputlb.c03eebc9e3246b9b3f5925aa41f7dfd7c1e467875 Tue Dec 02 11:23:18 UTC 2014 Stefan Hajnoczi <stefanha@redhat.com> memory: replace cpu_physical_memory_reset_dirty() with test-and-clear

The cpu_physical_memory_reset_dirty() function is sometimes used
together with cpu_physical_memory_get_dirty(). This is not atomic since
two separate accesses to the dirty memory bitmap are made.

Turn cpu_physical_memory_reset_dirty() and
cpu_physical_memory_clear_dirty_range_type() into the atomic
cpu_physical_memory_test_and_clear_dirty().

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