在 2023/3/23 18:40, Markus Armbruster 写道:
query-vcpu-dirty-limit's doc comment has an example, but it shows only
input, no output:
##
# @query-vcpu-dirty-limit:
#
# Returns information about virtual CPU dirty page rate limits, if any.
#
# Since: 7.1
#
# Example:
# {"execute": "query-vcpu-dirty-limit"}
#
##
The simplest fix is
# Example:
# -> {"execute": "query-vcpu-dirty-limit"}
# <- {"return": []}
But I'd rather show a non-empty reply here. I don't want to make one
up, because making up example output tends to result in incorrect
examples. Could you run the command for me in context where it returns
non-empty output?
The following shows vm dirty-limit info with two vcpus using qmp command.
# virsh qemu-monitor-command c1b1066a-2549-076d-462d-1d97cd5de712
'{"execute":"query-vcpu-dirty-limit"}' --pretty
{
"return": [
{
"limit-rate": 60,
"current-rate": 3,
"cpu-index": 0
},
{
"limit-rate": 60,
"current-rate": 3,
"cpu-index": 1
}
],
"id": "libvirt-20155"
}
--
Best regard
Hyman Huang(黄勇)