aboutsummaryrefslogtreecommitdiff
path: root/migration/ram.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2017-03-13 20:35:54 +0100
committerJuan Quintela <quintela@redhat.com>2017-04-21 12:25:36 +0200
commitbedf53c14c35f6121c11f81b6c72714804177550 (patch)
tree73a1f5648e138fecbea278ddb7a4567a83dc9630 /migration/ram.c
parent5bb1272c38dea94fdded3048d7efac42a72f97f0 (diff)
downloadqemu-bedf53c14c35f6121c11f81b6c72714804177550.zip
qemu-bedf53c14c35f6121c11f81b6c72714804177550.tar.gz
qemu-bedf53c14c35f6121c11f81b6c72714804177550.tar.bz2
ram: Remove unused pages_skipped variable
For compatibility, we need to still send a value, but just specify it and comment the fact. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'migration/ram.c')
-rw-r--r--migration/ram.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/migration/ram.c b/migration/ram.c
index 1398597..78c7f3d 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -175,7 +175,6 @@ static RAMState ram_state;
/* accounting for migration statistics */
typedef struct AccountingInfo {
- uint64_t skipped_pages;
uint64_t norm_pages;
uint64_t iterations;
uint64_t xbzrle_bytes;
@@ -197,16 +196,6 @@ uint64_t dup_mig_pages_transferred(void)
return ram_state.zero_pages;
}
-uint64_t skipped_mig_bytes_transferred(void)
-{
- return acct_info.skipped_pages * TARGET_PAGE_SIZE;
-}
-
-uint64_t skipped_mig_pages_transferred(void)
-{
- return acct_info.skipped_pages;
-}
-
uint64_t norm_mig_bytes_transferred(void)
{
return acct_info.norm_pages * TARGET_PAGE_SIZE;