[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 14/23] migration/multifd: Allow multifd without packets
From: |
Peter Xu |
Subject: |
Re: [PATCH v5 14/23] migration/multifd: Allow multifd without packets |
Date: |
Thu, 29 Feb 2024 10:20:52 +0800 |
On Wed, Feb 28, 2024 at 12:21:18PM -0300, Fabiano Rosas wrote:
> For the upcoming support to the new 'mapped-ram' migration stream
> format, we cannot use multifd packets because each write into the
> ramblock section in the migration file is expected to contain only the
> guest pages. They are written at their respective offsets relative to
> the ramblock section header.
>
> There is no space for the packet information and the expected gains
> from the new approach come partly from being able to write the pages
> sequentially without extraneous data in between.
>
> The new format also simply doesn't need the packets and all necessary
> information can be taken from the standard migration headers with some
> (future) changes to multifd code.
>
> Use the presence of the mapped-ram capability to decide whether to
> send packets.
>
> This only moves code under multifd_use_packets(), it has no effect for
> now as mapped-ram cannot yet be enabled with multifd.
>
> Signed-off-by: Fabiano Rosas <farosas@suse.de>
> ---
> - added multifd_send_prepare_iovs
I saw that you also moved p->next_packet_size setup into it. IMHO it
doesn't need to be there; it'll also be tiny bit confusing to setup
next_packet_size when !use_packet to me.
But I think I get your point on putting that together with IOV setups.
Not a big deal.
> - posted channels_created at file.c as well
This is done in the other patch ("migration/multifd: Add outgoing
QIOChannelFile support"). It won't appear when it's merged anyway, so
that's fine.
Reviewed-by: Peter Xu <peterx@redhat.com>
--
Peter Xu
- Re: [PATCH v5 07/23] migration/ram: Introduce 'mapped-ram' migration capability, (continued)
- [PATCH v5 06/23] migration/qemu-file: add utility methods for working with seekable channels, Fabiano Rosas, 2024/02/28
- [PATCH v5 09/23] migration/ram: Add outgoing 'mapped-ram' migration, Fabiano Rosas, 2024/02/28
- [PATCH v5 08/23] migration: Add mapped-ram URI compatibility check, Fabiano Rosas, 2024/02/28
- [PATCH v5 11/23] tests/qtest/migration: Add tests for mapped-ram file-based migration, Fabiano Rosas, 2024/02/28
- [PATCH v5 12/23] migration/multifd: Rename MultiFDSend|RecvParams::data to compress_data, Fabiano Rosas, 2024/02/28
- [PATCH v5 13/23] migration/multifd: Decouple recv method from pages, Fabiano Rosas, 2024/02/28
- [PATCH v5 15/23] migration/multifd: Allow receiving pages without packets, Fabiano Rosas, 2024/02/28
- [PATCH v5 14/23] migration/multifd: Allow multifd without packets, Fabiano Rosas, 2024/02/28
- Re: [PATCH v5 14/23] migration/multifd: Allow multifd without packets,
Peter Xu <=
- [PATCH v5 10/23] migration/ram: Add incoming 'mapped-ram' migration, Fabiano Rosas, 2024/02/28
- [PATCH v5 16/23] migration/multifd: Add a wrapper for channels_created, Fabiano Rosas, 2024/02/28
- [PATCH v5 17/23] migration/multifd: Add outgoing QIOChannelFile support, Fabiano Rosas, 2024/02/28
[PATCH v5 18/23] migration/multifd: Add incoming QIOChannelFile support, Fabiano Rosas, 2024/02/28