diff options
author | Wei Wang <wei.w.wang@intel.com> | 2020-04-30 08:59:35 +0800 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2020-05-07 17:40:24 +0100 |
commit | e460a4b1a4c0e0aeea2c56bfc2407a9a1d1a3ae2 (patch) | |
tree | ded96ba444316c96f7c1c6caa4080fd774e67fb7 /migration/migration.c | |
parent | 59c59c67ee6b0327ae932deb303caa47919aeb1e (diff) | |
download | qemu-e460a4b1a4c0e0aeea2c56bfc2407a9a1d1a3ae2.zip qemu-e460a4b1a4c0e0aeea2c56bfc2407a9a1d1a3ae2.tar.gz qemu-e460a4b1a4c0e0aeea2c56bfc2407a9a1d1a3ae2.tar.bz2 |
migration/xbzrle: add encoding rate
Users may need to check the xbzrle encoding rate to know if the guest
memory is xbzrle encoding-friendly, and dynamically turn off the
encoding if the encoding rate is low.
Signed-off-by: Yi Sun <yi.y.sun@intel.com>
Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Message-Id: <1588208375-19556-1-git-send-email-wei.w.wang@intel.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/migration.c')
-rw-r--r-- | migration/migration.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/migration/migration.c b/migration/migration.c index f5dbffc..0bb042a 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -932,6 +932,7 @@ static void populate_ram_info(MigrationInfo *info, MigrationState *s) info->xbzrle_cache->pages = xbzrle_counters.pages; info->xbzrle_cache->cache_miss = xbzrle_counters.cache_miss; info->xbzrle_cache->cache_miss_rate = xbzrle_counters.cache_miss_rate; + info->xbzrle_cache->encoding_rate = xbzrle_counters.encoding_rate; info->xbzrle_cache->overflow = xbzrle_counters.overflow; } |