[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 08/14] migration/multifd: Add new migration option for mul
|
From: |
Markus Armbruster |
|
Subject: |
Re: [PATCH v4 08/14] migration/multifd: Add new migration option for multifd DSA offloading. |
|
Date: |
Fri, 26 Apr 2024 11:16:58 +0200 |
|
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Daniel P. Berrangé <berrange@redhat.com> writes:
> On Thu, Apr 25, 2024 at 02:21:11AM +0000, Hao Xiang wrote:
>> 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:
>>
>> multifd-dsa-accel="[dsa_dev_path1] [dsa_dev_path2] ... [dsa_dev_pathX]"
>>
>> This feature is turned off by default.
>>
>> Signed-off-by: Hao Xiang <hao.xiang@linux.dev>
>> ---
>> migration/migration-hmp-cmds.c | 8 ++++++++
>> migration/options.c | 30 ++++++++++++++++++++++++++++++
>> migration/options.h | 1 +
>> qapi/migration.json | 26 +++++++++++++++++++++++---
>> 4 files changed, 62 insertions(+), 3 deletions(-)
>
>> diff --git a/qapi/migration.json b/qapi/migration.json
>> index 8c65b90328..934fa8839e 100644
>> --- a/qapi/migration.json
>> +++ b/qapi/migration.json
>> @@ -914,6 +914,12 @@
>> # See description in @ZeroPageDetection. Default is 'multifd'.
>> # (since 9.0)
>> #
>> +# @multifd-dsa-accel: If enabled, use DSA accelerator offloading for
>> +# certain memory operations. Enable DSA accelerator offloading by
>> +# setting this string to a list of DSA device path separated by space
>> +# characters. Setting this string to an empty string means disabling
>> +# DSA accelerator offloading. Defaults to an empty string. (since 9.2)
>
> Passing a list of paths as a single space separate string is a
> design anti-pattern. This needs to use a list type at the QAPI
> level.
Yup.
> Also I don't think we need add 'multifd' on the name - all
> new features are for multifd.
>
> Overall it should be called 'dsa-accel-path' I thjink
Moreover, docs/devel/qapi-code-gen.rst:
For legibility, wrap text paragraphs so every line is at most 70
characters long.
Separate sentences with two spaces.
[...]
- Re: [PATCH v4 03/14] util/dsa: Implement DSA device start and stop logic., (continued)
- [PATCH v4 04/14] util/dsa: Implement DSA task enqueue and dequeue., Hao Xiang, 2024/04/24
- [PATCH v4 05/14] util/dsa: Implement DSA task asynchronous completion thread model., Hao Xiang, 2024/04/24
- [PATCH v4 07/14] util/dsa: Implement DSA task asynchronous submission and wait for completion., Hao Xiang, 2024/04/24
- [PATCH v4 08/14] migration/multifd: Add new migration option for multifd DSA offloading., Hao Xiang, 2024/04/24
- [PATCH v4 06/14] util/dsa: Implement zero page checking in DSA task., Hao Xiang, 2024/04/24
- [PATCH v4 09/14] migration/multifd: Prepare to introduce DSA acceleration on the multifd path., Hao Xiang, 2024/04/24
- [PATCH v4 10/14] migration/multifd: Enable DSA offloading in multifd sender path., Hao Xiang, 2024/04/24
- [PATCH v4 11/14] migration/multifd: Add migration option set packet size., Hao Xiang, 2024/04/24
- [PATCH v4 12/14] migration/multifd: Enable set packet size migration option., Hao Xiang, 2024/04/24
- [PATCH v4 13/14] util/dsa: Add unit test coverage for Intel DSA task submission and completion., Hao Xiang, 2024/04/24
- [PATCH v4 14/14] migration/multifd: Add integration tests for multifd with Intel DSA offloading., Hao Xiang, 2024/04/24