On Tue, Jul 14, 2026 at 07:45:42PM +0530, 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.
The other way to do this is squashing this three core patches (starting from this one) into one big patch implementing the idea. Otherwise it might be hard to review a newly added bitmap when it got allocated but never used. But it's still fine when implementing a major feature like this - people may have different opinion on how to split patches, you can keep it like this if nobody else complains. > > 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]> Reviewed-by: Peter Xu <[email protected]> -- Peter Xu
