All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Yichen Wang <yichen.wang@bytedance.com>
Cc: "Peter Xu" <peterx@redhat.com>, "Fabiano Rosas" <farosas@suse.de>,
	"Dr. David Alan Gilbert" <dave@treblig.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Eric Blake" <eblake@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Cornelia Huck" <cohuck@redhat.com>,
	"Laurent Vivier" <lvivier@redhat.com>,
	qemu-devel@nongnu.org, "Hao Xiang" <hao.xiang@linux.dev>,
	"Liu, Yuan1" <yuan1.liu@intel.com>,
	"Shivam Kumar" <shivam.kumar1@nutanix.com>,
	"Ho-Ren (Jack) Chuang" <horenchuang@bytedance.com>
Subject: Re: [PATCH v9 08/12] migration/multifd: Add new migration option for multifd DSA offloading.
Date: Tue, 07 Jan 2025 11:57:56 +0100	[thread overview]
Message-ID: <874j2ac2mj.fsf@pond.sub.org> (raw)
In-Reply-To: <20241225005919.26853-9-yichen.wang@bytedance.com> (Yichen Wang's message of "Tue, 24 Dec 2024 16:59:15 -0800")

Yichen Wang <yichen.wang@bytedance.com> writes:

> From: Hao Xiang <hao.xiang@linux.dev>
>
> Intel DSA offloading is an optional feature that turns on if
> proper hardware and software stack is available. To turn on
> DSA offloading in multifd live migration by setting:
>
> zero-page-detection=dsa-accel
> accel-path="dsa:<dsa_dev_path1> dsa:[dsa_dev_path2] ..."
>
> This feature is turned off by default.
>
> Signed-off-by: Hao Xiang <hao.xiang@linux.dev>
> Signed-off-by: Yichen Wang <yichen.wang@bytedance.com>
> Acked-by: Dr. David Alan Gilbert <dave@treblig.org>

[...]

> diff --git a/qapi/migration.json b/qapi/migration.json
> index a605dc26db..76a3920e2e 100644
> --- a/qapi/migration.json
> +++ b/qapi/migration.json
> @@ -629,10 +629,14 @@
>  #     multifd migration is enabled, else in the main migration thread
>  #     as for @legacy.
>  #
> +# @dsa-accel: Perform zero page checking with the DSA accelerator
> +#     offloading in multifd sender thread if multifd migration is
> +#     enabled, else in the main migration thread as for @legacy.
> +#
>  # Since: 9.0
>  ##
>  { 'enum': 'ZeroPageDetection',
> -  'data': [ 'none', 'legacy', 'multifd' ] }
> +  'data': [ 'none', 'legacy', 'multifd', 'dsa-accel' ] }
>  
>  ##
>  # @BitmapMigrationBitmapAliasTransform:
> @@ -840,6 +844,12 @@
>  #     See description in @ZeroPageDetection.  Default is 'multifd'.
>  #     (since 9.0)
>  #
> +# @accel-path: If enabled, specify the accelerator paths that to be

"If enabled" makes no sense, I'm afraid.

> +#     used in QEMU. For example, enable DSA accelerator for zero page

Please separate sentences with two spaces for consistency.

> +#     detection offloading by setting the @zero-page-detection to
> +#     dsa-accel, and defines the accel-path to "dsa:<dsa_device path>".

Looks like the members of the lists are strings in a little language you
invented, but are not defining here.

What is the abstract structure of the configuration data are you trying
to pass here?

> +#     This parameter is default to an empty list.  (Since 10.0)

Either "This parameter defaults to an empty list" or "(default empty
list)".

> +#
>  # @direct-io: Open migration files with O_DIRECT when possible.  This
>  #     only has effect if the @mapped-ram capability is enabled.
>  #     (Since 9.1)
> @@ -858,7 +868,7 @@
>             'cpu-throttle-initial', 'cpu-throttle-increment',
>             'cpu-throttle-tailslow',
>             'tls-creds', 'tls-hostname', 'tls-authz', 'max-bandwidth',
> -           'avail-switchover-bandwidth', 'downtime-limit',
> +           'avail-switchover-bandwidth', 'downtime-limit', 'accel-path',
>             { 'name': 'x-checkpoint-delay', 'features': [ 'unstable' ] },
>             'multifd-channels',
>             'xbzrle-cache-size', 'max-postcopy-bandwidth',

[...]



  reply	other threads:[~2025-01-07 10:58 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-25  0:59 [PATCH v9 00/12] Use Intel DSA accelerator to offload zero page checking in multifd live migration Yichen Wang
2024-12-25  0:59 ` [PATCH v9 01/12] meson: Introduce new instruction set enqcmd to the build system Yichen Wang
2024-12-25  0:59 ` [PATCH v9 02/12] util/dsa: Add idxd into linux header copy list Yichen Wang
2024-12-25  0:59 ` [PATCH v9 03/12] util/dsa: Implement DSA device start and stop logic Yichen Wang
2024-12-25  0:59 ` [PATCH v9 04/12] util/dsa: Implement DSA task enqueue and dequeue Yichen Wang
2024-12-25  0:59 ` [PATCH v9 05/12] util/dsa: Implement DSA task asynchronous completion thread model Yichen Wang
2024-12-25  0:59 ` [PATCH v9 06/12] util/dsa: Implement zero page checking in DSA task Yichen Wang
2024-12-25  0:59 ` [PATCH v9 07/12] util/dsa: Implement DSA task asynchronous submission and wait for completion Yichen Wang
2024-12-25  0:59 ` [PATCH v9 08/12] migration/multifd: Add new migration option for multifd DSA offloading Yichen Wang
2025-01-07 10:57   ` Markus Armbruster [this message]
2024-12-25  0:59 ` [PATCH v9 09/12] migration/multifd: Enable DSA offloading in multifd sender path Yichen Wang
2025-01-03 20:59   ` Fabiano Rosas
2024-12-25  0:59 ` [PATCH v9 10/12] util/dsa: Add unit test coverage for Intel DSA task submission and completion Yichen Wang
2025-01-03 20:39   ` Fabiano Rosas
2024-12-25  0:59 ` [PATCH v9 11/12] migration/multifd: Add integration tests for multifd with Intel DSA offloading Yichen Wang
2024-12-25  0:59 ` [PATCH v9 12/12] migration/doc: Add DSA zero page detection doc Yichen Wang

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=874j2ac2mj.fsf@pond.sub.org \
    --to=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=cohuck@redhat.com \
    --cc=dave@treblig.org \
    --cc=eblake@redhat.com \
    --cc=farosas@suse.de \
    --cc=hao.xiang@linux.dev \
    --cc=horenchuang@bytedance.com \
    --cc=lvivier@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peterx@redhat.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=shivam.kumar1@nutanix.com \
    --cc=yichen.wang@bytedance.com \
    --cc=yuan1.liu@intel.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.