summary refs log tree commit diff stats
path: root/migration/ram.c
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2017-04-26 19:37:21 +0100
committerJuan Quintela <quintela@redhat.com>2017-05-04 10:41:23 +0200
commit1db9d8e501fc99fa2201f228627952aee6cfc349 (patch)
tree1d7648c3ea5f41c15eab2528569c416a25bd4256 /migration/ram.c
parentbe07b0ace82b0f23bee194de9e4481c308645376 (diff)
downloadfocaccia-qemu-1db9d8e501fc99fa2201f228627952aee6cfc349.tar.gz
focaccia-qemu-1db9d8e501fc99fa2201f228627952aee6cfc349.zip
migration: Extra tracing
A couple more traces that would have made fixing that postcopy
bug a bit easier.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/ram.c')
-rw-r--r--migration/ram.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/migration/ram.c b/migration/ram.c
index 4918c11576..293d27ce83 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -788,6 +788,7 @@ static int ram_save_page(RAMState *rs, PageSearchStatus *pss, bool last_stage)
     ram_addr_t offset = pss->page << TARGET_PAGE_BITS;
 
     p = block->host + offset;
+    trace_ram_save_page(block->idstr, (uint64_t)offset, p);
 
     /* In doubt sent page as normal */
     bytes_xmit = 0;
@@ -2550,6 +2551,7 @@ static int ram_load(QEMUFile *f, void *opaque, int version_id)
                 ret = -EINVAL;
                 break;
             }
+            trace_ram_load_loop(block->idstr, (uint64_t)addr, flags, host);
         }
 
         switch (flags & ~RAM_SAVE_FLAG_CONTINUE) {