]> Git Repo - qemu.git/commit
memory: add support getting and using a dirty bitmap copy.
authorGerd Hoffmann <[email protected]>
Fri, 21 Apr 2017 09:16:25 +0000 (11:16 +0200)
committerGerd Hoffmann <[email protected]>
Mon, 24 Apr 2017 08:12:28 +0000 (10:12 +0200)
commit8deaf12ca1a7c89867df739dc9056080509628bd
treef7bae444ae09a9ed1fe4374c7d91b614529bcb13
parentd6eb1413920affb7be3df9982682dd183a805dd7
memory: add support getting and using a dirty bitmap copy.

This patch adds support for getting and using a local copy of the dirty
bitmap.

memory_region_snapshot_and_clear_dirty() will create a snapshot of the
dirty bitmap for the specified range, clear the dirty bitmap and return
the copy.  The returned bitmap can be a bit larger than requested, the
range is expanded so the code can copy unsigned longs from the bitmap
and avoid atomic bit update operations.

memory_region_snapshot_get_dirty() will return the dirty status of
pages, pretty much like memory_region_get_dirty(), but using the copy
returned by memory_region_copy_and_clear_dirty().

Signed-off-by: Gerd Hoffmann <[email protected]>
Message-id: 20170421091632[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
exec.c
include/exec/memory.h
include/exec/ram_addr.h
include/qemu/typedefs.h
memory.c
This page took 0.029129 seconds and 4 git commands to generate.