diff options
author | Chuan Zheng | 2020-09-16 08:22:06 +0200 |
---|---|---|
committer | Dr. David Alan Gilbert | 2020-09-25 13:45:58 +0200 |
commit | 4c437254b807364df3d36e90be3b86251f405a83 (patch) | |
tree | febdc1be0abf14792c2eb014b5da3af6111f91ab /qapi | |
parent | migration/dirtyrate: Implement calculate_dirtyrate() function (diff) | |
download | qemu-4c437254b807364df3d36e90be3b86251f405a83.tar.gz qemu-4c437254b807364df3d36e90be3b86251f405a83.tar.xz qemu-4c437254b807364df3d36e90be3b86251f405a83.zip |
migration/dirtyrate: Implement qmp_cal_dirty_rate()/qmp_get_dirty_rate() function
Implement qmp_cal_dirty_rate()/qmp_get_dirty_rate() function which could be called
Signed-off-by: Chuan Zheng <zhengchuan@huawei.com>
Message-Id: <1600237327-33618-12-git-send-email-zhengchuan@huawei.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
atomic function fixup
Wording fixup in migration.json based on Eric's review
Diffstat (limited to 'qapi')
-rw-r--r-- | qapi/migration.json | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/qapi/migration.json b/qapi/migration.json index 76a59b4f92..ce2216cfea 100644 --- a/qapi/migration.json +++ b/qapi/migration.json @@ -1737,3 +1737,53 @@ ## { 'enum': 'DirtyRateStatus', 'data': [ 'unstarted', 'measuring', 'measured'] } + +## +# @DirtyRateInfo: +# +# Information about current dirty page rate of vm. +# +# @dirty-rate: @dirtyrate describing the dirty page rate of vm +# in units of MB/s. +# If this field returns '-1', it means querying has not +# yet started or completed. +# +# @status: status containing dirtyrate query status includes +# 'unstarted' or 'measuring' or 'measured' +# +# @start-time: start time in units of second for calculation +# +# @calc-time: time in units of second for sample dirty pages +# +# Since: 5.2 +# +## +{ 'struct': 'DirtyRateInfo', + 'data': {'dirty-rate': 'int64', + 'status': 'DirtyRateStatus', + 'start-time': 'int64', + 'calc-time': 'int64'} } + +## +# @calc-dirty-rate: +# +# start calculating dirty page rate for vm +# +# @calc-time: time in units of second for sample dirty pages +# +# Since: 5.2 +# +# Example: +# {"command": "calc-dirty-rate", "data": {"calc-time": 1} } +# +## +{ 'command': 'calc-dirty-rate', 'data': {'calc-time': 'int64'} } + +## +# @query-dirty-rate: +# +# query dirty page rate in units of MB/s for vm +# +# Since: 5.2 +## +{ 'command': 'query-dirty-rate', 'returns': 'DirtyRateInfo' } |