From nobody Wed Feb 11 05:58:33 2026 Delivered-To: importer2@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+importer2=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 1651246621824545.0633586919249; Fri, 29 Apr 2022 08:37:01 -0700 (PDT) Received: from localhost ([::1]:48202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkSg0-000702-CI for importer2@patchew.org; Fri, 29 Apr 2022 11:37:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkSSp-0001yn-Rm for qemu-devel@nongnu.org; Fri, 29 Apr 2022 11:23:23 -0400 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:41795) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkSSo-00068p-2l for qemu-devel@nongnu.org; Fri, 29 Apr 2022 11:23:23 -0400 Received: by mail-ed1-x52c.google.com with SMTP id d6so9459558ede.8 for ; Fri, 29 Apr 2022 08:23:21 -0700 (PDT) Received: from avogadro.redhat.com ([2001:b07:6468:f312:1c09:f536:3de6:228c]) by smtp.gmail.com with ESMTPSA id w25-20020a170907271900b006f3ef214dd6sm736395ejk.60.2022.04.29.08.23.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 08:23:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mXDxkE9hGoUrZ6f+HtgdaCZPXnV++dYqWjZUuFCEstw=; b=ozFFBdC//NwICBYcVqyk2iHb/rJrBtKECFIslrFYLWUo6Hpd8iWBxKYX7TciprJCuP iEIaVPtIEXNnAqtb1YzT4Frgp9S9bp5jgMnwoTPRYCp+YP1vH4yTD49+OkTPZYa3iV/a 3dd6Y5ch0OvLkH3/T6uo6zpunyNqXj42kqAv7CkWGnZRBYTJl5FJzxPkJHz53NNfS55P DrmUnaPPVtByezTgWPrQwTJvttOnVVzs+YXbA9YB/q9GQMYKkkLf2tZlUpWhqlIu5GJv +Z/i4vo8cNM2u4l2Je4SBs3GmavEeZE02rgQHvyZuE9Rbjb45sss+Xi0Dn3cY9XocOeD SKaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=mXDxkE9hGoUrZ6f+HtgdaCZPXnV++dYqWjZUuFCEstw=; b=JJN6FpU8IwJ5dVIXYwgBqZVu58kJ/UL+pw0no/ixswyU6OKiwU+hjJD5L6PY/OSC6M ydzaKv1QYT0j6c/EAtD6pSMbAw9uZ/y9ovwAiDjl1sBVmJur25oRbvMcwpcvvI6mvx5u 1Qcvl4zGNnDWpC7YRCjbZBhB5UyRYqwhK+VwS5lXlgS5IilnMcKD53aOix6ONtKjp0q3 S8H9JhX1TXS3T7fZX9fc8JVSGZajUgEkz5G6tKdWfVrIGseu05GCgDo8TErM5OOEY3zq fQ9wthRpnWBiNf6tBGGOZY0AgKxwZsK5STp6DB2JH27p3gBaCKiREGvYoL43uCe5queZ 0LmA== X-Gm-Message-State: AOAM531eGDbsr3KtZO/QLD3x5Mx+oZbFDGfRxM+agxpaQUaEmk6/uDGf NaGzLMYEwCDIrVzMBC/KkIVMhrY/jX6nqw== X-Google-Smtp-Source: ABdhPJztdGHC5/6mhl/pUHnZZkiOX2ne+nQDPawMcyw9Ukv0mbaFgXgtGpr5x/23vUxSzEaPgllwUA== X-Received: by 2002:a05:6402:358f:b0:426:2b74:2c03 with SMTP id y15-20020a056402358f00b004262b742c03mr8788615edc.402.1651245800759; Fri, 29 Apr 2022 08:23:20 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PULL 09/25] meson, configure: move --tls-priority to meson Date: Fri, 29 Apr 2022 17:22:56 +0200 Message-Id: <20220429152312.335715-10-pbonzini@redhat.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220429152312.335715-1-pbonzini@redhat.com> References: <20220429152312.335715-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=paolo.bonzini@gmail.com; helo=mail-ed1-x52c.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, PP_MIME_FAKE_ASCII_TEXT=0.999, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1651246623509100001 Use the new support for string option parsing. Reviewed-by: Marc-Andr=C3=A9 Lureau Signed-off-by: Paolo Bonzini --- configure | 5 ----- meson.build | 3 ++- meson_options.txt | 2 ++ scripts/meson-buildoptions.sh | 3 +++ 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/configure b/configure index c1eb4923dd..9062f9ccd6 100755 --- a/configure +++ b/configure @@ -311,7 +311,6 @@ bsd_user=3D"" pkgversion=3D"" pie=3D"" coroutine=3D"" -tls_priority=3D"NORMAL" plugins=3D"$default_feature" meson=3D"" meson_args=3D"" @@ -939,8 +938,6 @@ for opt do --enable-uuid|--disable-uuid) echo "$0: $opt is obsolete, UUID support is always built" >&2 ;; - --tls-priority=3D*) tls_priority=3D"$optarg" - ;; --disable-vhost-user) vhost_user=3D"no" ;; --enable-vhost-user) vhost_user=3D"yes" @@ -1170,7 +1167,6 @@ Advanced options (experts only): --with-coroutine=3DBACKEND coroutine backend. Supported options: ucontext, sigaltstack, windows --enable-gcov enable test coverage analysis with gcov - --tls-priority default TLS protocol/cipher priority string --enable-plugins enable plugins via shared library loading --disable-containers don't use containers for cross-building @@ -2201,7 +2197,6 @@ if test "$modules" =3D "yes"; then echo "CONFIG_STAMP=3D_$( (echo $qemu_version; echo $pkgversion; cat $0) = | $shacmd - | cut -f1 -d\ )" >> $config_host_mak echo "CONFIG_MODULES=3Dy" >> $config_host_mak fi -echo "CONFIG_TLS_PRIORITY=3D\"$tls_priority\"" >> $config_host_mak =20 if test "$vhost_scsi" =3D "yes" ; then echo "CONFIG_VHOST_SCSI=3Dy" >> $config_host_mak diff --git a/meson.build b/meson.build index 31380f1f2e..f4f518c7b8 100644 --- a/meson.build +++ b/meson.build @@ -1598,6 +1598,7 @@ foreach k : get_option('trace_backends') config_host_data.set('CONFIG_TRACE_' + k.to_upper(), true) endforeach config_host_data.set_quoted('CONFIG_TRACE_FILE', get_option('trace_file')) +config_host_data.set_quoted('CONFIG_TLS_PRIORITY', get_option('tls_priorit= y')) if iasl.found() config_host_data.set_quoted('CONFIG_IASL', iasl.full_path()) endif @@ -3819,7 +3820,7 @@ summary(summary_info, bool_yn: true, section: 'Block = layer support') =20 # Crypto summary_info =3D {} -summary_info +=3D {'TLS priority': config_host['CONFIG_TLS_PRIORITY']} +summary_info +=3D {'TLS priority': get_option('tls_priority')} summary_info +=3D {'GNUTLS support': gnutls} if gnutls.found() summary_info +=3D {' GNUTLS crypto': gnutls_crypto.found()} diff --git a/meson_options.txt b/meson_options.txt index 390701517c..c8e0a10d91 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -14,6 +14,8 @@ option('sphinx_build', type : 'string', value : '', description: 'Use specified sphinx-build for building document') option('iasl', type : 'string', value : '', description: 'Path to ACPI disassembler') +option('tls_priority', type : 'string', value : 'NORMAL', + description: 'Default TLS protocol/cipher priority string') option('default_devices', type : 'boolean', value : true, description: 'Include a default selection of devices in emulators') option('audio_drv_list', type: 'array', value: ['default'], diff --git a/scripts/meson-buildoptions.sh b/scripts/meson-buildoptions.sh index bdaa128ee4..3919eeec0b 100644 --- a/scripts/meson-buildoptions.sh +++ b/scripts/meson-buildoptions.sh @@ -36,6 +36,8 @@ meson_options_help() { printf "%s\n" ' dtrace/ftrace/log/nop/simple/s= yslog/ust)' printf "%s\n" ' --iasl=3DVALUE Path to ACPI disassembler' printf "%s\n" ' --sphinx-build=3DVALUE Use specified sphinx-build f= or building document' + printf "%s\n" ' --tls-priority=3DVALUE Default TLS protocol/cipher = priority string' + printf "%s\n" ' [NORMAL]' printf "%s\n" ' --with-trace-file=3DVALUE Trace file prefix for simple= backend [trace]' printf "%s\n" '' printf "%s\n" 'Optional features, enabled with --enable-FEATURE and' @@ -351,6 +353,7 @@ _meson_option_parse() { --disable-tcg) printf "%s" -Dtcg=3Ddisabled ;; --enable-tcg-interpreter) printf "%s" -Dtcg_interpreter=3Dtrue ;; --disable-tcg-interpreter) printf "%s" -Dtcg_interpreter=3Dfalse ;; + --tls-priority=3D*) quote_sh "-Dtls_priority=3D$2" ;; --enable-tools) printf "%s" -Dtools=3Denabled ;; --disable-tools) printf "%s" -Dtools=3Ddisabled ;; --enable-tpm) printf "%s" -Dtpm=3Denabled ;; --=20 2.35.1