qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

xbzrle: update xbzrle doc

Add new parameter description, also:
1. Remove unsociable space.
2. Nit picking: s/two/2 in report

Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com>
Message-Id: <20200320143216.423374-1-maozhongyi@cmss.chinamobile.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>

authored by

Mao Zhongyi and committed by
Dr. David Alan Gilbert
06b1c6f8 33ee3d96

+8 -3
+6 -1
docs/xbzrle.txt
··· 92 92 power of 2. The cache default value is 64MBytes. (on source only) 93 93 {qemu} migrate_set_cache_size 256m 94 94 95 + Commit 73af8dd8d7 "migration: Make xbzrle_cache_size a migration parameter" 96 + (v2.11.0) deprecated migrate-set-cache-size, therefore, the new parameter 97 + is recommended. 98 + {qemu} migrate_set_parameter xbzrle-cache-size 256m 99 + 95 100 4. Start outgoing migration 96 101 {qemu} migrate -d tcp:destination.host:4444 97 102 {qemu} info migrate ··· 108 113 xbzrle transferred: I kbytes 109 114 xbzrle pages: J pages 110 115 xbzrle cache miss: K 111 - xbzrle overflow : L 116 + xbzrle overflow: L 112 117 113 118 xbzrle cache-miss: the number of cache misses to date - high cache-miss rate 114 119 indicates that the cache size is set too low.
+1 -1
migration/migration.c
··· 1243 1243 error_setg(errp, QERR_INVALID_PARAMETER_VALUE, 1244 1244 "xbzrle_cache_size", 1245 1245 "is invalid, it should be bigger than target page size" 1246 - " and a power of two"); 1246 + " and a power of 2"); 1247 1247 return false; 1248 1248 } 1249 1249
+1 -1
monitor/hmp-cmds.c
··· 303 303 info->xbzrle_cache->cache_miss); 304 304 monitor_printf(mon, "xbzrle cache miss rate: %0.2f\n", 305 305 info->xbzrle_cache->cache_miss_rate); 306 - monitor_printf(mon, "xbzrle overflow : %" PRIu64 "\n", 306 + monitor_printf(mon, "xbzrle overflow: %" PRIu64 "\n", 307 307 info->xbzrle_cache->overflow); 308 308 } 309 309