From nobody Mon Feb 9 00:01:34 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1659455923; cv=none; d=zohomail.com; s=zohoarc; b=QZdkmmGKya7U2jpIuXJmsqxasZBb4a6sRytFGtO5AWlplPOcE0da5oXPeTFlXJO8q11tsByG3tcVUkU954rCnn9yctoJkQEcDlIxkzKN+l2aDMsQOacqLq5AOGbnBsQyfup/1N4P7fPh7Vd6KlPslaa31rsJJt5N8LgVLooaZEU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1659455923; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=QcMsBDLIY06iYQJ5LPagbf0qdnKRRsXCWhMQWT1UEQA=; b=fUjDTSDQ1OKXXF5RSPVFLebDP81j5qC/w5DLz9pYlDHu5ffWqOqr9j4AvZJrWCDxDUqW9rFKHWe8zrRZ3CD9TIZkKGznqapFFKWpJkpYQl7W9ror6dVZ3n7Q+9A2+NvgUD47vsxQmh7d/vE3Ub2p44/y5YC6DZ/JX+hNvdyps+g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1659455923731268.47475289378417; Tue, 2 Aug 2022 08:58:43 -0700 (PDT) Received: from localhost ([::1]:41394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIuI6-0000lz-Pw for importer@patchew.org; Tue, 02 Aug 2022 11:58:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIuEV-00046d-Ty for qemu-devel@nongnu.org; Tue, 02 Aug 2022 11:54:59 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:23542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIuET-000240-0S for qemu-devel@nongnu.org; Tue, 02 Aug 2022 11:54:58 -0400 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-528-agwwrK7ZMPiXaV-WlhNweA-1; Tue, 02 Aug 2022 11:54:55 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E1CAF3C1014B; Tue, 2 Aug 2022 15:54:54 +0000 (UTC) Received: from dgilbert-t580.localhost (unknown [10.33.36.167]) by smtp.corp.redhat.com (Postfix) with ESMTP id EE173141DC28; Tue, 2 Aug 2022 15:54:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1659455696; 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=QcMsBDLIY06iYQJ5LPagbf0qdnKRRsXCWhMQWT1UEQA=; b=dJ9mBZHtacJCGfIglcfXze4x0chDdBF/4AAwsqubvgtsR+OKXszrsJkVSVr1+OunCs2QTu G0isNJd3rTKMq5E5GXddStmZbLA+GlPIpS7XRuHAbuPReyVir5tV0k4VBQ3cBtRManOVto 7q8WOc0VzgNPU7gR6dcS9GI7olGY/bE= X-MC-Unique: agwwrK7ZMPiXaV-WlhNweA-1 From: "Dr. David Alan Gilbert (git)" To: qemu-devel@nongnu.org, leobras@redhat.com, thuth@redhat.com, peter.maydell@linaro.org, vgoyal@redhat.com Cc: peterx@redhat.com, quintela@redhat.com Subject: [PULL 1/5] migration: add remaining params->has_* = true in migration_instance_init() Date: Tue, 2 Aug 2022 16:54:43 +0100 Message-Id: <20220802155447.216018-2-dgilbert@redhat.com> In-Reply-To: <20220802155447.216018-1-dgilbert@redhat.com> References: <20220802155447.216018-1-dgilbert@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 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=170.10.133.124; envelope-from=dgilbert@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1659455924187100001 Content-Type: text/plain; charset="utf-8" From: Leonardo Bras Some of params->has_* =3D true are missing in migration_instance_init, this causes migrate_params_check() to skip some tests, allowing some unsupported scenarios. Fix this by adding all missing params->has_* =3D true in migration_instance_init(). Fixes: 69ef1f36b0 ("migration: define 'tls-creds' and 'tls-hostname' migrat= ion parameters") Fixes: 1d58872a91 ("migration: do not wait for free thread") Fixes: d2f1d29b95 ("migration: add support for a "tls-authz" migration para= meter") Signed-off-by: Leonardo Bras Message-Id: <20220726010235.342927-1-leobras@redhat.com> Reviewed-by: Peter Xu Signed-off-by: Dr. David Alan Gilbert --- migration/migration.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/migration/migration.c b/migration/migration.c index e03f698a3c..82fbe0cf55 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -4451,6 +4451,7 @@ static void migration_instance_init(Object *obj) /* Set has_* up only for parameter checks */ params->has_compress_level =3D true; params->has_compress_threads =3D true; + params->has_compress_wait_thread =3D true; params->has_decompress_threads =3D true; params->has_throttle_trigger_threshold =3D true; params->has_cpu_throttle_initial =3D true; @@ -4471,6 +4472,9 @@ static void migration_instance_init(Object *obj) params->has_announce_max =3D true; params->has_announce_rounds =3D true; params->has_announce_step =3D true; + params->has_tls_creds =3D true; + params->has_tls_hostname =3D true; + params->has_tls_authz =3D true; =20 qemu_sem_init(&ms->postcopy_pause_sem, 0); qemu_sem_init(&ms->postcopy_pause_rp_sem, 0); --=20 2.37.1