From nobody Mon Feb 9 16:34:57 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=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1602087717; cv=none; d=zohomail.com; s=zohoarc; b=be1tPPMcwszeOYzdvfVDstDaMdZCnea0frtsjq0Eyralu/LyC5AWKYEDlSyHh5LjwZi6+1ldCre7WPItyPo3gkmaxkhsI9bMlQJZrkBmMl5pig0YWVpZ6b10LwlppHrHMZ7m+Kn8twswOlYtDlV5McsGpfFNqtEdAuQHC4Fo0uU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602087717; 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=g9M+cLZqzZD6qLL9uvEMm0RktbZNa4FzWnuD4/zjCec=; b=d4k4KGXCFKshjbtnYTa6GBXEjvzoSieKNCZsLag5kYVmmi4r7fg5mdHI4YbK/9SnZfQKpYbeeNEOJBpPNoudGBK82ZIpySwBaCMs2WWQzAKN+og1z4V5ZydofCvN8hOgg+noadCfmzXcDWEW7oNwI8ObSN5oOdjOkwYxjzj0tvo= ARC-Authentication-Results: i=1; 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 header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1602087717396368.3416769891671; Wed, 7 Oct 2020 09:21:57 -0700 (PDT) Received: from localhost ([::1]:38750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQCCR-0001M5-RA for importer@patchew.org; Wed, 07 Oct 2020 12:21:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQBs1-0005DG-7y for qemu-devel@nongnu.org; Wed, 07 Oct 2020 12:00:49 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:37131) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQBrv-0000sp-0j for qemu-devel@nongnu.org; Wed, 07 Oct 2020 12:00:48 -0400 Received: by mail-wr1-x429.google.com with SMTP id h7so2827314wre.4 for ; Wed, 07 Oct 2020 09:00:42 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id c14sm3254936wrm.64.2020.10.07.09.00.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2020 09:00:38 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 373AD1FF87; Wed, 7 Oct 2020 17:00:38 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=g9M+cLZqzZD6qLL9uvEMm0RktbZNa4FzWnuD4/zjCec=; b=J5OMXGIaTUhNwynMTd/Mn8H+wMlFaq7tTkOOe4tchT0uu+RUHVr86onCqFbB7+bTvR r7A7VaEJA3ndyhFr5frW4pGkDV953fQ0hCUpVW7u+3zWDqGc+Gl3cQML82xRYLdccwx7 ogXyKhaCx8DO/DMBC8brbOLM47XZSJhQzAjHUesRmNxoQSopOlzPhav05NIfdLK7IIcQ T1S1UQyWNYgq/Cbk8y0nIiU4ANpTXTj1W6jsItFreYUbRFuxGEknfYqkiNynpA8/VLEL ZVq4EIq6kyYsdp23mUPAQHrbLjQd85h2trAncrPqGCTcwe3X5v+PVQizFekE4eNpz7XX KLdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=g9M+cLZqzZD6qLL9uvEMm0RktbZNa4FzWnuD4/zjCec=; b=KhJ9wKmXqQxF1AY7yIC7teWkFSHYIypjXR4sliHUutADg6TeFVCm/e8/wv2pK0hDIQ YcsVVgDJWYh6OJXu7Cmcjfn/kPLrwZy7a5mrFpjPboIgV5hLpfnx4+teXRZllORHeVt9 UvDILFlu8Y0TS35drnHs23tpydBZZmotuH29yODYCXJQoHfTHnzVEJkuIT0XpwDr6h+Q ZVR6H2OuaWZKJoRHy8jlMTszFRmkZ748/Xe09oPpZPbLN3X0ulNKSMj1/ZmPMMF+cB8x H5SoyYbWp707BGAHGY1FODM0hbNptqvcsPX+Jxmo0drtsolJPtujbmF7zykWs5prF5Sn xNtw== X-Gm-Message-State: AOAM532RxQLGUAdUepYNG0RcUhPhk8Df1fPjs+lPif72r41cNzAp+dg7 CoVXknHgaVUj2IzkPPyfzj7o+g== X-Google-Smtp-Source: ABdhPJzAEuvYTBMVzsTK8m7+pQ4qb70LUWVM2kyi/uLuyZjVdau0DqlyqmdGBlCBHadtc8m/FQoVGQ== X-Received: by 2002:adf:ed07:: with SMTP id a7mr4538305wro.326.1602086441007; Wed, 07 Oct 2020 09:00:41 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 01/22] configure: fix performance regression due to PIC objects Date: Wed, 7 Oct 2020 17:00:17 +0100 Message-Id: <20201007160038.26953-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201007160038.26953-1-alex.bennee@linaro.org> References: <20201007160038.26953-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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=2a00:1450:4864:20::429; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x429.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, 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 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: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , Ahmed Karaman Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Paolo Bonzini Because most files in QEMU are grouped into static libraries, Meson conserv= atively compiles them with -fPIC. This is overkill and produces slowdowns up to 20= % on some TCG tests. As a stopgap measure, use the b_staticpic option to limit the slowdown to --enable-pie. https://github.com/mesonbuild/meson/pull/7760 will allow us to use b_staticpic=3Dfalse and let Meson do the right thing. Reported-by: Ahmed Karaman Signed-off-by: Paolo Bonzini Message-Id: <20200919155639.1045857-1-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini Signed-off-by: Alex Benn=C3=A9e Message-Id: <20200924092314.1722645-57-pbonzini@redhat.com> --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 28df227db5..b553288c5e 100755 --- a/configure +++ b/configure @@ -7209,6 +7209,7 @@ NINJA=3D${ninja:-$PWD/ninjatool} $meson setup \ -Dwerror=3D$(if test "$werror" =3D yes; then echo true; else echo = false; fi) \ -Dstrip=3D$(if test "$strip_opt" =3D yes; then echo true; else ech= o false; fi) \ -Db_pie=3D$(if test "$pie" =3D yes; then echo true; else echo fals= e; fi) \ + -Db_staticpic=3D$(if test "$pie" =3D yes; then echo true; else ech= o false; fi) \ -Db_coverage=3D$(if test "$gcov" =3D yes; then echo true; else ech= o false; fi) \ -Dmalloc=3D$malloc -Dmalloc_trim=3D$malloc_trim -Dsparse=3D$sparse \ -Dkvm=3D$kvm -Dhax=3D$hax -Dwhpx=3D$whpx -Dhvf=3D$hvf \ --=20 2.20.1