summaryrefslogtreecommitdiffstats
path: root/hmp-commands.hx
diff options
context:
space:
mode:
authorHyman Huang(黄勇)2021-06-29 18:01:23 +0200
committerJuan Quintela2021-11-01 22:56:43 +0100
commit0e21bf24608b801bcdf6057f47808613061ecbe3 (patch)
tree5fd087963ca41e229e1aa9e8131b6855e8a2ed7d /hmp-commands.hx
parentmigration/dirtyrate: move init step of calculation to main thread (diff)
downloadqemu-0e21bf24608b801bcdf6057f47808613061ecbe3.tar.gz
qemu-0e21bf24608b801bcdf6057f47808613061ecbe3.tar.xz
qemu-0e21bf24608b801bcdf6057f47808613061ecbe3.zip
migration/dirtyrate: implement dirty-ring dirtyrate calculation
use dirty ring feature to implement dirtyrate calculation. introduce mode option in qmp calc_dirty_rate to specify what method should be used when calculating dirtyrate, either page-sampling or dirty-ring should be passed. introduce "dirty_ring:-r" option in hmp calc_dirty_rate to indicate dirty ring method should be used for calculation. Signed-off-by: Hyman Huang(黄勇) <huangy81@chinatelecom.cn> Message-Id: <7db445109bd18125ce8ec86816d14f6ab5de6a7d.1624040308.git.huangy81@chinatelecom.cn> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'hmp-commands.hx')
-rw-r--r--hmp-commands.hx7
1 files changed, 4 insertions, 3 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx
index cf723c69ac..b6d47bd03f 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -1737,8 +1737,9 @@ ERST
{
.name = "calc_dirty_rate",
- .args_type = "second:l,sample_pages_per_GB:l?",
- .params = "second [sample_pages_per_GB]",
- .help = "start a round of guest dirty rate measurement",
+ .args_type = "dirty_ring:-r,second:l,sample_pages_per_GB:l?",
+ .params = "[-r] second [sample_pages_per_GB]",
+ .help = "start a round of guest dirty rate measurement (using -d to"
+ "\n\t\t\t specify dirty ring as the method of calculation)",
.cmd = hmp_calc_dirty_rate,
},