migration: enforce multifd and postcopy preempt to be set before incoming
commit82137e6c8c517e70fe93e262975eaaac5c911635
authorWei Wang <wei.w.wang@intel.com>
Tue, 6 Jun 2023 10:19:09 +0000 (6 18:19 +0800)
committerJuan Quintela <quintela@redhat.com>
Wed, 26 Jul 2023 08:55:56 +0000 (26 10:55 +0200)
treef57db47da37730bd3aa5434d5902c12bdf1f8e56
parent908927db28eafb404ec4c3a50249ddb52bd4afde
migration: enforce multifd and postcopy preempt to be set before incoming

qemu_start_incoming_migration needs to check the number of multifd
channels or postcopy ram channels to configure the backlog parameter (i.e.
the maximum length to which the queue of pending connections for sockfd
may grow) of listen(). So enforce the usage of postcopy-preempt and
multifd as below:
- need to use "-incoming defer" on the destination; and
- set_capability and set_parameter need to be done before migrate_incoming

Otherwise, disable the use of the features and report error messages to
remind users to adjust the commands.

Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20230606101910.20456-2-wei.w.wang@intel.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Acked-by: Juan Quintela <quintela@redhat.com>
migration/options.c