diff options
author | Avi Kivity <avi@redhat.com> | 2011-12-11 14:47:25 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-12-20 14:14:07 +0200 |
commit | 7664e80c84700d8b7e88ae854d1d74806c63f013 (patch) | |
tree | 39e5764672d23bc53b1042237ac4de5297fc0c93 /exec.c | |
parent | 86e775c654b775d3e295e8a33bb03cc03bdab68d (diff) | |
download | qemu-7664e80c84700d8b7e88ae854d1d74806c63f013.zip qemu-7664e80c84700d8b7e88ae854d1d74806c63f013.tar.gz qemu-7664e80c84700d8b7e88ae854d1d74806c63f013.tar.bz2 |
memory: add API for observing updates to the physical memory map
Add an API that allows a client to observe changes in the global
memory map:
- region added (possibly with logging enabled)
- region removed (possibly with logging enabled)
- logging started on a region
- logging stopped on a region
- global logging started
- global logging removed
This API will eventually replace cpu_register_physical_memory_client().
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1762,6 +1762,11 @@ static int cpu_notify_sync_dirty_bitmap(target_phys_addr_t start, static int cpu_notify_migration_log(int enable) { CPUPhysMemoryClient *client; + if (enable) { + memory_global_dirty_log_start(); + } else { + memory_global_dirty_log_stop(); + } QLIST_FOREACH(client, &memory_client_list, list) { int r = client->migration_log(client, enable); if (r < 0) |