summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2024-02-02 18:28:35 +0800
committerPeter Xu <peterx@redhat.com>2024-02-05 14:42:10 +0800
commit8888a552bf7af200e36ff123772547dfb4f133c4 (patch)
treec6b2b9d4dc397dba883b8c1b29c89b22c214f3a0
parent06152b89db64bc5ccec1e54576706ba891654df9 (diff)
downloadfocaccia-qemu-8888a552bf7af200e36ff123772547dfb4f133c4.tar.gz
focaccia-qemu-8888a552bf7af200e36ff123772547dfb4f133c4.zip
migration/multifd: Drop stale comment for multifd zero copy
We've already done that with multifd_flush_after_each_section, for multifd
in general.  Drop the stale "TODO-like" comment.

Reviewed-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20240202102857.110210-2-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
-rw-r--r--migration/multifd.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/migration/multifd.c b/migration/multifd.c
index 25cbc6dc6b..eee2586770 100644
--- a/migration/multifd.c
+++ b/migration/multifd.c
@@ -598,17 +598,6 @@ int multifd_send_sync_main(void)
         }
     }
 
-    /*
-     * When using zero-copy, it's necessary to flush the pages before any of
-     * the pages can be sent again, so we'll make sure the new version of the
-     * pages will always arrive _later_ than the old pages.
-     *
-     * Currently we achieve this by flushing the zero-page requested writes
-     * per ram iteration, but in the future we could potentially optimize it
-     * to be less frequent, e.g. only after we finished one whole scanning of
-     * all the dirty bitmaps.
-     */
-
     flush_zero_copy = migrate_zero_copy_send();
 
     for (i = 0; i < migrate_multifd_channels(); i++) {