All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Hao Xiang <hao.xiang@bytedance.com>
Cc: pbonzini@redhat.com,  berrange@redhat.com,  eduardo@habkost.net,
	peterx@redhat.com,  farosas@suse.de,  eblake@redhat.com,
	thuth@redhat.com,  lvivier@redhat.com,  jdenemar@redhat.com,
	marcel.apfelbaum@gmail.com,  philmd@linaro.org,
	 wangyanan55@huawei.com, qemu-devel@nongnu.org
Subject: Re: [External] Re: [PATCH v3 1/7] migration/multifd: Add new migration option zero-page-detection.
Date: Thu, 29 Feb 2024 06:34:42 +0100	[thread overview]
Message-ID: <87edcvu93h.fsf@pond.sub.org> (raw)
In-Reply-To: <CAAYibXjwBTcBFmUUs=L2BfTKgxi3Pym5S-5w-JOsZDmGdb9sgg@mail.gmail.com> (Hao Xiang's message of "Wed, 28 Feb 2024 10:30:24 -0800")

Hao Xiang <hao.xiang@bytedance.com> writes:

> On Wed, Feb 28, 2024 at 1:43 AM Markus Armbruster <armbru@redhat.com> wrote:
>>
>> Hao Xiang <hao.xiang@bytedance.com> writes:
>>
>> > This new parameter controls where the zero page checking is running.
>> > 1. If this parameter is set to 'legacy', zero page checking is
>> > done in the migration main thread.
>> > 2. If this parameter is set to 'none', zero page checking is disabled.
>> >
>> > Signed-off-by: Hao Xiang <hao.xiang@bytedance.com>
>>
>> [...]
>>
>> > diff --git a/qapi/migration.json b/qapi/migration.json
>> > index 5a565d9b8d..1e66272f8f 100644
>> > --- a/qapi/migration.json
>> > +++ b/qapi/migration.json
>> > @@ -653,6 +653,18 @@
>> >  { 'enum': 'MigMode',
>> >    'data': [ 'normal', 'cpr-reboot' ] }
>> >
>> > +##
>> > +# @ZeroPageDetection:
>> > +#
>> > +# @none: Do not perform zero page checking.
>> > +#
>> > +# @legacy: Perform zero page checking from main migration thread.
>> > +#
>> > +# Since: 9.0
>> > +##
>> > +{ 'enum': 'ZeroPageDetection',
>> > +  'data': [ 'none', 'legacy' ] }
>> > +
>> >  ##
>> >  # @BitmapMigrationBitmapAliasTransform:
>> >  #
>> > @@ -874,6 +886,9 @@
>> >  # @mode: Migration mode. See description in @MigMode. Default is 'normal'.
>> >  #        (Since 8.2)
>> >  #
>> > +# @zero-page-detection: Whether and how to detect zero pages. More details
>> > +#     see description in @ZeroPageDetection. Default is 'legacy'.  (since 9.0)
>> > +#
>>
>> I'm not sure we need to point to the member's type.  If we want to, we
>> better fix the prose: "For additional information, see
>> @ZeroPageDetection" or similar.
>
> This is mimicking what was done for the "mode" migration option. There
> aren't many enumeration types on the interface I can learn from.
>
> Existing code
>
> #
> # @mode: Migration mode. See description in @MigMode. Default is 'normal'.
> # (Since 8.2)

"More details see description in @TYPE" feels off, "See description in
@TYPE" is better.  Feel free to use it instead of my suggested phrasing.

[...]



  reply	other threads:[~2024-02-29  5:35 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-26 19:56 [PATCH v3 0/7] Introduce multifd zero page checking Hao Xiang
2024-02-26 19:56 ` [PATCH v3 1/7] migration/multifd: Add new migration option zero-page-detection Hao Xiang
2024-02-28  9:43   ` Markus Armbruster
2024-02-28 18:30     ` [External] " Hao Xiang
2024-02-29  5:34       ` Markus Armbruster [this message]
2024-02-26 19:56 ` [PATCH v3 2/7] migration/multifd: Implement zero page transmission on the multifd thread Hao Xiang
2024-02-28  9:45   ` Markus Armbruster
2024-02-28  9:50   ` Markus Armbruster
2024-02-28 18:45     ` [External] " Hao Xiang
2024-02-29  5:41       ` Markus Armbruster
2024-02-29 15:46         ` Fabiano Rosas
2024-03-01  1:27           ` Hao Xiang
2024-02-28 19:46   ` Fabiano Rosas
2024-03-01  1:55     ` [External] " Hao Xiang
2024-02-26 19:56 ` [PATCH v3 3/7] migration/multifd: Implement ram_save_target_page_multifd to handle multifd version of MigrationOps::ram_save_target_page Hao Xiang
2024-02-28 19:48   ` Fabiano Rosas
2024-02-26 19:56 ` [PATCH v3 4/7] migration/multifd: Enable multifd zero page checking by default Hao Xiang
2024-02-26 19:56 ` [PATCH v3 5/7] migration/multifd: Add new migration test cases for legacy zero page checking Hao Xiang
2024-02-26 19:56 ` [PATCH v3 6/7] migration/multifd: Add zero pages and zero bytes counter to migration status interface Hao Xiang
2024-02-28  9:52   ` Markus Armbruster
2024-02-28 18:36     ` [External] " Hao Xiang
2024-02-29  6:01       ` Markus Armbruster
2024-03-01  1:18         ` Hao Xiang
2024-03-01  5:53           ` Markus Armbruster
2024-02-26 19:56 ` [PATCH v3 7/7] Update maintainer contact for migration multifd zero page checking acceleration Hao Xiang
2024-02-28  9:36 ` [PATCH v3 0/7] Introduce multifd zero page checking Markus Armbruster

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=87edcvu93h.fsf@pond.sub.org \
    --to=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=eblake@redhat.com \
    --cc=eduardo@habkost.net \
    --cc=farosas@suse.de \
    --cc=hao.xiang@bytedance.com \
    --cc=jdenemar@redhat.com \
    --cc=lvivier@redhat.com \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=peterx@redhat.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@redhat.com \
    --cc=wangyanan55@huawei.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.