aboutsummaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-12-11 14:47:25 +0200
committerAvi Kivity <avi@redhat.com>2011-12-20 14:14:07 +0200
commit7664e80c84700d8b7e88ae854d1d74806c63f013 (patch)
tree39e5764672d23bc53b1042237ac4de5297fc0c93 /exec.c
parent86e775c654b775d3e295e8a33bb03cc03bdab68d (diff)
downloadqemu-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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/exec.c b/exec.c
index 32782b4..36b61c9 100644
--- a/exec.c
+++ b/exec.c
@@ -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)