[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 10/14] migration/multifd: Don't send ram data during SYNC
From: |
Peter Xu |
Subject: |
Re: [PATCH v3 10/14] migration/multifd: Don't send ram data during SYNC |
Date: |
Thu, 22 Aug 2024 11:50:32 -0400 |
On Thu, Aug 01, 2024 at 09:35:12AM -0300, Fabiano Rosas wrote:
> Skip saving and loading any ram data in the packet in the case of a
> SYNC. This fixes a shortcoming of the current code which requires a
> reset of the MultiFDPages_t fields right after the previous
> pending_job finishes, otherwise the very next job might be a SYNC and
> multifd_send_fill_packet() will put the stale values in the packet.
>
> By not calling multifd_ram_fill_packet(), we can stop resetting
> MultiFDPages_t in the multifd core and leave that to the client code.
>
> Actually moving the reset function is not yet done because
> pages->num==0 is used by the client code to determine whether the
> MultiFDPages_t needs to be flushed. The subsequent patches will
> replace that with a generic flag that is not dependent on
> MultiFDPages_t.
>
> Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Peter Xu <peterx@redhat.com>
--
Peter Xu
- [PATCH v3 00/14] migration/multifd: Remove multifd_send_state->pages, Fabiano Rosas, 2024/08/01
- [PATCH v3 05/14] migration/multifd: Introduce MultiFDSendData, Fabiano Rosas, 2024/08/01
- [PATCH v3 06/14] migration/multifd: Make MultiFDPages_t:offset a flexible array member, Fabiano Rosas, 2024/08/01
- [PATCH v3 08/14] migration/multifd: Move pages accounting into multifd_send_zero_page_detect(), Fabiano Rosas, 2024/08/01
- [PATCH v3 03/14] migration/multifd: Remove pages->allocated, Fabiano Rosas, 2024/08/01
- [PATCH v3 02/14] migration/multifd: Inline page_size and page_count, Fabiano Rosas, 2024/08/01
- [PATCH v3 10/14] migration/multifd: Don't send ram data during SYNC, Fabiano Rosas, 2024/08/01
- Re: [PATCH v3 10/14] migration/multifd: Don't send ram data during SYNC,
Peter Xu <=
- [PATCH v3 14/14] migration/multifd: Move ram code into multifd-ram.c, Fabiano Rosas, 2024/08/01
- [PATCH v3 09/14] migration/multifd: Isolate ram pages packet data, Fabiano Rosas, 2024/08/01
[PATCH v3 01/14] migration/multifd: Reduce access to p->pages, Fabiano Rosas, 2024/08/01