qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Example output for query-vcpu-dirty-limit


From: Hyman Huang
Subject: Re: Example output for query-vcpu-dirty-limit
Date: Fri, 24 Mar 2023 09:36:12 +0800
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0



在 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(黄勇)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]