Hi,

On Fri, 9 May 2025 at 20:41, Peter Xu <pet...@redhat.com> wrote:
> Isn't that what multifd is doing already?
> typedef struct {
>     ...
>     /*
>      * This array contains the pointers to:
>      *  - normal pages (initial normal_pages entries)
>      *  - zero pages (following zero_pages entries)
>      */
>     uint64_t offset[];
> } __attribute__((packed)) MultiFDPacket_t;
> Or maybe I missed what you meant.

* Why are we memsetting zero pages on the receive side? What I'm
trying to get at is, if destination memory is zero-initialised at the
beginning of migration, we might be able to do away with this
memset(3) call and this optimisation altogether. All zero page entries
could point to the same zero page as well, if we don't want to
preallocate all zero pages at start.

Thank you.
---
  - Prasad


Reply via email to