From nobody Mon Feb 9 21:21:36 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1634636229507301.6241178968203; Tue, 19 Oct 2021 02:37:09 -0700 (PDT) Received: from localhost ([::1]:53194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mclYS-00076h-5l for importer@patchew.org; Tue, 19 Oct 2021 05:37:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mclQx-0003rr-5j for qemu-devel@nongnu.org; Tue, 19 Oct 2021 05:29:23 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:45393) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mclQu-0005gf-CM for qemu-devel@nongnu.org; Tue, 19 Oct 2021 05:29:22 -0400 Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-195-jrbas4acO26eja1ImanLog-1; Tue, 19 Oct 2021 05:29:18 -0400 Received: by mail-wr1-f72.google.com with SMTP id f1-20020a5d64c1000000b001611832aefeso9927897wri.17 for ; Tue, 19 Oct 2021 02:29:18 -0700 (PDT) Received: from localhost (static-233-86-86-188.ipcom.comunitel.net. [188.86.86.233]) by smtp.gmail.com with ESMTPSA id a16sm14535905wrs.30.2021.10.19.02.29.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Oct 2021 02:29:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634635759; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CnYbXqplDYjVx6yRtdKoJVb5ZarXQXE39HCFPLbwh08=; b=DoySnws2+rprFJo4IEDBDgo0t529t3jr5z4Le0K8UyPsx/QPjiPJyIJPv20Hw56RTQaJJV 2XqHRRifQdFl+Ee/u43DW2bi5nfRAswsitBtbwUwrmJPxxGlYk7CfReSt4f0plTntvSeNK Yw4BfcOFgrfvbX4cUyYjTkivLXo12I8= X-MC-Unique: jrbas4acO26eja1ImanLog-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CnYbXqplDYjVx6yRtdKoJVb5ZarXQXE39HCFPLbwh08=; b=e56cXSiQ0sbRZDSyUhlQ/JMbUTJj+qvxmryueTiqplzb2i8cBVi77nzc285sF8ObSK 1oW2NkdTicmbhF/mAXuZdhZPQVUz3dQfTcAkSMWSFLiwnuAckWzM94WyEdy6ZXwDuGIk MXzvdzpGyU7WARRt6uzxsHVEQzZgTzas1mPGwK+3nkNc0ykwTZMKIGaXyvxflQgyUv6A XFeyt0p6wiTsgfk+PTjwNRDsnvBdomjKbSZmNBhA++xlIOANZaMO+ILS3wcnbYLo4h6D Gl5q16W/tRX8ALmxU/ek+yE2nJdUsbi0Jm0o1xUzhKCQJNWCO8VA0eAyssuH8mGIsjQo NAUg== X-Gm-Message-State: AOAM530SomInWgfZ9rgs7HnMn8D/vuGkAPtl4iUsHVUqTwiIBc4LAUBb kpHbYbkZmy4nG4lybgPYQyYU4Sny8Gc4ZnODjvs8WcQxH0m1cbfSnaJh2U0mZAh8F8Gom0JbXza P4nNO+h1SpG+AMQXJJChlTQJX5xkvFHi4hVcTdxZhQyAxzRHWLBDYSuHp/lxHkvzNOpg= X-Received: by 2002:a7b:cd15:: with SMTP id f21mr4802498wmj.76.1634635757175; Tue, 19 Oct 2021 02:29:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzi173m8zP0/JWh9prgDMNyOB/wZioFfpobQij7Qz2nyOpWiijbNaV301gA4QGFKpYV8Cc+8w== X-Received: by 2002:a7b:cd15:: with SMTP id f21mr4802468wmj.76.1634635756970; Tue, 19 Oct 2021 02:29:16 -0700 (PDT) From: Juan Quintela To: qemu-devel@nongnu.org Subject: [PULL 5/7] migration: allow enabling mutilfd for specific protocol only Date: Tue, 19 Oct 2021 11:29:05 +0200 Message-Id: <20211019092907.5255-6-quintela@redhat.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211019092907.5255-1-quintela@redhat.com> References: <20211019092907.5255-1-quintela@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=quintela@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=216.205.24.124; envelope-from=quintela@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.049, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Dr. David Alan Gilbert" , Li Zhijian , Juan Quintela Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1634636230857100001 Content-Type: text/plain; charset="utf-8" From: Li Zhijian To: , , CC: Li Zhijian Date: Sat, 31 Jul 2021 22:05:52 +0800 (5 weeks, 4 days, 17 hours ago) And change the default to true so that in '-incoming defer' case, user is a= ble to change multifd capability. Signed-off-by: Li Zhijian Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- migration/migration.c | 8 ++++++++ migration/multifd.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/migration/migration.c b/migration/migration.c index f13b07c638..9172686b89 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -1237,6 +1237,14 @@ static bool migrate_caps_check(bool *cap_list, } } =20 + /* incoming side only */ + if (runstate_check(RUN_STATE_INMIGRATE) && + !migrate_multifd_is_allowed() && + cap_list[MIGRATION_CAPABILITY_MULTIFD]) { + error_setg(errp, "multifd is not supported by current protocol"); + return false; + } + return true; } =20 diff --git a/migration/multifd.c b/migration/multifd.c index 283f672bf0..7c9deb1921 100644 --- a/migration/multifd.c +++ b/migration/multifd.c @@ -868,7 +868,7 @@ cleanup: multifd_new_send_channel_cleanup(p, sioc, local_err); } =20 -static bool migrate_allow_multifd; +static bool migrate_allow_multifd =3D true; void migrate_protocol_allow_multifd(bool allow) { migrate_allow_multifd =3D allow; --=20 2.31.1