aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2017-03-13 20:33:01 +0100
committerJuan Quintela <quintela@redhat.com>2017-04-21 12:25:36 +0200
commit5bb1272c38dea94fdded3048d7efac42a72f97f0 (patch)
treef719f1c43b381f0a3db3e0d946565efcc9d2985b
parentf7ccd61b4ceee7c8bfaa78c943a179765ea745a6 (diff)
ram: Remove unused dup_mig_bytes_transferred()
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com>
-rw-r--r--include/migration/migration.h1
-rw-r--r--migration/ram.c5
2 files changed, 0 insertions, 6 deletions
diff --git a/include/migration/migration.h b/include/migration/migration.h
index 24487be295..f07700f3ef 100644
--- a/include/migration/migration.h
+++ b/include/migration/migration.h
@@ -276,7 +276,6 @@ void free_xbzrle_decoded_buf(void);
void acct_update_position(QEMUFile *f, size_t size, bool zero);
-uint64_t dup_mig_bytes_transferred(void);
uint64_t dup_mig_pages_transferred(void);
uint64_t skipped_mig_bytes_transferred(void);
uint64_t skipped_mig_pages_transferred(void);
diff --git a/migration/ram.c b/migration/ram.c
index cdd56b7c33..1398597202 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -192,11 +192,6 @@ static void acct_clear(void)
memset(&acct_info, 0, sizeof(acct_info));
}
-uint64_t dup_mig_bytes_transferred(void)
-{
- return ram_state.zero_pages * TARGET_PAGE_SIZE;
-}
-
uint64_t dup_mig_pages_transferred(void)
{
return ram_state.zero_pages;