]> xenbits.xensource.com Git - qemu-xen.git/commit
migration/multifd: Allow zero pages in file migration
authorFabiano Rosas <farosas@suse.de>
Mon, 11 Mar 2024 18:00:09 +0000 (18:00 +0000)
committerPeter Xu <peterx@redhat.com>
Mon, 11 Mar 2024 20:34:51 +0000 (16:34 -0400)
commit44fe138edc0f08b8568fe4ee90be6a2a56c67daf
tree06b9bb3b6801aa59726cb57e955ed0c95e8b1332
parentc9539d9b14e6369ff169951f581b4c5cea1786e2
migration/multifd: Allow zero pages in file migration

Currently, it's an error to have no data pages in the multifd file
migration because zero page detection is done in the migration thread
and zero pages don't reach multifd. This is enforced with the
pages->num assert.

We're about to add zero page detection on the multifd thread. Fix the
file_write_ramblock_iov() to stop considering p->iovs_num=0 an error.

Signed-off-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20240311180015.3359271-2-hao.xiang@linux.dev
Signed-off-by: Peter Xu <peterx@redhat.com>
migration/file.c