Re: [PATCH V4] migration: ram block cpr blockers

2025-02-26 Thread Steven Sistare
On 2/25/2025 4:10 PM, David Hildenbrand wrote: +    /* Ram device is remapped in new QEMU */ +    if (memory_region_is_ram_device(mr)) { +    return true; +    } + +    /* Named files are remapped in new QEMU, same contents if shared (no COW) */ +    if (qemu_ram_is_shared(rb) && qemu_ram_is

[PATCH V4] migration: ram block cpr blockers

2025-02-25 Thread Steve Sistare
Unlike cpr-reboot mode, cpr-transfer mode cannot save volatile ram blocks in the migration stream file and recreate them later, because the physical memory for the blocks is pinned and registered for vfio. Add a blocker for volatile ram blocks. Also add a blocker for RAM_GUEST_MEMFD. Preserving

Re: [PATCH V4] migration: ram block cpr blockers

2025-02-25 Thread David Hildenbrand
+/* Ram device is remapped in new QEMU */ +if (memory_region_is_ram_device(mr)) { +return true; +} + +/* Named files are remapped in new QEMU, same contents if shared (no COW) */ +if (qemu_ram_is_shared(rb) && qemu_ram_is_named_file(rb)) { +return true; +}