mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
59c59c67ee
commit
e460a4b1a4
4 changed files with 44 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue