Setting the cap/params of multifd and postcopy preempt is expected to be done before incoming starts, as the number of multifd channels or postcopy ram channels is used by qemu_start_incoming_migration (to listen on the number of pending connections).
Enfocre the cap/params of multifd and postcopy preempt to be set before incoming. If not, disable the feature and return with error messages to remind users to adjust the commands. Fix the qtest/migration-test to do so. v2 RESEND change: - Only patch commit change with more explanations Wei Wang (2): migration: enfocre multifd and postcopy preempt to be set before incoming qtest/migration-tests.c: use "-incoming defer" for postcopy tests migration/options.c | 36 +++++++++++++++++++++++++++++++----- tests/qtest/migration-test.c | 10 ++++++++-- 2 files changed, 39 insertions(+), 7 deletions(-) -- 2.27.0