Re: [PATCH v4 06/11] migration: add RAMBlock field and helper for fast snapshot load
Juraj Marcin <[email protected]>
| Newsgroups | gmane.comp.emulators.qemu |
|---|---|
| Message-ID | <annqQ6WqANY1MH1G@fedora> |
On 2026-08-01 08:06, Aadeshveer Singh wrote: > Add pending_bmap field per RAMBlock which is a Bitmap to store > internal state of which pages have been read by some thread to ensure > coordination between fault thread and eager load thread. > > Modify parse_ramblock_mapped_ram(), to not load the actual RAMBlocks > data in postcopy case as that will be loaded by fault thread and eager > thread after the VM starts running. > > Change ram_load() to use new function ram_should_load_postcopy_pages() > to decide how to load/read RAM. > > Signed-off-by: Aadeshveer Singh <[email protected]> > --- > include/system/ramblock.h | 6 ++++ > migration/ram.c | 59 +++++++++++++++++++++++++++++++++++---- > 2 files changed, 59 insertions(+), 6 deletions(-) Reviewed-by: Juraj Marcin <[email protected]>