summaryrefslogtreecommitdiff
path: root/migration/ram.c
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2016-06-13 12:16:42 +0100
committerAmit Shah <amit.shah@redhat.com>2016-06-16 09:50:07 +0530
commitd3bf5418e2c5cf0e911b51b7041caddae5e8b38a (patch)
tree17c4f7eac546bb587d1490cf38b3913539a00762 /migration/ram.c
parenta22463a5dca6c1e3fbb474e758af7d864de61690 (diff)
downloadqemu-d3bf5418e2c5cf0e911b51b7041caddae5e8b38a.tar.gz
Postcopy: Add stats on page requests
On the source, add a count of page requests received from the destination. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Denis V. Lunev <den@openvz.org> Message-id: 1465816605-29488-4-git-send-email-dgilbert@redhat.com Message-Id: <1465816605-29488-4-git-send-email-dgilbert@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'migration/ram.c')
-rw-r--r--migration/ram.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/migration/ram.c b/migration/ram.c
index 5f929d6195..42fb8ac6d6 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -1169,6 +1169,7 @@ int ram_save_queue_pages(MigrationState *ms, const char *rbname,
{
RAMBlock *ramblock;
+ ms->postcopy_requests++;
rcu_read_lock();
if (!rbname) {
/* Reuse last RAMBlock */