summaryrefslogtreecommitdiff
path: root/trace-events
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2015-11-05 18:11:11 +0000
committerJuan Quintela <quintela@redhat.com>2015-11-10 15:00:27 +0100
commita71808772acbea54df8ebf3680f01884f7383198 (patch)
treee89cb8ac291fb6c82ff366991a7a8d1d0dff6488 /trace-events
parent696ed9a9b3fee2d033d7b049ba2e6568860a25d1 (diff)
downloadqemu-a71808772acbea54df8ebf3680f01884f7383198.tar.gz
Postcopy: Use helpers to map pages during migration
In postcopy, the destination guest is running at the same time as it's receiving pages; as we receive new pages we must put them into the guests address space atomically to avoid a running CPU accessing a partially written page. Use the helpers in postcopy-ram.c to map these pages. qemu_get_buffer_in_place is used to avoid a copy out of qemu_file in the case that postcopy is going to do a copy anyway. 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 'trace-events')
-rw-r--r--trace-events1
1 files changed, 1 insertions, 0 deletions
diff --git a/trace-events b/trace-events
index c493f5dc10..ad7afcb165 100644
--- a/trace-events
+++ b/trace-events
@@ -1257,6 +1257,7 @@ get_queued_page_not_dirty(const char *block_name, uint64_t tmp_offset, uint64_t
migration_bitmap_sync_start(void) ""
migration_bitmap_sync_end(uint64_t dirty_pages) "dirty_pages %" PRIu64""
migration_throttle(void) ""
+ram_load_postcopy_loop(uint64_t addr, int flags) "@%" PRIx64 " %x"
ram_postcopy_send_discard_bitmap(void) ""
ram_save_queue_pages(const char *rbname, size_t start, size_t len) "%s: start: %zx len: %zx"