summaryrefslogtreecommitdiffstats
path: root/qapi
diff options
context:
space:
mode:
authorHyman Huang(黄勇)2021-06-29 18:01:20 +0200
committerJuan Quintela2021-11-01 22:56:43 +0100
commit71864eadd9a9933ef7e9460ae2fc93b3af98a181 (patch)
treecc38b3fba2d33fac8b8e1a887d62cccf90a9a140 /qapi
parentmemory: make global_dirty_tracking a bitmask (diff)
downloadqemu-71864eadd9a9933ef7e9460ae2fc93b3af98a181.tar.gz
qemu-71864eadd9a9933ef7e9460ae2fc93b3af98a181.tar.xz
qemu-71864eadd9a9933ef7e9460ae2fc93b3af98a181.zip
migration/dirtyrate: introduce struct and adjust DirtyRateStat
introduce "DirtyRateMeasureMode" to specify what method should be used to calculate dirty rate, introduce "DirtyRateVcpu" to store dirty rate for each vcpu. use union to store stat data of specific mode Signed-off-by: Hyman Huang(黄勇) <huangy81@chinatelecom.cn> Message-Id: <661c98c40f40e163aa58334337af8f3ddf41316a.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 'qapi')
-rw-r--r--qapi/migration.json30
1 files changed, 30 insertions, 0 deletions
diff --git a/qapi/migration.json b/qapi/migration.json
index 9aa8bc5759..94eece16e1 100644
--- a/qapi/migration.json
+++ b/qapi/migration.json
@@ -1732,6 +1732,21 @@
'data': { 'device-id': 'str' } }
##
+# @DirtyRateVcpu:
+#
+# Dirty rate of vcpu.
+#
+# @id: vcpu index.
+#
+# @dirty-rate: dirty rate.
+#
+# Since: 6.1
+#
+##
+{ 'struct': 'DirtyRateVcpu',
+ 'data': { 'id': 'int', 'dirty-rate': 'int64' } }
+
+##
# @DirtyRateStatus:
#
# An enumeration of dirtyrate status.
@@ -1749,6 +1764,21 @@
'data': [ 'unstarted', 'measuring', 'measured'] }
##
+# @DirtyRateMeasureMode:
+#
+# An enumeration of mode of measuring dirtyrate.
+#
+# @page-sampling: calculate dirtyrate by sampling pages.
+#
+# @dirty-ring: calculate dirtyrate by via dirty ring.
+#
+# Since: 6.1
+#
+##
+{ 'enum': 'DirtyRateMeasureMode',
+ 'data': ['page-sampling', 'dirty-ring'] }
+
+##
# @DirtyRateInfo:
#
# Information about current dirty page rate of vm.