qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: huangy81@chinatelecom.cn
Cc: "Eduardo Habkost" <eduardo@habkost.net>,
	"David Hildenbrand" <david@redhat.com>,
	"Juan Quintela" <quintela@redhat.com>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	qemu-devel <qemu-devel@nongnu.org>,
	"Peter Xu" <peterx@redhat.com>,
	"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>
Subject: Re: [PATCH v18 7/7] softmmu/dirtylimit: Implement dirty page rate limit
Date: Thu, 03 Mar 2022 13:02:33 +0100	[thread overview]
Message-ID: <874k4fckh2.fsf@pond.sub.org> (raw)
In-Reply-To: <0c8849e11cc2d2ec549c926af5977cbd9f460b60.1646247968.git.huangy81@chinatelecom.cn> (huangy's message of "Thu, 3 Mar 2022 03:20:25 +0800")

huangy81@chinatelecom.cn writes:

> From: Hyman Huang(黄勇) <huangy81@chinatelecom.cn>
>
> Implement dirtyrate calculation periodically basing on
> dirty-ring and throttle virtual CPU until it reachs the quota
> dirty page rate given by user.
>
> Introduce qmp commands "set-vcpu-dirty-limit",
> "cancel-vcpu-dirty-limit", "query-vcpu-dirty-limit"
> to enable, disable, query dirty page limit for virtual CPU.
>
> Meanwhile, introduce corresponding hmp commands
> "set_vcpu_dirty_limit", "cancel_vcpu_dirty_limit",
> "info vcpu_dirty_limit" so the feature can be more usable.
>
> "query-vcpu-dirty-limit" success depends on enabling dirty
> page rate limit, so just add it to the list of skipped
> command to ensure qmp-cmd-test run successfully.
>
> Signed-off-by: Hyman Huang(黄勇) <huangy81@chinatelecom.cn>
> Acked-by: Markus Armbruster <armbru@redhat.com>
> Reviewed-by: Peter Xu <peterx@redhat.com>
> ---
>  hmp-commands-info.hx       |  13 +++
>  hmp-commands.hx            |  32 ++++++++
>  include/monitor/hmp.h      |   3 +
>  qapi/migration.json        |  80 +++++++++++++++++++
>  softmmu/dirtylimit.c       | 195 +++++++++++++++++++++++++++++++++++++++++++++
>  tests/qtest/qmp-cmd-test.c |   2 +
>  6 files changed, 325 insertions(+)

[...]

> diff --git a/tests/qtest/qmp-cmd-test.c b/tests/qtest/qmp-cmd-test.c
> index 7f103ea..4b216a0 100644
> --- a/tests/qtest/qmp-cmd-test.c
> +++ b/tests/qtest/qmp-cmd-test.c
> @@ -110,6 +110,8 @@ static bool query_is_ignored(const char *cmd)
>          "query-sev-capabilities",
>          "query-sgx",
>          "query-sgx-capabilities",
> +        /* Success depends on enabling dirty page rate limit */
> +        "query-vcpu-dirty-limit",
>          NULL
>      };
>      int i;

The new command lacks test coverage.  Have you considered writing a
test?



  reply	other threads:[~2022-03-03 12:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-02 19:20 [PATCH v18 0/7] support dirty restraint on vCPU huangy81
2022-03-02 19:20 ` [PATCH v18 1/7] accel/kvm/kvm-all: Refactor per-vcpu dirty ring reaping huangy81
2022-03-02 19:20 ` [PATCH v18 2/7] cpus: Introduce cpu_list_generation_id huangy81
2022-03-02 19:20 ` [PATCH v18 3/7] migration/dirtyrate: Refactor dirty page rate calculation huangy81
2022-03-02 19:20 ` [PATCH v18 4/7] softmmu/dirtylimit: Implement vCPU dirtyrate calculation periodically huangy81
2022-03-02 19:20 ` [PATCH v18 5/7] accel/kvm/kvm-all: Introduce kvm_dirty_ring_size function huangy81
2022-03-02 19:20 ` [PATCH v18 6/7] softmmu/dirtylimit: Implement virtual CPU throttle huangy81
2022-03-02 19:20 ` [PATCH v18 7/7] softmmu/dirtylimit: Implement dirty page rate limit huangy81
2022-03-03 12:02   ` Markus Armbruster [this message]
2022-03-03 12:14     ` Hyman Huang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874k4fckh2.fsf@pond.sub.org \
    --to=armbru@redhat.com \
    --cc=david@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=eduardo@habkost.net \
    --cc=huangy81@chinatelecom.cn \
    --cc=pbonzini@redhat.com \
    --cc=peterx@redhat.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).