From patchwork Tue Oct 4 13:00:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612225 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp167715pvb; Tue, 4 Oct 2022 06:20:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7c0lguwVLE7gcQRH2pkRsCPFQgHxn/kROygFEKtqUXd/zy7x47g5PfHzR+mRUxqNikzw4c X-Received: by 2002:a05:620a:450f:b0:6ce:1bd4:ec09 with SMTP id t15-20020a05620a450f00b006ce1bd4ec09mr17173750qkp.70.1664889655729; Tue, 04 Oct 2022 06:20:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664889655; cv=none; d=google.com; s=arc-20160816; b=eNbIRcmsYlbhHGlIOfOiZ6f9USDsI/b5cwxhs+rtjnVKdUFEBluJztVLtIMeHK7j0m wKPHnlPQ7s9NScDyCT6Szpf0d4ENIHnhCOJL55g585Y4z9Pf9Xww90wPN3DcLhQUp+Wo 2oKE+zOBExZ/65PSgIUleaMTFre/MqtiOxEXtGMOtX0z5Y6nSXkmdKILABGdVjs1XC3B ID7q6wdEfOEeBZRmDLGL0PNwz68ZqWKaEYD96Q9tndcZbwP3rzTLEtgMF5eEF/vBIZXJ nN54s3nnEW5lZNWlXrRb/UblDdCXVY9B7pBIDPZvjglUY8GSQbmf3PE0VnWoaIPMcaMn vpPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HZNboECUZJqpoKq3p0B5t93PUG2X2lku1/h5Nbn4Lrg=; b=WmutP8PpA+Gr1bqIYGsJeCqiiZGn0kUWmHaWgKS3SbOw0QLbcKOkp0wDh3m3av1Q2O ATPzA1mVB9fnefeH2zifJpYPfKVSU7mve8Ko5NbMRfoRcx0qLCV6OhlDJFa7JpT+KjXQ W+nE8sGaYnCp7yiXoYBUIFK2R7drvsn3suCvQurGC9dZaBAoTEzhy08EG92fH7gEghdP Wul1PfqzWOpsOWCRCW+nDDS/S+doVZ7MUDV7C2fvygwyWM9KXLZtMdE7WnBu+CjfbcJ0 iywjyON91AjQs0WwqbdL+a9KKxzr0hnMa97S4JD0LTVDUIto4sIrr0efTTNy1WHq0PoO sYmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cRchj4eF; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c8-20020ac81e88000000b0035cc9e895d3si5387004qtm.256.2022.10.04.06.20.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:20:55 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cRchj4eF; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:58962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofhqw-0007ty-1u for patch@linaro.org; Tue, 04 Oct 2022 09:20:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhYN-0008FJ-Pz for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:51 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:40691) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhYL-0007MY-K2 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:43 -0400 Received: by mail-wr1-x432.google.com with SMTP id w18so12479932wro.7 for ; Tue, 04 Oct 2022 06:01:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=HZNboECUZJqpoKq3p0B5t93PUG2X2lku1/h5Nbn4Lrg=; b=cRchj4eF7GyXImBSmCYoTZG2EMdUsKefsihZmIZeXaOo+MPmTI9Eicydxn/arl566J 3rnejhQippOfDZocu4jAOg8DclilxJ5Ac9eEafybRohsaJ0l85EwlyfTKSXSwPPPYQ+9 VC52pRZLUWo1VDmX75jBtGOMPLXntGYWtlfO7XtKt2JDj+ukjhlhKXtqkMsIBgzAzFU8 SmENB1lsxAa4tLcshPO/fIWMOK12x/xQ+Yx+JViLCCdp5mTH8XWkjscKiHIMRLil52kg tpiles+JDrCKF2aUZ0Y01EBWguuddEdIlQV/YhOlb0DYbkfuVyzobsSRoTeAc60YQphD LCIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=HZNboECUZJqpoKq3p0B5t93PUG2X2lku1/h5Nbn4Lrg=; b=Q7tVxb1dS2/IQgB3cnu2b0WRrKaEXmSLqEF8yjAdA/EYwRol1muQIOol+tooYhcXyp rzoZ6pBy/27THozCjXweCDLHU3qmvdzdaU7FBu4vfvoOns3IgKwmWAc6Y28XQYNTbBqI 0NfWApUEfsZI4NU/FzCKkIpotR7hB4a4s7PUC8Ami460yxDo2SMaaR6WCqi4OxWhrzKS Du09rCNVKNtAa7euu+J8TmGSX4UdDO9wW2RnK5jePx5sZZg+cyzq/7cuW/4NwGhfu6sH IUOL8b7X+CISHCT+M/otMAl9GSTjC+ZjPsn+5gHVqCMLKECVkAlkc+Zjuxt0Suzhibtf DZFg== X-Gm-Message-State: ACrzQf1fyQoEZBq1HpOmXrb/8loiXcLzqqPpIWOu6CGrTku28fkepfDR WTVGPyJKWfGiwTJebnLW7EEv0w== X-Received: by 2002:adf:e10a:0:b0:22e:3e36:d7ab with SMTP id t10-20020adfe10a000000b0022e3e36d7abmr5711553wrz.232.1664888499724; Tue, 04 Oct 2022 06:01:39 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id t2-20020a5d5342000000b00228692033dcsm12196773wrv.91.2022.10.04.06.01.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:01:39 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 6F1F41FFB8; Tue, 4 Oct 2022 14:01:38 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, "Lucas Mateus Castro (alqotel)" , =?utf-8?q?A?= =?utf-8?q?lex_Benn=C3=A9e?= , =?utf-8?q?Philippe_Ma?= =?utf-8?q?thieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 01/54] scripts/ci/setup: ninja missing from build-environment Date: Tue, 4 Oct 2022 14:00:45 +0100 Message-Id: <20221004130138.2299307-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: "Lucas Mateus Castro (alqotel)" ninja-build is missing from the RHEL environment, so a system prepared with that script would still fail to compile QEMU. Tested on a Fedora 36 Signed-off-by: Lucas Mateus Castro (alqotel) Message-Id: <20220922135516.33627-2-lucas.araujo@eldorado.org.br> Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-2-alex.bennee@linaro.org> diff --git a/scripts/ci/setup/build-environment.yml b/scripts/ci/setup/build-environment.yml index 232525b91d..b5acaf9118 100644 --- a/scripts/ci/setup/build-environment.yml +++ b/scripts/ci/setup/build-environment.yml @@ -153,6 +153,7 @@ - make - mesa-libEGL-devel - nettle-devel + - ninja-build - nmap-ncat - perl-Test-Harness - pixman-devel From patchwork Tue Oct 4 13:00:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612219 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp157999pvb; Tue, 4 Oct 2022 06:07:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM75uKATTUCnUOjb1QcY1a4EJovzJ4phkXNdRsOZuuLB7PDxgsAz0e08Xa/V0vzEwRVi5slf X-Received: by 2002:a67:ab45:0:b0:39d:dfc9:bd5c with SMTP id k5-20020a67ab45000000b0039ddfc9bd5cmr10802751vsh.66.1664888844897; Tue, 04 Oct 2022 06:07:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664888844; cv=none; d=google.com; s=arc-20160816; b=Q8XWU6s0uNBKaPQTsuqLdOkuQ5aO8TV5CRzut0PG9U1cHlC1rP7hiNUEJTl8gzwd9K jnQXUqFgXQSgPqQ0elnI3pSdaVnc4HKDU4qaKyY8hMU55ewsujeQ5UwNkqzigPUKyePv j9HFsbT0OyinAxlrQ5mNYQwRqWnGS8sEtgC+3GK1LWiN6JaVRMGhAm6j71UR1ypUmiv7 ctZsp2rK0+s2lpEYbS7QQ8uWHiOtkFGEUPQnt6Jcio7n97+pe3y+3MRJdv7LvvgI7ZKL VsJfiqUDFN1j1Wcch1OS6RJo/CJ27UpJbpGywHUUmH0vlyEYQmQvldUEBJKPjGGPy3Kr OM4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gQqgg5f/egxvi99aS1qEctCqnWlivYyyMVbQtjrj3sg=; b=uvfuwnRxgeICsqRKTCrEWHUY2amVHrlP/Xq0DQh2357/GWIjQvJAG3ELxn3RiitbRp tjWl604HXv2u1sl4Amsaa4AQvqaIfw70F/5rUWU9EghTlWNBZOriCPwPrBz7q3du8ngx 3qRBI9APZZP3wbf3iV1k9Pct33E7ELxUGs7mZw4FKfz2KLWF7MoUyFzhRIDrIKFSR+Jr lnWh0AeDs1z3+WSyVssa1DbsNp1rMFwjrmGAHnqBOrHv37LEgxJLCDg1abssM8a4z8cw pqGW6Cn8OOB5xCP0uAXF7rXStjyGmK+SiUZhwsyAXAhOrOT8RJWy9qv59Wejv9J1KsME IhuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ztXyn+25; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 131-20020a1f1389000000b003a41a732e87si1324573vkt.70.2022.10.04.06.07.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:07:24 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ztXyn+25; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:40102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofhds-00039v-AF for patch@linaro.org; Tue, 04 Oct 2022 09:07:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhYN-0008FK-T0 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:51 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:40693) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhYL-0007MZ-Ne for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:43 -0400 Received: by mail-wr1-x434.google.com with SMTP id w18so12479967wro.7 for ; Tue, 04 Oct 2022 06:01:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=gQqgg5f/egxvi99aS1qEctCqnWlivYyyMVbQtjrj3sg=; b=ztXyn+25rguDT4HCMDiCINnzU9mP4vm8KjM6cfB4By2ihxDDYL3XKd0D59/b3RVW5N ijVdz5zUy3r2ZSmt4aeBDJULs18IE8Qer3i4kQVf6HnhGh1Xg2w8dzT2KAH/MMwAnCT4 aJtqYXKnYvP5MeHDT5ILPa6m/21hgaJudVwwVzNtaCzkNVpACwyQ4pHz/V3rL1LrlLQq lvPg+uN7N0mZZ33Otm3YXD9RTDLnwumzmpYxSzAcBuw0rOFRDh5FAuUn4bkKZftb6dEQ lXj+VX17P9JkF2fqymi9Y4D8661KhV7PW0QJ2dsSypL9IDaKTqjVx6KsvkzKfnpMHnVk AotQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=gQqgg5f/egxvi99aS1qEctCqnWlivYyyMVbQtjrj3sg=; b=fSjbznjEnBzEO54e8Y1pqmTdoht4ddb0z4c39iLQ3OsxzwgZFhEc6NYIJXF24FdNiF GZYZAqf4yLFEfcPpYPRxOBinALPGwWAUqmYgpCLNsEndsm8S1qQm77At2KEXILSC08a0 85Ta38W8ONYq//L1imOxVH8qfXIIsdrKM9PRaYja0rKix3nX0p+ocvO+Ii4VWV7L8Juw gASrFXCxAE2qRp+K2wAS0XNJys4JM3iukuAL4IbK8tohfqqHE0IR9mfMPyhorsKOLfjN 3lYV1wzh+8Y9NGkqvqAwktWYmxBoHYU2l/rPu1jUN2bkqU7oz5DMtutPMeqhrbckdvFm lvPQ== X-Gm-Message-State: ACrzQf2g+wdvSuYl2mz1fKPTvPeZ4z7cdxlv2LQFKT8Uvq7VgpPxi7cK XMjjZv4MRR86B86A8anXsUtYcg== X-Received: by 2002:a5d:4e09:0:b0:22e:3a03:a860 with SMTP id p9-20020a5d4e09000000b0022e3a03a860mr6853462wrt.289.1664888500102; Tue, 04 Oct 2022 06:01:40 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id l9-20020a056000022900b0022b315b4649sm11998436wrz.26.2022.10.04.06.01.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:01:39 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 866871FFBA; Tue, 4 Oct 2022 14:01:38 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, "Lucas Mateus Castro (alqotel)" , =?utf-8?q?A?= =?utf-8?q?lex_Benn=C3=A9e?= , =?utf-8?q?Philippe_Ma?= =?utf-8?q?thieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 02/54] scripts/ci/setup: Fix libxen requirements Date: Tue, 4 Oct 2022 14:00:46 +0100 Message-Id: <20221004130138.2299307-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x434.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: "Lucas Mateus Castro (alqotel)" XEN hypervisor is only available in ARM and x86, but the yaml only checked if the architecture is different from s390x, changed it to a more accurate test. Tested this change on a Ubuntu 20.04 ppc64le. Signed-off-by: Lucas Mateus Castro (alqotel) Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220922135516.33627-3-lucas.araujo@eldorado.org.br> Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-3-alex.bennee@linaro.org> diff --git a/scripts/ci/setup/build-environment.yml b/scripts/ci/setup/build-environment.yml index b5acaf9118..49292715d3 100644 --- a/scripts/ci/setup/build-environment.yml +++ b/scripts/ci/setup/build-environment.yml @@ -97,7 +97,7 @@ state: present when: - ansible_facts['distribution'] == 'Ubuntu' - - ansible_facts['architecture'] != 's390x' + - ansible_facts['architecture'] == 'aarch64' or ansible_facts['architecture'] == 'x86_64' - name: Install basic packages to build QEMU on Ubuntu 20.04 package: From patchwork Tue Oct 4 13:00:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612233 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp172834pvb; Tue, 4 Oct 2022 06:28:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7dJLcVCDVsxe96dpS6n6ZI3bCGEvLCP7x9pAI2IFQlmoYFq9+6cSidH7xTtrwzZBC2tcZJ X-Received: by 2002:a05:6214:27e4:b0:4ac:a631:f551 with SMTP id jt4-20020a05621427e400b004aca631f551mr19848904qvb.12.1664890121119; Tue, 04 Oct 2022 06:28:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664890121; cv=none; d=google.com; s=arc-20160816; b=UWvnpSKBDAKBtavpxWsrmdZNBYQR/6DfBUY9hj4Sy2itm8yRn2WkSZUDvI/9LU6mjz UCLG77CA4ek0OGGBY8I7pekOisasmMV8StiJBropAj6TVBDfQ6MGdwpqPdQ9UBVGpooa Qhksw7dlJojHO2Zemzu/V5Gah1sbhC2OS4HUalz8F5j7wGqx5A4IvTG5GK26qvCIZS6N Z22E9f8dmK5Xzslyg2CQD/XnXlvQ2Tdg2E7pixq41vJp9w1zZ++4cejN1t0gbj2ZfOwp 6sqj3YY2SbtaOsjPN1ha/FB1oMOwWO+ZNwo+21xBwf9dumzNqpekEtKbgSZIX1qYjA4Y 03tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=aB1kF3qwpcs39ElQH5rD3+kRIa6bkgLvhqm+7ggURIk=; b=ovfe8P2OzJVTxbIlAkgRiV9qpe85r0+tH7TGYK9sbLr6YvubZH6hyCw/O209BI/oiA CjLwZ10qaLfCcoceJKoZvuGzM6Pamo/495ubK7hdmoIWDYcAUh8iYSka1PAYPZclC8ZF 1CVHmeOFCSwlSreHLbI7w4tlkWqgcjvjELvgx3F52YUQRdiEAUmpnyrR7WEjh8ofHRtO pnlJLPEkJH9WcFdNwc4rXnrfgN12Fk2xAcl4fyhbgpfbM8OO1j+v1ZVS/5k4XX2odB9J RyNbVto6chzzsvFmr/v7PRUehHejlDMSPCFcumXhSWqxW41h3Y8F6g4TdN7CUsiDn6eT eqpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qfD1rJLl; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id iw10-20020a0562140f2a00b004b1af2eb4d9si882636qvb.124.2022.10.04.06.28.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:28:41 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qfD1rJLl; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofhyS-0002Wi-LR for patch@linaro.org; Tue, 04 Oct 2022 09:28:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhYR-0008FW-IY for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:52 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:40686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhYM-0007Mk-QO for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:44 -0400 Received: by mail-wr1-x42c.google.com with SMTP id w18so12480081wro.7 for ; Tue, 04 Oct 2022 06:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=aB1kF3qwpcs39ElQH5rD3+kRIa6bkgLvhqm+7ggURIk=; b=qfD1rJLlwaxJz7e4cddk7QSvDATHpUxaSXcGsBl5S+N45mP0JWR7uwAAY0UvR8o+9M K8CQ5709gNb92bCWP6eL2hoL9gMOAeYxTU1cw7pBzidppbZFSz+zTgJiB5HeqWtrnl8A PzgssSvziTWzQavpKjSsxHAef29USPAlEFLhQuIGHTsYcbdch9Xup0b1/74fl1LCweo2 RNhIOjNqHTpiky+r0nk0EIFQPmXTq7cQvwWXZWehmvVBS2f9CSXCBX/TAvvccvUX5btw 4PHHStUAOXRoriALZZGbX1KqLfW31vUhK8KT/8+w0Jz3wHdA5gC8hyabw/lCID5HbjNp SZMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=aB1kF3qwpcs39ElQH5rD3+kRIa6bkgLvhqm+7ggURIk=; b=uqYQDXDuoV5mPSHkoTAtJE1BOJHJSRj9fGgo7pdSDBtyf/Kqqp3mhjLKpNqPXewrfc U8dGUu99tCBdEhxu+zWQXe8x/NOmMahzU1iYyFlORSkrGqbsZz/oR2mk+faxGAq8IOZg X8fxfHvn0uQS16w+q1NL2f9K6YhY3SqiCCFMM92KUR2DrEwFFvxjlN1evFcAzO6Ji7sy xqkXTn6VnS3Wj/rTxQaoWlY5H6oW+DGQv6bi0FQcAyNjQN3rvhytFAJY2lNkdbGGZkv5 6MKrUesuq/fclfgmG/zvwGNnMYaMutEbftFb5QQrONglsdXFgj5j1pN0ih0rRaWcEg4V vkTQ== X-Gm-Message-State: ACrzQf0lLB117m8vCIRrKy+YbDFTvSDSIFwbxMf/h8kU6VS9vITJJQZT 6gXmZevvII03k+HKMveO646ouA== X-Received: by 2002:a5d:43ce:0:b0:22e:4acd:2153 with SMTP id v14-20020a5d43ce000000b0022e4acd2153mr2558796wrr.189.1664888501337; Tue, 04 Oct 2022 06:01:41 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id g20-20020a05600c4ed400b003b4931eb435sm21327563wmq.26.2022.10.04.06.01.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:01:39 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id A0D3F1FFBB; Tue, 4 Oct 2022 14:01:38 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, "Lucas Mateus Castro (alqotel)" , =?utf-8?q?P?= =?utf-8?q?hilippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Alex_Be?= =?utf-8?q?nn=C3=A9e?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 03/54] scripts/ci/setup: spice-server only on x86 aarch64 Date: Tue, 4 Oct 2022 14:00:47 +0100 Message-Id: <20221004130138.2299307-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42c.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: "Lucas Mateus Castro (alqotel)" Changed build-environment.yml to only install spice-server on x86_64 and aarch64 as this package is only available on those architectures. Signed-off-by: Lucas Mateus Castro (alqotel) Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220922135516.33627-4-lucas.araujo@eldorado.org.br> Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-4-alex.bennee@linaro.org> diff --git a/scripts/ci/setup/build-environment.yml b/scripts/ci/setup/build-environment.yml index 49292715d3..b04c2b7cee 100644 --- a/scripts/ci/setup/build-environment.yml +++ b/scripts/ci/setup/build-environment.yml @@ -160,7 +160,6 @@ - python36 - rdma-core-devel - spice-glib-devel - - spice-server - systemtap-sdt-devel - tar - zlib-devel @@ -168,3 +167,14 @@ when: - ansible_facts['distribution_file_variety'] == 'RedHat' - ansible_facts['distribution_version'] == '8' + + - name: Install packages only available on x86 and aarch64 + dnf: + # Spice server not available in ppc64le + name: + - spice-server + state: present + when: + - ansible_facts['distribution_file_variety'] == 'RedHat' + - ansible_facts['distribution_version'] == '8' + - ansible_facts['architecture'] == 'aarch64' or ansible_facts['architecture'] == 'x86_64' From patchwork Tue Oct 4 13:00:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612222 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp163295pvb; Tue, 4 Oct 2022 06:14:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6pqmpYw2KWnyHqNdm36Yp0MGzyhkFFWkJ5wmNUyANFRNBeaUk8g8bGH2pw3pGbt/TqU3pR X-Received: by 2002:ac8:5706:0:b0:35c:bd27:bdd4 with SMTP id 6-20020ac85706000000b0035cbd27bdd4mr19375352qtw.68.1664889251210; Tue, 04 Oct 2022 06:14:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664889251; cv=none; d=google.com; s=arc-20160816; b=zTbjgzaUgQ1vtniW/Q2y2dAZ+6pQqnew39wH4AEoBciQ4JgZKk2HomN1M81TTotiPD m6NJw9Dz9qtxVfNYUCVKHuovaBfd2W5Mn/G0lEI0X7RVVDQ/onqiNzRy/16Cir0M6/8n 1j59tDOsB6GzRbcXRgtbqHwR2Jt5dFfE1hZCPP86wL2NsBUpAAxHSzSjw0h1iAD24I6N 8jgHvQzoZG6cVvjCNnKGzUy+Pqv9iai7G01IGOsMv/u0WOFAjOjKpwB+cc5+m1YVeY8q u4eeOey3st+lAdDufVEgQkeWff1faRKb8iY6UYe/dh3x4kH/4Ju3ioruzlKfSGATTRb3 4szA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VFN4sW6keUVYNwvkm2pyXUk12EUjNrkHvkCTvvRa17I=; b=fbDWNk5bfF00RP3/19RIreSUmCe+WVtXGUsJTsbky5HTj7Z0C46KL3GLIx5b+63p6h 0kk1ilrOo32CkmUo+LcN03BwEo8jvqXywDKN57Vcf1Lc2kYi4bmbhKuv4cITZFRHPK0v F604ZTA3iX4DGDjup0+Qa6b6FlVbZpK3xl2zKE5MoWRlE72twzKRFXgN+ueNl8DxOHyX rqOEpM4TI8oWvh1BwLcW1PAKQhkJnMJgjrswIVw8yMkv86kSPWCgro+FA1M4ZNlWbV20 8pH0qfu9WoVTDmDnrRQ74qTCFffoCiLaTxVMZtjlYcJRp/kBXg4EbOATG/JeqkssCzkI dEZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bJdj78Rk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d24-20020ac85358000000b0034455c168b6si4631341qto.108.2022.10.04.06.14.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:14:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bJdj78Rk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:60924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofhkQ-000277-On for patch@linaro.org; Tue, 04 Oct 2022 09:14:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhYR-0008FY-Kk for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:52 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:41672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhYO-0007Mz-1a for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:46 -0400 Received: by mail-wr1-x42c.google.com with SMTP id bu30so1323412wrb.8 for ; Tue, 04 Oct 2022 06:01:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=VFN4sW6keUVYNwvkm2pyXUk12EUjNrkHvkCTvvRa17I=; b=bJdj78RkWeWqZ//rT4ow5sWgFnUBQIfgKt5dsxgNA8nTQ712iPntEXsNwtU1A7GrfC P+/SWvPBEyypIoGJyUqngzEKdvyFL8cxui6F8EHn3e4uajKh1qfnT+vI9nsKbqiAIdm/ HV0wkJTZdkZRkUWn032qEAL3lH0uwbYQel/hjOON1O2vsujauETB5OhvGJQ9YcYGH8k4 6Ao7etU2WlxlU0n+41qYR8mhOyJlaDaJCzHCxd3NCX3tag090bpTtdj9A+DW88O+mK77 1S/ZEqqhthXj2WLETEZ4j8mbMp2Z25xm6Gs/F99LP1pelmuUaW8WuVwmCdOXDn1NOQ3L BSAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=VFN4sW6keUVYNwvkm2pyXUk12EUjNrkHvkCTvvRa17I=; b=GBsx+t16/ertnozCDXGdisdMDflpde8RIxC/8wcMp1zskPV3RX38L4Ssua3gCp6Lek 57IIo0eYi6kP4cHhiO3xQeeGUwDaLtz+chw+kOc+8DKI2dCSA4D4RgxEYDLExJzqFcuw 2lGhIMrDjNhA1l3O9xCeUgLglygmDQTR21cT02foL2GnyzQpbIAa85c0rHwgRDeof4Yp j5Wa8xWESTNLjSVrQoYyXT6oBT0H4dsyqiLxUeLTfXm4xRwPyRifl7KXC19zsJePKw0E +Nft84jMFoUbw9YbUUkgkgmsbBrEgxd2+GNOWhj4vVPFlAqn42YcKT+MywvxCZ+RLD6I Caog== X-Gm-Message-State: ACrzQf3mb0LGtic5HQ9NDZSgXKgnXJS8BSRo9qqSiQiW1PE5dMkaM4mF wb3+xEZ3NU8jI31Vmva+UlK7w8i5XTawqw== X-Received: by 2002:adf:dbc5:0:b0:22c:c605:3b81 with SMTP id e5-20020adfdbc5000000b0022cc6053b81mr15993686wrj.218.1664888502733; Tue, 04 Oct 2022 06:01:42 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id k25-20020adfd239000000b0022af865810esm12114845wrh.75.2022.10.04.06.01.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:01:40 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B74AF1FFBC; Tue, 4 Oct 2022 14:01:38 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, "Lucas Mateus Castro (alqotel)" , =?utf-8?q?D?= =?utf-8?q?aniel_P_=2E_Berrang=C3=A9?= , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathi?= =?utf-8?q?eu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 04/54] tests/docker: run script use realpath instead of readlink Date: Tue, 4 Oct 2022 14:00:48 +0100 Message-Id: <20221004130138.2299307-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42c.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: "Lucas Mateus Castro (alqotel)" The alpine docker image only comes with busybox, which doesn't have the '-e' option on its readlink, so change it to 'realpath' to avoid that problem. Suggested-by: Daniel P. Berrangé Signed-off-by: Lucas Mateus Castro (alqotel) Message-Id: <20220922135516.33627-5-lucas.araujo@eldorado.org.br> Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-5-alex.bennee@linaro.org> diff --git a/tests/docker/run b/tests/docker/run index 421393046b..9eb96129da 100755 --- a/tests/docker/run +++ b/tests/docker/run @@ -15,7 +15,7 @@ if test -n "$V"; then set -x fi -BASE="$(dirname $(readlink -e $0))" +BASE="$(dirname $(realpath $0))" # Prepare the environment export PATH=/usr/lib/ccache:/usr/lib64/ccache:$PATH From patchwork Tue Oct 4 13:00:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612236 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp176622pvb; Tue, 4 Oct 2022 06:34:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5zh4p+uAoQp3kjOGuKM7jSDluuaSoiKJWTPvdfKCC2pXTrsKVZteWF1/z8veM4CrNMIC0j X-Received: by 2002:ac8:5702:0:b0:35c:bd2e:9cdb with SMTP id 2-20020ac85702000000b0035cbd2e9cdbmr19375612qtw.159.1664890470530; Tue, 04 Oct 2022 06:34:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664890470; cv=none; d=google.com; s=arc-20160816; b=s7VxEHFoxgaTgxPZ2GJXcc5T7cDQ9C7doS/B9OE0rjI0quvSHWLduznv1pjHjMx3nW SOxDFVo96RXV1t5K9PG/UkqvuX3qrTlddMfjREOowHc3dsJM4vKpUNz9HUBmf5cURp3M 0vFPhtTpah6tO94sWGBUGfOOa6/8pSkNBfROOSgCXWbd3rvjFLig8Q08hQbkcYMmjeK/ wfxhwAd61PQilr3C5ivbsDEM+0qv4/5TVQkkvZ4d8JjOmRmVroMyGJWAUEJfgbem9yMj JXqdEMGf+VSbYDlGl/eRO9ifImtCWQxMFib9f1EK9mnPb1LN9IIvM1WLXJUXTtMW4Ndg CzCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=V3TPcbWgxCzQgcPt3UvvKQcfOOtiTYQ3Us+plm0utfM=; b=Y/W4fggjuH+Hl2UzsfoHRDSXI6bg2ZVXoqjQ8ZAxvztLPqyAODdwAyEdQPbvlIoC94 MNlWjFtjQ42W0FZo0zPtxq6POch2CgW6TcHwSpvnstf5NIQBhqf6crhSO+a+Pl0qYVc2 Tw/67JuS+jtovFHy2QnbDi4B5g7KgfYBTE8xlto8nJrU4hlLYjFS6yjrDb8Z0lLjPEVD sHDI/71FwAQ0UQb4mMKKPk84NrGm7aeNCsCh7YncCsROsJRLQnhTHQp7r1007ZVuvK9C 15i1XBe9l4p9DEVyYAQCwpJSgp78dWuLTBRa3jBi+rdAbk9nTiLAyW6Q6PrBmFjaqONC Qq1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eQ+DubxC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id jo24-20020a056214501800b0049732814404si980447qvb.562.2022.10.04.06.34.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:34:30 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eQ+DubxC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:46494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofi45-0008Pe-VZ for patch@linaro.org; Tue, 04 Oct 2022 09:34:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhYZ-0008G7-54 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:56 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:50838) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhYU-0007Ox-HW for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:52 -0400 Received: by mail-wm1-x32b.google.com with SMTP id ay36so8840340wmb.0 for ; Tue, 04 Oct 2022 06:01:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=V3TPcbWgxCzQgcPt3UvvKQcfOOtiTYQ3Us+plm0utfM=; b=eQ+DubxCcYI3klK13zPB9TcwdkQC6Cfq8z7iUQ3ZfvRhTvcNCBYThX/Hav8xc+KAE1 H3Q3lczbQHjeaG+icQ4exK+d7H+sRGWcZshAyKOq5erAuCgkJwEcM3zt4sAkIGMNEDgt Po0TmTeEoNtcAnH7SkGc7T8mAz3qsYJ/4LvqmKnV6iZIgjyR7HQ+Locud7baST8n301B E+i3yPkBzrKi2AJKtNxlEi6hzSFLIwIZ8gkqYE6FAhpuMgnosOrqy1Q/QYFQXgtlDYtd jUWsaCMsdx2SUaCDFcpIMEIVPYF1xjTWnIZINzM9htzJ/18h3GfeTqKZx+Ssa3bUB1RW RQOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=V3TPcbWgxCzQgcPt3UvvKQcfOOtiTYQ3Us+plm0utfM=; b=v9gmP0khRutyBRFW3AeJQLSYBLgqjA01Sc2tFg1WkVjPhz/H42FXH0kYyW/41q0l/p QQhwyCatN+yV3LzhEQx/Mq+opjPgOxL4P0m3HK+CB9vUNoqWHKQoys+UaKzgkYb18q7T 4mtwG1nmdcIF/CgO5b6tK1gYvDViuMUjQxuUyCXE+J2JG7k/e3RLc2xUU4H7QT0Vllx4 LjzlcnPZ1Ip377BkHXsP7KVcW8YFNPbwQDgXZzSIHOIxHmsurmxVeycFw99oOsVFMwjs X+X2tl6NVDIZqApTHX0P07pub6gNtogg3EZrvRjeYM6dtuhzz55kGAjgex7+jhU6/i6T u91g== X-Gm-Message-State: ACrzQf1k0zVid9XUEvZQf6jqyItmltFrKya/ABAg84pVjkmrIdAmPI9t wVr0t8MAYymxDYMViu8gwnGTAg== X-Received: by 2002:a05:600c:2191:b0:3b4:868a:aad3 with SMTP id e17-20020a05600c219100b003b4868aaad3mr10195546wme.112.1664888504289; Tue, 04 Oct 2022 06:01:44 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id r17-20020a05600c459100b003b6b3202e22sm13060293wmo.33.2022.10.04.06.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:01:41 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id CF5001FFBD; Tue, 4 Oct 2022 14:01:38 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PULL 05/54] configure: move detected gdb to TCG's config-host.mak Date: Tue, 4 Oct 2022 14:00:49 +0100 Message-Id: <20221004130138.2299307-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32b.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" When tests/tcg gained it's own config-host.mak we forgot to move the GDB detection. Fixes: 544f4a2578 (tests/tcg: isolate from QEMU's config-host.mak) Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-6-alex.bennee@linaro.org> diff --git a/configure b/configure index dc53e4df03..52ae4adffc 100755 --- a/configure +++ b/configure @@ -2453,6 +2453,8 @@ if test -n "$gdb_bin"; then gdb_version=$($gdb_bin --version | head -n 1) if version_ge ${gdb_version##* } 9.1; then echo "HAVE_GDB_BIN=$gdb_bin" >> $config_host_mak + else + gdb_bin="" fi fi @@ -2537,6 +2539,11 @@ echo "# Automatically generated by configure - do not modify" > $config_host_mak echo "SRC_PATH=$source_path" >> $config_host_mak echo "HOST_CC=$host_cc" >> $config_host_mak +# versioned checked in the main config_host.mak above +if test -n "$gdb_bin"; then + echo "HAVE_GDB_BIN=$gdb_bin" >> $config_host_mak +fi + tcg_tests_targets= for target in $target_list; do arch=${target%%-*} From patchwork Tue Oct 4 13:00:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612221 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp162670pvb; Tue, 4 Oct 2022 06:13:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5IntrEU/miMH8FXyaW6ucV3k0Fb2/q5Iuk2E6Dr5KkNpZc2pThL2PqVQi9+nYfrpF3pGVD X-Received: by 2002:a05:620a:13af:b0:6ce:809e:243a with SMTP id m15-20020a05620a13af00b006ce809e243amr16652597qki.461.1664889199775; Tue, 04 Oct 2022 06:13:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664889199; cv=none; d=google.com; s=arc-20160816; b=i1m4aJXHWWFiuSWcU/2U90HJmGme9Ig7ApWNZz+zyEZvjqSZSmcWSOelYLmJgi26fB 1mzsy7Idw9VcYcLVqldXpfwWZWE5Fbq3gPKtEhSdx8QRUMDzwTzItTDmlQtVD0U0VFmp ryw4PJHasQqqM1g7OWau+z/xz15KOdip12fZD2nOxvSiHfxgOCwlUczyATuKlig3rb9P TWjM7L3aHRyfOuSwby3iuwkanNlz5CgRVzxxKTgSfdNoqEZeZJpsi33DKoSsjdGEpcrs eMqmP2d7X5IyIjtt67rKMYhwz4FH6IrNla1bnJzhbu+0XOTZVnvhq11QeOJR9RGBvphF 1GsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=FBc/8Ox3i5EVjlFI1Uc1wT9J7ZnnN13VLBOmlnz0Obs=; b=MRuq9bD1ywnwXjl11M76V/dFQUB3HiBUHCxofon9ozKVZZXS6mFyYHZtiWCO4DZXVc MdouumzE5lu4OGwTqQHBA03luOJa387S49/H2jNJ01mGCP9sSJR+auiDGlD4/qwjfS5q Ijx5jEaJ8LNsnfqBi35sS5PGgfThTzY2qyLXxeRL1k6MTLGV4MqVxXWKRDI/zT3FKGSi H7XKuPMZH1ZCZf3cWutaUys1R6SJhtRAZVPphoaP6DlaY+Qs7IdeAJ2uy0Cdnoonwnfe qR2p98UO140fPqrcE7GCJvG0dgB951iTf1X2s4RFqFrdJ1kpoIm/oR8xdT1K4+6Iz7V3 2Bxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SJa9f0Kx; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id dz16-20020a05620a2b9000b006e08c39a87dsi279190qkb.188.2022.10.04.06.13.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:13:19 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SJa9f0Kx; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:58804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofhjb-0000KZ-9s for patch@linaro.org; Tue, 04 Oct 2022 09:13:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhYT-0008Fb-53 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:52 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:40578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhYR-0007NX-Dg for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:48 -0400 Received: by mail-wm1-x331.google.com with SMTP id v130-20020a1cac88000000b003bcde03bd44so141628wme.5 for ; Tue, 04 Oct 2022 06:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=FBc/8Ox3i5EVjlFI1Uc1wT9J7ZnnN13VLBOmlnz0Obs=; b=SJa9f0KxxiICQq9ZN0U7hXFoXxLC6AKxIXVeY2Yob7vHBwyk4mEWoGZE+aQEaQYdS1 91TNuxZReCpJKjg50ilhfb2bUT1bGitDYwNXJvbJfrz0GW8rgEXQ6yySF28zxSlCygtp obTGkpb4C6pzoxPYEn+VjSzsmnAxcGx7GcSl1QAhhNPSLbPNmBJMyN+Ugvu0JVdJOneR KIydvwo9UN+Ehct3MprNx8ueQV1iSbd0ehnGNchvKTPc6+MaCRAZpYEttXaSloda+egL 3gmt8h56B8QbfzduUeWHk3R12/aFqEI7mqNfK3/a3ZEuOa5LhzjiDFOzlofAbDb4ojr3 bEig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=FBc/8Ox3i5EVjlFI1Uc1wT9J7ZnnN13VLBOmlnz0Obs=; b=GHboJ4m/4omBasxvoNaXySAlrP8j5IOl0pdsVRgTDc2ipI3BkbJVBZSfOz/ERYpAnn OGrx8DfpNnTkd7L7uYnPmS3w/jkaCHRhv6CfbH+P55lMQQv00YL/dDP0sz0m3ikg0c+G 3Kbr6C+ze09K3rxdXfeEoxsArzeyD6Hl27IoDve8sUoLcuR1aD10uiPPpa7tYibBqiZj 86/1YJlkBSxmITjUmO7tz32vru9zNPCiqIWHVLe4iwM1OMgNb68A+VLc9cGMk6qHZJ0T t3mwXbxtpIo9kSTc40x94qF+0VCOGlSk1TgHr7HAYFmoYHxl80lRdG0D8VolEu1lL5mc fnxA== X-Gm-Message-State: ACrzQf0G9u4kOwV/zrREga0/XgOiruwYXDeryelmH0l9sYatDG38kC7g aiAADYqNLsO3sRYPi6B3P/ptfw== X-Received: by 2002:a05:600c:4256:b0:3b4:7cfc:a626 with SMTP id r22-20020a05600c425600b003b47cfca626mr10352372wmm.187.1664888503718; Tue, 04 Oct 2022 06:01:43 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id f11-20020a05600c154b00b003a3442f1229sm20867356wmg.29.2022.10.04.06.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:01:41 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E53491FFBE; Tue, 4 Oct 2022 14:01:38 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Anton Johansson , Alessandro Di Federico , Paolo Montesel , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 06/54] target/hexagon: add flex/bison/glib2 to qemu.yml Date: Tue, 4 Oct 2022 14:00:50 +0100 Message-Id: <20221004130138.2299307-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Anton Johansson Note, the glib2-native mapping exists separately from the normal glib2 mapping. The latter uses a `foreign` cross-policy-default, and libvirt-ci is not able to support package mappings for multiple cross-compilation policies. This will probably change in the future. Signed-off-by: Alessandro Di Federico Signed-off-by: Paolo Montesel Signed-off-by: Anton Johansson Signed-off-by: Alex Bennée Message-Id: <20220804115548.13024-9-anjo@rev.ng> Message-Id: <20220929114231.583801-7-alex.bennee@linaro.org> diff --git a/tests/lcitool/projects/qemu.yml b/tests/lcitool/projects/qemu.yml index d9f826f8eb..0d92819249 100644 --- a/tests/lcitool/projects/qemu.yml +++ b/tests/lcitool/projects/qemu.yml @@ -3,6 +3,7 @@ packages: - alsa - bash - bc + - bison - brlapi - bzip2 - bzip2-libs @@ -19,6 +20,7 @@ packages: - diffutils - dtrace - findutils + - flex - fuse3 - g++ - gcc @@ -26,6 +28,7 @@ packages: - gettext - genisoimage - glib2 + - glib2-native - glib2-static - glusterfs - gnutls From patchwork Tue Oct 4 13:00:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612229 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp170578pvb; Tue, 4 Oct 2022 06:25:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5EBIjzl2TFl2w3ZobRxEDrog+A9hHRMaPn2tF2dme4cvUEIwkpuljPnHOWjPWfTu+Sa3fi X-Received: by 2002:a05:620a:2907:b0:6ce:80fb:74ca with SMTP id m7-20020a05620a290700b006ce80fb74camr16654458qkp.171.1664889913202; Tue, 04 Oct 2022 06:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664889913; cv=none; d=google.com; s=arc-20160816; b=vMOOczE4LVny/RSZsjNSqrlOq11fLHfdgqp7SQiP0ScAXegS9Wa0IgKL16vibO6A+j sf/4ZPvj7f50tlRwJ5Knrs/DAsadChIJRT9F96dIyDjHsLHo+KG+RzXDlxKoSo/r9ZMb b0DYdN+1+jai8OWewGqWjoJ9NaxNkYNayWu+qCxIksyk14iO0Om3lye5lrtRySEQd3CS iU7pAG57qYftFTAK3WiyQ4IN3uDkvtow2JteOkmLwlkdRUPvznsa5HQjBeRYC2Ileem6 flkz9FyldjsW4ODU+BxTiwH1vw2QH8YItE4q7cDugtsfPYAvqJ+b4+pBCguFyHr+GlEN CjDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YIVJJQvlRiAhMhZzxjqeSiXDlFrZQHrITsFN+iorkzo=; b=tv36mEpVbb4z/nH/nVKreIWkr5KQqRQDsEmVlP0fK/hqzYGA+ulReRZTtEWG9OUNx5 2NyZMUydekIleTlMmAtHzA+hnJeWTdffvhl+BWQVM8lThI0ug0AWfpDQOYd/X5EN5+nC DGc4JOS6i9wIQA3RDaZRpjZIoYNuEl4kOcxDnVCkdDHMzyv/0bFkfS+KBUP9FCRoIUv/ 4CyiRbJnpnEOX+32CCepKMjYi9ed9E0obiYBVKUuQLUsmy6ekGfcE6xz3n8gLAI2AWa4 kFLSbl1bFheC78Bh2aF6fx40LRAcnJHAK4gCJSKuNWswBSkwxbEBsJy/V54J+QJ2sAx1 YCPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Zgg1EGHL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id cr20-20020a05622a429400b0036486c569d2si3258756qtb.651.2022.10.04.06.25.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:25:13 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Zgg1EGHL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:55128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofhv6-0005BT-M8 for patch@linaro.org; Tue, 04 Oct 2022 09:25:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhYU-0008Ff-K4 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:52 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:38675) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhYR-0007Nt-Q2 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:50 -0400 Received: by mail-wr1-x42d.google.com with SMTP id j16so9270655wrh.5 for ; Tue, 04 Oct 2022 06:01:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=YIVJJQvlRiAhMhZzxjqeSiXDlFrZQHrITsFN+iorkzo=; b=Zgg1EGHLbKFpXRExz6aWrswpxOhTsP4Kj0vilZWs9iYNkRlaSQchNp7izlSk3RozF1 9HmJwBzjHZD9qgWTFfz5BY+W0tfS+Tv8EYmd3D0CIDMsvIkqnCjuL6R2NqS3v+a1JOPb eix7N69suE2RJuREe2k2MbOe2Y4z/dzfZVTM4oFhaRRuwkCbSzP/nZZ3ibGFsK5nwnfp pEK0Y6iNwXmWbefjXqL+i9wmCo33147BzxtizdobW7yTe9QnmBJ9rPzDBHTnpBKsdBC/ rO8/cEV4Bq75PPkBWAV7vh9O95wNDTWwN+JNT78/kK4V4GBZpQEvv9dekUW5o2KQFobT 3Jxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=YIVJJQvlRiAhMhZzxjqeSiXDlFrZQHrITsFN+iorkzo=; b=dJwUPzBBNJKt+PPEtD+tjIqKT2p41Vq+p1D1tZhGXWK7kkQYUdK1hrdMKp77323q6y 09bd44oaXW63QOf0HXIjkIzpq9AjBAgLYtyNqfpv3VaqNPke2hJ/fC92L3WPdJG6DGPF lPIOoAID+Iedxk4/NQH7Tj8o8rtV+3I8tR002zenKn1z+Xqa+7icFpqbFcIhecQHbiAz ZBUeUqQPhvpqr3CV4N24xUS6U1u+AKcF1jiWfWcGk673NgnJ6KplPKrj80bVjVKJNEhN 1AXOoV6DTd6K8CZ9w3xakpczoXpA2wl9eaVZ/bD4PiHhBOycZZNxJTNsjCtf50owx1PI a+Ow== X-Gm-Message-State: ACrzQf2f3QsUvOV4cJ6cJp74mzMsRmxoGlzQu4w5bztDPx++re8KZVIw dfmkVtV/x/nEt+aa6Xt67EE5cg== X-Received: by 2002:a05:6000:1842:b0:22a:4d1d:4bd6 with SMTP id c2-20020a056000184200b0022a4d1d4bd6mr15967982wri.603.1664888505720; Tue, 04 Oct 2022 06:01:45 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id e16-20020a05600c2dd000b003b47e8a5d22sm19587239wmh.23.2022.10.04.06.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:01:41 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2EB2A1FFBF; Tue, 4 Oct 2022 14:01:39 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Anton Johansson , =?utf-8?q?Alex_Benn?= =?utf-8?q?=C3=A9e?= , Ed Maste , Li-Wen Hsu , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 07/54] target/hexagon: regenerate docker/cirrus files Date: Tue, 4 Oct 2022 14:00:51 +0100 Message-Id: <20221004130138.2299307-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Anton Johansson This patch updates the docker and cirrus files with the new packages by running tests/lcitool/refresh Signed-off-by: Anton Johansson Signed-off-by: Alex Bennée Message-Id: <20220804115548.13024-10-anjo@rev.ng> Message-Id: <20220929114231.583801-8-alex.bennee@linaro.org> diff --git a/.gitlab-ci.d/cirrus/freebsd-12.vars b/.gitlab-ci.d/cirrus/freebsd-12.vars index 1a5959810f..c3db1d7d30 100644 --- a/.gitlab-ci.d/cirrus/freebsd-12.vars +++ b/.gitlab-ci.d/cirrus/freebsd-12.vars @@ -11,6 +11,6 @@ MAKE='/usr/local/bin/gmake' NINJA='/usr/local/bin/ninja' PACKAGING_COMMAND='pkg' PIP3='/usr/local/bin/pip-3.8' -PKGS='alsa-lib bash bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson ncurses nettle ninja opencv perl5 pixman pkgconf png py39-numpy py39-pillow py39-pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_image snappy spice-protocol tesseract texinfo usbredir virglrenderer vte3 zstd' +PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson ncurses nettle ninja opencv perl5 pixman pkgconf png py39-numpy py39-pillow py39-pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_image snappy spice-protocol tesseract texinfo usbredir virglrenderer vte3 zstd' PYPI_PKGS='' PYTHON='/usr/local/bin/python3' diff --git a/.gitlab-ci.d/cirrus/freebsd-13.vars b/.gitlab-ci.d/cirrus/freebsd-13.vars index 5e5aafd7e5..d31faa787f 100644 --- a/.gitlab-ci.d/cirrus/freebsd-13.vars +++ b/.gitlab-ci.d/cirrus/freebsd-13.vars @@ -11,6 +11,6 @@ MAKE='/usr/local/bin/gmake' NINJA='/usr/local/bin/ninja' PACKAGING_COMMAND='pkg' PIP3='/usr/local/bin/pip-3.8' -PKGS='alsa-lib bash bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson ncurses nettle ninja opencv perl5 pixman pkgconf png py39-numpy py39-pillow py39-pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_image snappy spice-protocol tesseract texinfo usbredir virglrenderer vte3 zstd' +PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson ncurses nettle ninja opencv perl5 pixman pkgconf png py39-numpy py39-pillow py39-pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_image snappy spice-protocol tesseract texinfo usbredir virglrenderer vte3 zstd' PYPI_PKGS='' PYTHON='/usr/local/bin/python3' diff --git a/.gitlab-ci.d/cirrus/macos-11.vars b/.gitlab-ci.d/cirrus/macos-11.vars index bec6e862d4..aee9f50de6 100644 --- a/.gitlab-ci.d/cirrus/macos-11.vars +++ b/.gitlab-ci.d/cirrus/macos-11.vars @@ -11,6 +11,6 @@ MAKE='/usr/local/bin/gmake' NINJA='/usr/local/bin/ninja' PACKAGING_COMMAND='brew' PIP3='/usr/local/bin/pip3' -PKGS='bash bc bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson ncurses nettle ninja perl pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy sparse spice-protocol tesseract texinfo usbredir vde vte3 zlib zstd' +PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson ncurses nettle ninja perl pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy sparse spice-protocol tesseract texinfo usbredir vde vte3 zlib zstd' PYPI_PKGS='PyYAML numpy pillow sphinx sphinx-rtd-theme' PYTHON='/usr/local/bin/python3' diff --git a/tests/docker/dockerfiles/alpine.docker b/tests/docker/dockerfiles/alpine.docker index 806cb19f17..7d6e95275a 100644 --- a/tests/docker/dockerfiles/alpine.docker +++ b/tests/docker/dockerfiles/alpine.docker @@ -13,6 +13,7 @@ RUN apk update && \ attr-dev \ bash \ bc \ + bison \ bzip2 \ bzip2-dev \ ca-certificates \ @@ -30,6 +31,7 @@ RUN apk update && \ dtc-dev \ eudev-dev \ findutils \ + flex \ fuse3-dev \ g++ \ gcc \ diff --git a/tests/docker/dockerfiles/centos8.docker b/tests/docker/dockerfiles/centos8.docker index 3c29883332..d89113c0df 100644 --- a/tests/docker/dockerfiles/centos8.docker +++ b/tests/docker/dockerfiles/centos8.docker @@ -17,6 +17,7 @@ RUN dnf distro-sync -y && \ alsa-lib-devel \ bash \ bc \ + bison \ brlapi-devel \ bzip2 \ bzip2-devel \ @@ -31,6 +32,7 @@ RUN dnf distro-sync -y && \ device-mapper-multipath-devel \ diffutils \ findutils \ + flex \ fuse3-devel \ gcc \ gcc-c++ \ diff --git a/tests/docker/dockerfiles/debian-amd64-cross.docker b/tests/docker/dockerfiles/debian-amd64-cross.docker index 7d2feb7bf7..9047759e76 100644 --- a/tests/docker/dockerfiles/debian-amd64-cross.docker +++ b/tests/docker/dockerfiles/debian-amd64-cross.docker @@ -13,6 +13,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ eatmydata apt-get install --no-install-recommends -y \ bash \ bc \ + bison \ bsdextrautils \ bzip2 \ ca-certificates \ @@ -22,11 +23,13 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ diffutils \ exuberant-ctags \ findutils \ + flex \ gcovr \ genisoimage \ gettext \ git \ hostname \ + libglib2.0-dev \ libpcre2-dev \ libspice-protocol-dev \ llvm \ diff --git a/tests/docker/dockerfiles/debian-amd64.docker b/tests/docker/dockerfiles/debian-amd64.docker index 8d78ba2484..a8b728ca64 100644 --- a/tests/docker/dockerfiles/debian-amd64.docker +++ b/tests/docker/dockerfiles/debian-amd64.docker @@ -13,6 +13,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ eatmydata apt-get install --no-install-recommends -y \ bash \ bc \ + bison \ bsdextrautils \ bzip2 \ ca-certificates \ @@ -23,6 +24,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ diffutils \ exuberant-ctags \ findutils \ + flex \ g++ \ gcc \ gcovr \ diff --git a/tests/docker/dockerfiles/debian-arm64-cross.docker b/tests/docker/dockerfiles/debian-arm64-cross.docker index b7ba2c527f..17a5709245 100644 --- a/tests/docker/dockerfiles/debian-arm64-cross.docker +++ b/tests/docker/dockerfiles/debian-arm64-cross.docker @@ -13,6 +13,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ eatmydata apt-get install --no-install-recommends -y \ bash \ bc \ + bison \ bsdextrautils \ bzip2 \ ca-certificates \ @@ -22,11 +23,13 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ diffutils \ exuberant-ctags \ findutils \ + flex \ gcovr \ genisoimage \ gettext \ git \ hostname \ + libglib2.0-dev \ libpcre2-dev \ libspice-protocol-dev \ llvm \ diff --git a/tests/docker/dockerfiles/debian-armel-cross.docker b/tests/docker/dockerfiles/debian-armel-cross.docker index 9b1778261e..701fc70db0 100644 --- a/tests/docker/dockerfiles/debian-armel-cross.docker +++ b/tests/docker/dockerfiles/debian-armel-cross.docker @@ -13,6 +13,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ eatmydata apt-get install --no-install-recommends -y \ bash \ bc \ + bison \ bsdextrautils \ bzip2 \ ca-certificates \ @@ -22,11 +23,13 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ diffutils \ exuberant-ctags \ findutils \ + flex \ gcovr \ genisoimage \ gettext \ git \ hostname \ + libglib2.0-dev \ libpcre2-dev \ libspice-protocol-dev \ llvm \ diff --git a/tests/docker/dockerfiles/debian-armhf-cross.docker b/tests/docker/dockerfiles/debian-armhf-cross.docker index addbc9a793..5a11fe3900 100644 --- a/tests/docker/dockerfiles/debian-armhf-cross.docker +++ b/tests/docker/dockerfiles/debian-armhf-cross.docker @@ -13,6 +13,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ eatmydata apt-get install --no-install-recommends -y \ bash \ bc \ + bison \ bsdextrautils \ bzip2 \ ca-certificates \ @@ -22,11 +23,13 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ diffutils \ exuberant-ctags \ findutils \ + flex \ gcovr \ genisoimage \ gettext \ git \ hostname \ + libglib2.0-dev \ libpcre2-dev \ libspice-protocol-dev \ llvm \ diff --git a/tests/docker/dockerfiles/debian-mips64el-cross.docker b/tests/docker/dockerfiles/debian-mips64el-cross.docker index 1bb7d8e184..9b90a4d6ff 100644 --- a/tests/docker/dockerfiles/debian-mips64el-cross.docker +++ b/tests/docker/dockerfiles/debian-mips64el-cross.docker @@ -13,6 +13,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ eatmydata apt-get install --no-install-recommends -y \ bash \ bc \ + bison \ bsdextrautils \ bzip2 \ ca-certificates \ @@ -22,11 +23,13 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ diffutils \ exuberant-ctags \ findutils \ + flex \ gcovr \ genisoimage \ gettext \ git \ hostname \ + libglib2.0-dev \ libpcre2-dev \ libspice-protocol-dev \ llvm \ diff --git a/tests/docker/dockerfiles/debian-mipsel-cross.docker b/tests/docker/dockerfiles/debian-mipsel-cross.docker index a94b459b23..02feaf26cb 100644 --- a/tests/docker/dockerfiles/debian-mipsel-cross.docker +++ b/tests/docker/dockerfiles/debian-mipsel-cross.docker @@ -13,6 +13,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ eatmydata apt-get install --no-install-recommends -y \ bash \ bc \ + bison \ bsdextrautils \ bzip2 \ ca-certificates \ @@ -22,11 +23,13 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ diffutils \ exuberant-ctags \ findutils \ + flex \ gcovr \ genisoimage \ gettext \ git \ hostname \ + libglib2.0-dev \ libpcre2-dev \ libspice-protocol-dev \ llvm \ diff --git a/tests/docker/dockerfiles/debian-ppc64el-cross.docker b/tests/docker/dockerfiles/debian-ppc64el-cross.docker index c641fd5d0e..97d3872ee2 100644 --- a/tests/docker/dockerfiles/debian-ppc64el-cross.docker +++ b/tests/docker/dockerfiles/debian-ppc64el-cross.docker @@ -13,6 +13,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ eatmydata apt-get install --no-install-recommends -y \ bash \ bc \ + bison \ bsdextrautils \ bzip2 \ ca-certificates \ @@ -22,11 +23,13 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ diffutils \ exuberant-ctags \ findutils \ + flex \ gcovr \ genisoimage \ gettext \ git \ hostname \ + libglib2.0-dev \ libpcre2-dev \ libspice-protocol-dev \ llvm \ diff --git a/tests/docker/dockerfiles/debian-s390x-cross.docker b/tests/docker/dockerfiles/debian-s390x-cross.docker index c0cbe09e66..95585e9e56 100644 --- a/tests/docker/dockerfiles/debian-s390x-cross.docker +++ b/tests/docker/dockerfiles/debian-s390x-cross.docker @@ -13,6 +13,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ eatmydata apt-get install --no-install-recommends -y \ bash \ bc \ + bison \ bsdextrautils \ bzip2 \ ca-certificates \ @@ -22,11 +23,13 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ diffutils \ exuberant-ctags \ findutils \ + flex \ gcovr \ genisoimage \ gettext \ git \ hostname \ + libglib2.0-dev \ libpcre2-dev \ libspice-protocol-dev \ llvm \ diff --git a/tests/docker/dockerfiles/fedora.docker b/tests/docker/dockerfiles/fedora.docker index b39d311bbc..fe84166ca1 100644 --- a/tests/docker/dockerfiles/fedora.docker +++ b/tests/docker/dockerfiles/fedora.docker @@ -23,6 +23,7 @@ exec "$@"' > /usr/bin/nosync && \ alsa-lib-devel \ bash \ bc \ + bison \ brlapi-devel \ bzip2 \ bzip2-devel \ @@ -37,6 +38,7 @@ exec "$@"' > /usr/bin/nosync && \ device-mapper-multipath-devel \ diffutils \ findutils \ + flex \ fuse3-devel \ gcc \ gcc-c++ \ diff --git a/tests/docker/dockerfiles/opensuse-leap.docker b/tests/docker/dockerfiles/opensuse-leap.docker index 041cf9c1ff..d80064756f 100644 --- a/tests/docker/dockerfiles/opensuse-leap.docker +++ b/tests/docker/dockerfiles/opensuse-leap.docker @@ -12,6 +12,7 @@ RUN zypper update -y && \ alsa-lib-devel \ bash \ bc \ + bison \ brlapi-devel \ bzip2 \ ca-certificates \ @@ -22,6 +23,7 @@ RUN zypper update -y && \ dbus-1 \ diffutils \ findutils \ + flex \ fuse3-devel \ gcc \ gcc-c++ \ diff --git a/tests/docker/dockerfiles/ubuntu2004.docker b/tests/docker/dockerfiles/ubuntu2004.docker index e1f4ed7c80..24594afc15 100644 --- a/tests/docker/dockerfiles/ubuntu2004.docker +++ b/tests/docker/dockerfiles/ubuntu2004.docker @@ -13,6 +13,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ eatmydata apt-get install --no-install-recommends -y \ bash \ bc \ + bison \ bsdmainutils \ bzip2 \ ca-certificates \ @@ -23,6 +24,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ diffutils \ exuberant-ctags \ findutils \ + flex \ g++ \ gcc \ gcovr \ From patchwork Tue Oct 4 13:00:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612224 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp166189pvb; Tue, 4 Oct 2022 06:18:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6DkAZ+qXREk2+EVryqOlPqSh+kb3546ahp1AWJPN/MNMnjjkwRSam95YW1G2tKhYR7AH/Q X-Received: by 2002:ac8:5794:0:b0:35b:fd92:6fae with SMTP id v20-20020ac85794000000b0035bfd926faemr19068021qta.429.1664889508515; Tue, 04 Oct 2022 06:18:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664889508; cv=none; d=google.com; s=arc-20160816; b=ykzC1jqfMMIM1fFbvoUsTWnnSFKPy+P7G7clFGzDAWqip/q10YQXXp4V2sdVMhnPPU vcaRn6XlDmpyBCD07hvesRXlqPDn+P54xBLRxyu3Gi20mVNXFeHCKe/EZIvf0bGJKd33 z21Plg5eVo1arnwkgCGPB7jMKiwkwZi4Dxwvtp0iP0VBHluGVf+QTzEb3pn3OpzvKg/u 0bhFxh7jbLQLgmzpmM8+uQ1NlrxSBWXFFDqQCnWdkOxRNczBMnJehfNIdpVNORrl3oUh /7f/1v/WAEefLfkIEIZAJ5KQ7SiXCYKyfXbA5JVK2bBKEaXtvcnTt5zFNJb3vvvuPnYO g+pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=oFhe2ZA+iPnqPA1iiOwQwqaWQ8b/0eDk96Q44wRc52I=; b=JNe1G6/Gw5BV2YcMtb9E/CH4IXvr1CfYHaGjWqjL32/EJ3anZxNUlQgPF+/qbDhgbs +uiW9CEUCfCOfiiPRz9Hd0AYqVT9D4UyjVkcTlr3pVnFe5dNEipAjEm9/BYngsLLI4aK pMb0HvAiVImxZkhyiLZl69tb4o9/OCEp01VDYiXpQfb11VmxE2MIOY+fJG2jdYaifSFo wk8k5D5nVcQnpikQZL+pl3Jc3ANvQfJ19N/CUYfwzEDODHJ2OUOGC1uuNrGb7Tt+e7Ma HmsmZtouoDJPZdc+9XuyDLwu0sDx5TEorMVRrV47acb1FCswOm4uemV1dlUrPUOCiM/W FjNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oPR3G5h1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m7-20020a05620a24c700b006b95b0a7132si5691168qkn.26.2022.10.04.06.18.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:18:28 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oPR3G5h1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:44656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofhoa-0005s3-03 for patch@linaro.org; Tue, 04 Oct 2022 09:18:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhYU-0008Fe-G4 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:52 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:39681) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhYS-0007Nw-2F for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:50 -0400 Received: by mail-wm1-x336.google.com with SMTP id e10-20020a05600c4e4a00b003b4eff4ab2cso10797216wmq.4 for ; Tue, 04 Oct 2022 06:01:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=oFhe2ZA+iPnqPA1iiOwQwqaWQ8b/0eDk96Q44wRc52I=; b=oPR3G5h1tOI/s1J610gPD06gpOTuVb9dwPsy0tgV5K3x3F0krcrw7aLxVQmg8gFvcB KOHnRmNI0Zroh3pBjt2D8A4QoUtUaghI48W9REKPx68iYZwGVddHwUCw+EtAqGisiKqO KS3KnABHMRB4waDJnxSDK424bNWNhU+69ZPxf7a2kCZLmQa/W1wKKP955ryTV9mYoM49 2z2rhikYi+xp5rnXzvb+aQ8DCLK/hmbioVtAdJH1/KTZCw4wfpg5bw40U85Rp5OFhXPh 8nVcWhkLN2VugddeeMyxMgBTIxdYI5IImqSYD6jzS7JK9jV370NyZvYjLRef9pwSDk8a xLVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=oFhe2ZA+iPnqPA1iiOwQwqaWQ8b/0eDk96Q44wRc52I=; b=mAAUqQoxrkJgyeZqa1fpP1NbPBT7WbbAtD6ZBF5bo+j/wO+8FfVbE1dTP/uszDQDZA eCuJppZdX/uzdHsRIbDI1g/h0G6JHmsjhiYmlFG2e86mkppl6aIilcfi06okLte/Rv9q pGZZDM/+B5h7xt/+4fW7ew0AvHyqB7wTMFY077WCEpzXUZYY2lOw7T1D/ra5AFJvtkAl voy5nBPxnSJlkQyl+WvqL5RJueoNCpMwV6MEtd8RE5bTsoR3tlFIrGnbfznp+K2kVSL+ /kvaEqe5oFaVVUxcYAJoRQ8etVKFyi2aKYibqixpBt0WxIjdOFQRXlOMDelO3wO1zJdX qwCw== X-Gm-Message-State: ACrzQf1sJyPhi6vLtLl/CEsMbQusMcu2f0ONMHrwQ46hYU5ma+w9VAf3 u228JKvZAItU5kqH018ZY3tk3BoxsxnyKw== X-Received: by 2002:a05:600c:3d86:b0:3b4:b65f:a393 with SMTP id bi6-20020a05600c3d8600b003b4b65fa393mr10342600wmb.0.1664888506473; Tue, 04 Oct 2022 06:01:46 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id j1-20020a05600c484100b003a5bd5ea215sm13774774wmo.37.2022.10.04.06.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:01:41 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4EDEF1FFC0; Tue, 4 Oct 2022 14:01:39 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Anton Johansson , =?utf-8?q?Alex_Benn?= =?utf-8?q?=C3=A9e?= , =?utf-8?q?Philippe_Mathieu-Da?= =?utf-8?q?ud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 08/54] target/hexagon: manually add flex/bison/glib2 to remaining containers Date: Tue, 4 Oct 2022 14:00:52 +0100 Message-Id: <20221004130138.2299307-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x336.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Anton Johansson Adds our build-time dependencies to containers which build qemu-hexagon, but aren't covered by libvirt-ci. Signed-off-by: Anton Johansson Signed-off-by: Alex Bennée Message-Id: <20220804115548.13024-11-anjo@rev.ng> Message-Id: <20220929114231.583801-9-alex.bennee@linaro.org> diff --git a/.gitlab-ci.d/windows.yml b/.gitlab-ci.d/windows.yml index ba59844d12..a3e7a37022 100644 --- a/.gitlab-ci.d/windows.yml +++ b/.gitlab-ci.d/windows.yml @@ -33,7 +33,8 @@ msys2-64bit: extends: .shared_msys2_builder script: - .\msys64\usr\bin\bash -lc "pacman -Sy --noconfirm --needed - diffutils git grep make sed + bison diffutils flex + git grep make sed mingw-w64-x86_64-capstone mingw-w64-x86_64-curl mingw-w64-x86_64-cyrus-sasl @@ -67,7 +68,8 @@ msys2-32bit: extends: .shared_msys2_builder script: - .\msys64\usr\bin\bash -lc "pacman -Sy --noconfirm --needed - diffutils git grep make sed + bison diffutils flex + git grep make sed mingw-w64-i686-capstone mingw-w64-i686-curl mingw-w64-i686-cyrus-sasl diff --git a/tests/docker/dockerfiles/debian-riscv64-cross.docker b/tests/docker/dockerfiles/debian-riscv64-cross.docker index 594d97982c..9715791e0b 100644 --- a/tests/docker/dockerfiles/debian-riscv64-cross.docker +++ b/tests/docker/dockerfiles/debian-riscv64-cross.docker @@ -16,13 +16,16 @@ RUN apt update && \ # Install common build utilities RUN DEBIAN_FRONTEND=noninteractive eatmydata apt install -yy \ + bison \ bc \ build-essential \ ca-certificates \ debian-ports-archive-keyring \ dpkg-dev \ + flex \ gettext \ git \ + libglib2.0-dev \ ninja-build \ pkg-config \ python3 diff --git a/tests/docker/dockerfiles/fedora-i386-cross.docker b/tests/docker/dockerfiles/fedora-i386-cross.docker index 0a3ec346e6..7eec648d2d 100644 --- a/tests/docker/dockerfiles/fedora-i386-cross.docker +++ b/tests/docker/dockerfiles/fedora-i386-cross.docker @@ -1,9 +1,11 @@ FROM registry.fedoraproject.org/fedora:34 ENV PACKAGES \ + bison \ bzip2 \ ccache \ diffutils \ + flex \ findutils \ gcc \ git \ diff --git a/tests/docker/dockerfiles/fedora-win32-cross.docker b/tests/docker/dockerfiles/fedora-win32-cross.docker index a06bd29e8e..aca37aabc4 100644 --- a/tests/docker/dockerfiles/fedora-win32-cross.docker +++ b/tests/docker/dockerfiles/fedora-win32-cross.docker @@ -3,13 +3,16 @@ FROM registry.fedoraproject.org/fedora:35 # Please keep this list sorted alphabetically ENV PACKAGES \ bc \ + bison \ bzip2 \ ccache \ diffutils \ findutils \ + flex \ gcc \ gettext \ git \ + glib2-devel \ hostname \ make \ meson \ diff --git a/tests/docker/dockerfiles/fedora-win64-cross.docker b/tests/docker/dockerfiles/fedora-win64-cross.docker index b71624330f..3642766479 100644 --- a/tests/docker/dockerfiles/fedora-win64-cross.docker +++ b/tests/docker/dockerfiles/fedora-win64-cross.docker @@ -3,13 +3,16 @@ FROM registry.fedoraproject.org/fedora:35 # Please keep this list sorted alphabetically ENV PACKAGES \ bc \ + bison \ bzip2 \ ccache \ diffutils \ findutils \ + flex \ gcc \ gettext \ git \ + glib2-devel \ hostname \ make \ meson \ From patchwork Tue Oct 4 13:00:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612243 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp180909pvb; Tue, 4 Oct 2022 06:41:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7WYsp9o8gUq8UqL5mVqkTBDoMx5DY6Ca04zx9iD6CyV3TYZEHJpN4Q4KYBxCoMA3l1ZSXT X-Received: by 2002:a05:6214:2307:b0:46e:5fbc:3c30 with SMTP id gc7-20020a056214230700b0046e5fbc3c30mr19446863qvb.21.1664890899934; Tue, 04 Oct 2022 06:41:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664890899; cv=none; d=google.com; s=arc-20160816; b=kTvwdR1q8Wrlu0XhmCFCOeEZjqRjAQMiDWtCanHAwwBUxeMoeN/x4wPIsy4AjkdIvr duRu0pj35Ywi06UssWeWrgvij1o4tB28FO6CY9tjnv1OO8IjCPhZ0U1yzgagZvCugNsl 7Fy9pRHSrufyVEb67Vgm6iPPCfog2FYO8scTbFVWArN3bV0oLzErAVwkOkLB7LzZlaW1 k7D/tMKMkxXGol+C0InPUAwWmbDc9ry87MjOS1EszGu+ZTBRhm/Nld/8wCBoh2g8f8rK 9GP+9mO0zTL08BP8u+WNw6Bex9PKOl17wBFmvbOA3JEMW0QtDkLNwyf52x8FOX9VBPlf PFOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1FXddyBdk2iWEWuFY7UaFe3N4oqH223nrxD4ygEnH4c=; b=BO2aSDoEoMx/UqQIZADGUJP1DGvrnwNSCgZXakoqIXp9K2+1Z88OplJgl7Nc9OhqSx Kdl4OC1gVSrfv0d7CMt0bGJjxRq9lsUX8i5CBPBFvKdrD0M7+NxKsQEpxHwWX6bpnW08 xPwse2mAJQF94PJk9IQ14zaavX1DouyQoRCT98ISMnnKal0pKLjloMmGDzyWIbudIhkS 54FmlJu2ojtdWdkeXEQk1SMpn0uw65ndu5SxSCWJcH4RGHUqJuz2xyfrLOHMSpcwBnJf 57SHXb+HxIPaL1vPhmOPfyJxqvfvPgkXsmp11U4N2uiQzd/hh98hlTBRVRvx+bmOUw9p d9sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MfSVwOYo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t8-20020a0562140c6800b0049729e5f831si971634qvj.49.2022.10.04.06.41.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:41:39 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MfSVwOYo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:39346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiB1-0003BW-FX for patch@linaro.org; Tue, 04 Oct 2022 09:41:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhYW-0008Fq-4f for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:56 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:40691) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhYT-0007MY-Es for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:51 -0400 Received: by mail-wr1-x432.google.com with SMTP id w18so12480675wro.7 for ; Tue, 04 Oct 2022 06:01:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=1FXddyBdk2iWEWuFY7UaFe3N4oqH223nrxD4ygEnH4c=; b=MfSVwOYoLDn2a9XWnO/597prlv6iKG5AaoZzV36zowIOg6gV6S4v/IffzVHZpUfzt1 OOo93oDT3zqwno1FRycorAnqtPvI8rJS8SvEmnnO1qNHoUGL+5tn+wMDBMAPIzOjZmjs qmRod2mDm5IgG2+ZgMRB99hJwFV9jcISs4IT04JFidSC/kO0y0b/t638UPGN2+68v578 x9Q9lupVhn2WTkCOILeTZGt8rMVlWRggS4KyTZBxXW0Y7Sy0TGDkxU7c80daCOIp1GkF Map4EF394TGW1HQTjkjOY2BTUggwInAmp54IG1liGlhMUioV5MkxLJpUP6dOvJxOGMiM CVBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=1FXddyBdk2iWEWuFY7UaFe3N4oqH223nrxD4ygEnH4c=; b=5fDqj7bKrmV27SpNizjxP4MWslFdmoxaitEjM8bXMVIRobxeHPrhyjmU4qeSsH15TO nPZKxbXl4yeTj7kACFbtWCfFUgeLj276DSbNc8ua6X3QrEiktZZTo2F9eYQrM9Ad++AK 5CNmfqLB4NIjFZVZkbIFapAF6RnO8a2UhGqF2jvmIXHkL9iNc4tn9FkcGHokbfzIh+QO CLm38qb6PUwjq1e87cWX42xKTJ7i/9Uma+hixjdC82M+e/+6Bu389MUwPfTSFSIhPZme 02UpuzgsAClW+s0h3p24yl1PubVXV5YDchd+8U7iVqEyuSaKNoRdG3r9WmK8hnGS+ban ykaw== X-Gm-Message-State: ACrzQf0r5Fb0WpsRljIKrGc5KvRX6e2e3atyb7NmrT8rgLlm5Jc0rcSQ GywzEjj6lkT5metPi+rQd91PNA== X-Received: by 2002:a05:6000:1b06:b0:22c:da6d:b199 with SMTP id f6-20020a0560001b0600b0022cda6db199mr15521517wrz.584.1664888508515; Tue, 04 Oct 2022 06:01:48 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id v1-20020a7bcb41000000b003b27f644488sm14546803wmj.29.2022.10.04.06.01.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:01:43 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 6BBD11FFC1; Tue, 4 Oct 2022 14:01:39 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 09/54] tests/docker: update fedora-win[32|64]-cross with lcitool Date: Tue, 4 Oct 2022 14:00:53 +0100 Message-Id: <20221004130138.2299307-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Convert another two dockerfiles to lcitool and update. I renamed the helper because it is not Debian specific. Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-10-alex.bennee@linaro.org> diff --git a/tests/docker/dockerfiles/fedora-win32-cross.docker b/tests/docker/dockerfiles/fedora-win32-cross.docker index aca37aabc4..11f153e397 100644 --- a/tests/docker/dockerfiles/fedora-win32-cross.docker +++ b/tests/docker/dockerfiles/fedora-win32-cross.docker @@ -1,46 +1,103 @@ +# THIS FILE WAS AUTO-GENERATED +# +# $ lcitool dockerfile --layers all --cross mingw32 fedora-35 qemu +# +# https://gitlab.com/libvirt/libvirt-ci + FROM registry.fedoraproject.org/fedora:35 -# Please keep this list sorted alphabetically -ENV PACKAGES \ - bc \ - bison \ - bzip2 \ - ccache \ - diffutils \ - findutils \ - flex \ - gcc \ - gettext \ - git \ - glib2-devel \ - hostname \ - make \ - meson \ - mingw32-bzip2 \ - mingw32-curl \ - mingw32-glib2 \ - mingw32-gmp \ - mingw32-gnutls \ - mingw32-gtk3 \ - mingw32-libffi \ - mingw32-libjpeg-turbo \ - mingw32-libpng \ - mingw32-libtasn1 \ - mingw32-libusbx \ - mingw32-nettle \ - mingw32-nsis \ - mingw32-pixman \ - mingw32-pkg-config \ - mingw32-SDL2 \ - msitools \ - perl \ - python3 \ - python3-PyYAML \ - tar \ - which +RUN dnf install -y nosync && \ + echo -e '#!/bin/sh\n\ +if test -d /usr/lib64\n\ +then\n\ + export LD_PRELOAD=/usr/lib64/nosync/nosync.so\n\ +else\n\ + export LD_PRELOAD=/usr/lib/nosync/nosync.so\n\ +fi\n\ +exec "$@"' > /usr/bin/nosync && \ + chmod +x /usr/bin/nosync && \ + nosync dnf update -y && \ + nosync dnf install -y \ + bash \ + bc \ + bison \ + bzip2 \ + ca-certificates \ + ccache \ + ctags \ + dbus-daemon \ + diffutils \ + findutils \ + flex \ + gcovr \ + genisoimage \ + git \ + glib2-devel \ + glibc-langpack-en \ + hostname \ + llvm \ + make \ + meson \ + ninja-build \ + nmap-ncat \ + openssh-clients \ + pcre-static \ + perl-base \ + python3 \ + python3-PyYAML \ + python3-numpy \ + python3-opencv \ + python3-pillow \ + python3-pip \ + python3-sphinx \ + python3-sphinx_rtd_theme \ + rpm \ + sed \ + sparse \ + spice-protocol \ + tar \ + tesseract \ + tesseract-langpack-eng \ + texinfo \ + util-linux \ + which && \ + nosync dnf autoremove -y && \ + nosync dnf clean all -y + +ENV LANG "en_US.UTF-8" +ENV MAKE "/usr/bin/make" +ENV NINJA "/usr/bin/ninja" +ENV PYTHON "/usr/bin/python3" +ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" -RUN dnf install -y $PACKAGES -RUN rpm -q $PACKAGES | sort > /packages.txt +RUN nosync dnf install -y \ + mingw32-SDL2 \ + mingw32-SDL2_image \ + mingw32-bzip2 \ + mingw32-curl \ + mingw32-gcc \ + mingw32-gcc-c++ \ + mingw32-gettext \ + mingw32-glib2 \ + mingw32-gnutls \ + mingw32-gtk3 \ + mingw32-libgcrypt \ + mingw32-libjpeg-turbo \ + mingw32-libpng \ + mingw32-libtasn1 \ + mingw32-nettle \ + mingw32-nsis \ + mingw32-pixman \ + mingw32-pkg-config && \ + nosync dnf clean all -y && \ + rpm -qa | sort > /packages.txt && \ + mkdir -p /usr/libexec/ccache-wrappers && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-w64-mingw32-c++ && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-w64-mingw32-cc && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-w64-mingw32-g++ && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-w64-mingw32-gcc -# Specify the cross prefix for this image (see tests/docker/common.rc) +ENV ABI "i686-w64-mingw32" +ENV MESON_OPTS "--cross-file=/usr/share/mingw/toolchain-mingw32.meson" ENV QEMU_CONFIGURE_OPTS --cross-prefix=i686-w64-mingw32- +ENV DEF_TARGET_LIST i386-softmmu diff --git a/tests/docker/dockerfiles/fedora-win64-cross.docker b/tests/docker/dockerfiles/fedora-win64-cross.docker index 3642766479..8938c28554 100644 --- a/tests/docker/dockerfiles/fedora-win64-cross.docker +++ b/tests/docker/dockerfiles/fedora-win64-cross.docker @@ -1,43 +1,102 @@ +# THIS FILE WAS AUTO-GENERATED +# +# $ lcitool dockerfile --layers all --cross mingw64 fedora-35 qemu +# +# https://gitlab.com/libvirt/libvirt-ci + FROM registry.fedoraproject.org/fedora:35 -# Please keep this list sorted alphabetically -ENV PACKAGES \ - bc \ - bison \ - bzip2 \ - ccache \ - diffutils \ - findutils \ - flex \ - gcc \ - gettext \ - git \ - glib2-devel \ - hostname \ - make \ - meson \ - mingw32-nsis \ - mingw64-bzip2 \ - mingw64-curl \ - mingw64-glib2 \ - mingw64-gmp \ - mingw64-gtk3 \ - mingw64-libffi \ - mingw64-libjpeg-turbo \ - mingw64-libpng \ - mingw64-libtasn1 \ - mingw64-libusbx \ - mingw64-pixman \ - mingw64-pkg-config \ - msitools \ - perl \ - python3 \ - python3-PyYAML \ - tar \ - which +RUN dnf install -y nosync && \ + echo -e '#!/bin/sh\n\ +if test -d /usr/lib64\n\ +then\n\ + export LD_PRELOAD=/usr/lib64/nosync/nosync.so\n\ +else\n\ + export LD_PRELOAD=/usr/lib/nosync/nosync.so\n\ +fi\n\ +exec "$@"' > /usr/bin/nosync && \ + chmod +x /usr/bin/nosync && \ + nosync dnf update -y && \ + nosync dnf install -y \ + bash \ + bc \ + bison \ + bzip2 \ + ca-certificates \ + ccache \ + ctags \ + dbus-daemon \ + diffutils \ + findutils \ + flex \ + gcovr \ + genisoimage \ + git \ + glib2-devel \ + glibc-langpack-en \ + hostname \ + llvm \ + make \ + meson \ + ninja-build \ + nmap-ncat \ + openssh-clients \ + pcre-static \ + perl-base \ + python3 \ + python3-PyYAML \ + python3-numpy \ + python3-opencv \ + python3-pillow \ + python3-pip \ + python3-sphinx \ + python3-sphinx_rtd_theme \ + rpm \ + sed \ + sparse \ + spice-protocol \ + tar \ + tesseract \ + tesseract-langpack-eng \ + texinfo \ + util-linux \ + which && \ + nosync dnf autoremove -y && \ + nosync dnf clean all -y + +ENV LANG "en_US.UTF-8" +ENV MAKE "/usr/bin/make" +ENV NINJA "/usr/bin/ninja" +ENV PYTHON "/usr/bin/python3" +ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" -RUN dnf install -y $PACKAGES -RUN rpm -q $PACKAGES | sort > /packages.txt +RUN nosync dnf install -y \ + mingw64-SDL2 \ + mingw64-SDL2_image \ + mingw64-bzip2 \ + mingw64-curl \ + mingw64-gcc \ + mingw64-gcc-c++ \ + mingw64-gettext \ + mingw64-glib2 \ + mingw64-gnutls \ + mingw64-gtk3 \ + mingw64-libgcrypt \ + mingw64-libjpeg-turbo \ + mingw64-libpng \ + mingw64-libtasn1 \ + mingw64-nettle \ + mingw64-pixman \ + mingw64-pkg-config && \ + nosync dnf clean all -y && \ + rpm -qa | sort > /packages.txt && \ + mkdir -p /usr/libexec/ccache-wrappers && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-c++ && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-cc && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-g++ && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-gcc -# Specify the cross prefix for this image (see tests/docker/common.rc) -ENV QEMU_CONFIGURE_OPTS --cross-prefix=x86_64-w64-mingw32- --disable-capstone +ENV ABI "x86_64-w64-mingw32" +ENV MESON_OPTS "--cross-file=/usr/share/mingw/toolchain-mingw64.meson" +ENV QEMU_CONFIGURE_OPTS --cross-prefix=x86_64-w64-mingw32- +ENV DEF_TARGET_LIST x86_64-softmmu diff --git a/tests/lcitool/refresh b/tests/lcitool/refresh index fc604d8a21..783497a989 100755 --- a/tests/lcitool/refresh +++ b/tests/lcitool/refresh @@ -93,7 +93,7 @@ debian11_extras = [ ] -def debian_cross_build(prefix, targets): +def cross_build(prefix, targets): conf = "ENV QEMU_CONFIGURE_OPTS --cross-prefix=%s\n" % (prefix) targets = "ENV DEF_TARGET_LIST %s\n" % (targets) return "".join([conf, targets]) @@ -121,45 +121,55 @@ try: # generate_dockerfile("debian-amd64-cross", "debian-11", cross="x86_64", - trailer=debian_cross_build("x86_64-linux-gnu-", - "x86_64-softmmu," - "x86_64-linux-user," - "i386-softmmu,i386-linux-user")) + trailer=cross_build("x86_64-linux-gnu-", + "x86_64-softmmu," + "x86_64-linux-user," + "i386-softmmu,i386-linux-user")) generate_dockerfile("debian-arm64-cross", "debian-11", cross="aarch64", - trailer=debian_cross_build("aarch64-linux-gnu-", - "aarch64-softmmu,aarch64-linux-user")) + trailer=cross_build("aarch64-linux-gnu-", + "aarch64-softmmu,aarch64-linux-user")) generate_dockerfile("debian-armel-cross", "debian-11", cross="armv6l", - trailer=debian_cross_build("arm-linux-gnueabi-", - "arm-softmmu,arm-linux-user,armeb-linux-user")) + trailer=cross_build("arm-linux-gnueabi-", + "arm-softmmu,arm-linux-user,armeb-linux-user")) generate_dockerfile("debian-armhf-cross", "debian-11", cross="armv7l", - trailer=debian_cross_build("arm-linux-gnueabihf-", - "arm-softmmu,arm-linux-user")) + trailer=cross_build("arm-linux-gnueabihf-", + "arm-softmmu,arm-linux-user")) generate_dockerfile("debian-mips64el-cross", "debian-11", cross="mips64el", - trailer=debian_cross_build("mips64el-linux-gnuabi64-", - "mips64el-softmmu,mips64el-linux-user")) + trailer=cross_build("mips64el-linux-gnuabi64-", + "mips64el-softmmu,mips64el-linux-user")) generate_dockerfile("debian-mipsel-cross", "debian-11", cross="mipsel", - trailer=debian_cross_build("mipsel-linux-gnu-", - "mipsel-softmmu,mipsel-linux-user")) + trailer=cross_build("mipsel-linux-gnu-", + "mipsel-softmmu,mipsel-linux-user")) generate_dockerfile("debian-ppc64el-cross", "debian-11", cross="ppc64le", - trailer=debian_cross_build("powerpc64le-linux-gnu-", - "ppc64-softmmu,ppc64-linux-user")) + trailer=cross_build("powerpc64le-linux-gnu-", + "ppc64-softmmu,ppc64-linux-user")) generate_dockerfile("debian-s390x-cross", "debian-11", cross="s390x", - trailer=debian_cross_build("s390x-linux-gnu-", - "s390x-softmmu,s390x-linux-user")) + trailer=cross_build("s390x-linux-gnu-", + "s390x-softmmu,s390x-linux-user")) + + generate_dockerfile("fedora-win32-cross", "fedora-35", + cross="mingw32", + trailer=cross_build("i686-w64-mingw32-", + "i386-softmmu")) + + generate_dockerfile("fedora-win64-cross", "fedora-35", + cross="mingw64", + trailer=cross_build("x86_64-w64-mingw32-", + "x86_64-softmmu")) # # Cirrus packages lists for GitLab From patchwork Tue Oct 4 13:00:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612220 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp161403pvb; Tue, 4 Oct 2022 06:11:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4cAsnl5L0HgddLXa0Gfw5tnaBxKTK2UcewPwephLHYKJ6lR8+XV1DtOEvNlW3DCP/ND4Oc X-Received: by 2002:a37:395:0:b0:6cd:cca6:4b8a with SMTP id 143-20020a370395000000b006cdcca64b8amr15959953qkd.573.1664889085516; Tue, 04 Oct 2022 06:11:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664889085; cv=none; d=google.com; s=arc-20160816; b=qvQnNKxW4/JOS2+v0Hw4Qp9v/ZL64i1UupHE8cYNW6fLvtdXlKtFQRKY42gFGH+hkD f0coOD8i4frfdL2q1FN4/q+cLP0RmMBAq4xMEmYpa1GLlhx/Ri3RVY0yFGIZ76dtykrs kOfuzT8GWE5MNqV7ippxupE5haM8LMyuYP+Wf3ia+JbiuoqXQdJz16PR5Fz9XSOUHuPd 1m5mBvJkujGRh+YU0QbLwgKWsP/VUusqv4peYqqZcBgbkEJIFCbaJXSlWFnojYgjH+va r1tWmsWFcKlAfb02iGVTyTxq2B5mnT3foM0MxXp0Q7lUh6wX6TxVyLc1ySR0/fJJOFqK 6z0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+ctSIgYDmkKQSBMUMssIqhbHvoTOeaqBn4W9+UBmASc=; b=kuaMVwV/LZPxEa2F0+QHmGJ9nH9FZgjjhudnFTb1qYd7ml163M6Tk0PpbDjJM1QrIZ gVdwjXXXlX+pJ+47i+PeLOhJwbpo51bWSOLOzVXb0irj2ZQBCfMJUvZK/G61caHg1oM3 3yT6ObanbxXoY12Zq41ctSY5++hRrgqyg1oh9/bYq84ecozRLRRGXQdurHrpYkZ7t4oe mG+zEriZvM7F/THjOn70x/VOAjWIcadEEx5VbXvoafAZ31EVG7+bvcErmHXi40QmvkSh 0QtYsCHrL/Sz95EjnkDom+jQqsOSRwfCCrU++mAApmBEsXfgtLfTCDRlXauZMKqElwKn 47vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pVPI46SN; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m68-20020a37bc47000000b006b9a5678ceasi4747067qkf.719.2022.10.04.06.11.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:11:25 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pVPI46SN; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:42044 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofhhk-0006KU-1j for patch@linaro.org; Tue, 04 Oct 2022 09:11:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhYZ-0008G9-J9 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:56 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:42887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhYV-0007P9-Ct for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:52 -0400 Received: by mail-wr1-x42d.google.com with SMTP id b7so13595811wrq.9 for ; Tue, 04 Oct 2022 06:01:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=+ctSIgYDmkKQSBMUMssIqhbHvoTOeaqBn4W9+UBmASc=; b=pVPI46SNfpBEm6dtDGX+N2rfUlefuy/6K7xqRh8pgm3wYfX3ST7H9TO1H+0ICjw+qr 3gBFRJdT6CENu1NRJ+S7bCyau4SEy3gd2KQ1BP+04bjeF2K8cOlQQHG44fy++5Jh8czJ nPhqFV7GGewmDYim3Kdc0J0v0vot3Tv/vazYfpP2cSNGWAt/w82YWGEezhfkRBr/UzGg iKu+4pwHyAwdDgqp/6BmgVVR6X3ZNS+hOiyHPQnljGudpp8fsJOLeHZHEKSX3kb6ZQPo curPvpistWxbsEYiGVIFOJbSkQxHlOof8CAzR6zuSUmTcWmR53Z5iZWSM15unVxeglNV 2m5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=+ctSIgYDmkKQSBMUMssIqhbHvoTOeaqBn4W9+UBmASc=; b=zxD3SmbmHwRMYtGEmNtxcfQPvco9sK8IP/z5RDgUsvZu6L7DuvKNwj9x8AqLapW1Vq QNCtmMciHeDlQJRJMd/ImngAQ+uMFk45NEuAh+OLR33EKLlcehwLrAXBky8QrJ3pCGkG B04hrfnGUeb2fqqnBpIuoWVTa9pte/UoPtdaboM2K+BZvZYKb22eib7MG648OMa2JQNe brIK5frM1kxyVr/YwvxAz9+QNocgBBic2a4/vfZb99TIFohn8/F9/sCbhnKTeZ7mHN6i S83paFtdBpfVv2vSYCLAEGH8t5kWkXYeouYCzFQD82aExc6Tws98mTuxpqqtCiBNvAJo txzw== X-Gm-Message-State: ACrzQf0HmoseZnnjXmL159dD8o39RSzjJSqp4tYTsRoRqRZPir3fLg87 aXtJDC8l9wQnXtsTmOM+ErBA0j/7x2IlrQ== X-Received: by 2002:adf:d0d0:0:b0:22d:f735:4730 with SMTP id z16-20020adfd0d0000000b0022df7354730mr12510924wrh.297.1664888509930; Tue, 04 Oct 2022 06:01:49 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id e18-20020adff352000000b0022cdb687bf9sm15755154wrp.0.2022.10.04.06.01.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:01:43 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 855951FFC2; Tue, 4 Oct 2022 14:01:39 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 10/54] tests/docker: move alpine from edge to tagged release Date: Tue, 4 Oct 2022 14:00:54 +0100 Message-Id: <20221004130138.2299307-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Tracking alpine-edge like debian-sid is a moving target. Usually such rolling releases are marked as "allow_failure: true" in our CI. However as alpine presents a musl based distro and provides useful extra coverage lets track a release branch instead to avoid random breakages. Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth Message-Id: <20220929114231.583801-11-alex.bennee@linaro.org> diff --git a/tests/docker/dockerfiles/alpine.docker b/tests/docker/dockerfiles/alpine.docker index 7d6e95275a..9b7541261a 100644 --- a/tests/docker/dockerfiles/alpine.docker +++ b/tests/docker/dockerfiles/alpine.docker @@ -1,10 +1,10 @@ # THIS FILE WAS AUTO-GENERATED # -# $ lcitool dockerfile --layers all alpine-edge qemu +# $ lcitool dockerfile --layers all alpine-316 qemu # # https://gitlab.com/libvirt/libvirt-ci -FROM docker.io/library/alpine:edge +FROM docker.io/library/alpine:3.16 RUN apk update && \ apk upgrade && \ diff --git a/tests/lcitool/refresh b/tests/lcitool/refresh index 783497a989..ce0b24c0b1 100755 --- a/tests/lcitool/refresh +++ b/tests/lcitool/refresh @@ -107,7 +107,7 @@ try: # # Standard native builds # - generate_dockerfile("alpine", "alpine-edge") + generate_dockerfile("alpine", "alpine-316") generate_dockerfile("centos8", "centos-stream-8") generate_dockerfile("debian-amd64", "debian-11", trailer="".join(debian11_extras)) From patchwork Tue Oct 4 13:00:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612223 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp164681pvb; Tue, 4 Oct 2022 06:16:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5zEUOyd//VmPHPw/AWkdpYPgP4HdEJXV7GjAFnmEFXJ9AaNvF89kzKOivTX5GMFZoHwWD6 X-Received: by 2002:a05:620a:988:b0:6cf:33cd:2be2 with SMTP id x8-20020a05620a098800b006cf33cd2be2mr16775777qkx.527.1664889371082; Tue, 04 Oct 2022 06:16:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664889371; cv=none; d=google.com; s=arc-20160816; b=pQz7wwUxjaSYbaH7UT2yPVlV9pIWVeUjDrkptIDfBe3Q4mXiJhyHSyPL5ZinnhwSbP bx4pn50LIceKc2d1nD2IpWjMq1CaE4okRN4Yet+KU8FcUQb5suM9Q8gf6FSmL76HKCcF /waWrrMT4EorvjPfT0B0hUlLUXoR11r7wSQ6xiTG5Xh8pYmo4Q4ORyjps0FsYb8vRMnv EXo5L8QE4SppFsoc+rjhfNM2wXW5MEZ6Fn50CYryWjPTi+Drz0/g0r236010lQnSzFHC avWq5uaWJF8GsutC+TkWlXtS5ew7Z0ztBsZxdbDSKZylSKFwHsUHcHPbBW4WFp+43hjs Fxdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=BaHnxjvMW4fTyPvIodljy6k1DRCBm9AVpyaepMnYPJs=; b=escsNPR63oDWmyUBiNT5w+s0olfnhdpQ0z9vc6dTSgoQywBQEagrInhxOjKWjrsjqh 59jom4TJrq2C6vpSaNw4jCrsPx7EoZ+LXp2xRxMFe4dqjMMGQHMGZBQvPqFeJ3iZSwwa fP2eUiWQ2WaJn+8xfK0o8QKowKQUshigMASvhaMNJLfncYSekO9xF4LdDwxSLLaJwJ81 cfP+NKgtp4JmcME4OUpN15/pT1B/a0DF/0TzcuwnGbGwCAgD8rI4TqQG6rLjKn7miUzX XYyxzURN0bp5e2qEli9TljWD1sQuXV1uo+oZqGZdHFj90/RT8nCM1YP0okGWnFEvUrcq 6aig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XdkOfEtr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s2-20020a0562140ca200b004af9816850csi996837qvs.194.2022.10.04.06.16.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:16:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XdkOfEtr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:55230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofhmM-0003TH-KC for patch@linaro.org; Tue, 04 Oct 2022 09:16:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40492) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhYa-0008GA-HX for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:56 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:39802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhYW-0007PR-E2 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:56 -0400 Received: by mail-wr1-x430.google.com with SMTP id f11so18561930wrm.6 for ; Tue, 04 Oct 2022 06:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=BaHnxjvMW4fTyPvIodljy6k1DRCBm9AVpyaepMnYPJs=; b=XdkOfEtr1cHXCVh0FqZD/w/eD5A3p7Xywrj5y4naHcMng4Q/tfolb9ves4/Eg5zMa5 SmhOQNS/JQwG02HRnhioASzR/Oi/atTzFErLZHw385Gy3i/+TDQno0SEzqccCw6ArZb0 bwvFumkfJuacc3N3CdDSfOj+W/1kNVx0dtkNBgsxpQJJSdd2eEeEVnhm6XcOjIkzxaBj saqMfjk0fg32lznzFBLumbGrkdyztVAK/11hYXFziddq8Vm0qaevJcnBQwwq9qDvrvMi MZ2DQ8iFg5Q1bH+zSRI3WeWpZaO88mGtNFkeOplMkAmu6Itb4BgMPRuu7nVdgKL0nNvz hubg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=BaHnxjvMW4fTyPvIodljy6k1DRCBm9AVpyaepMnYPJs=; b=2pC8kMLPmB/r0W/ji2wHK8x926A9mbyr3CaoEGZoLu0OXRt/IdE/so2ofxUIhEAbZo hZkZRzc5qKbjMhSc5CDKeNhdC7v/Ph2/pWG/h3QMCpIX2h6bRIVo8z+JSXSbu8xru4aa wzDIcB6W5ileCtHisNlNKOcel5/CZ9kIushfSwYlhSfu0V1fxLs0KBuzCeiwcvxZZ3Bj 1JxXU2QWZBG19BYAr9ksQSZSwZU6uFVDRMNkSoq99idQuomJlPG79Xph9gWsOztnQQtV 7wDZAObHvQCAdGhfeHp95a7cKOsa/3FDBsCnH+l/U2TVCABvhUcdfH6gJPleIZXddPOH cu4Q== X-Gm-Message-State: ACrzQf1i1thGRN6bnwWoudnqCvgTK30DoTshhiCg0sIa/evRauxIFQV9 MRjKOBrguXDW6zAvoI3/UlTUvA== X-Received: by 2002:a05:6000:156b:b0:22a:a83a:d349 with SMTP id 11-20020a056000156b00b0022aa83ad349mr16481632wrz.277.1664888511012; Tue, 04 Oct 2022 06:01:51 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id q11-20020adf9dcb000000b0022ac672654dsm12818823wre.58.2022.10.04.06.01.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:01:46 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9E5E61FFC3; Tue, 4 Oct 2022 14:01:39 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Thomas Huth , Paolo Bonzini , Laurent Vivier Subject: [PULL 11/54] tests/qtest: bump up QOS_PATH_MAX_ELEMENT_SIZE Date: Tue, 4 Oct 2022 14:00:55 +0100 Message-Id: <20221004130138.2299307-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x430.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" It seems the depth of stack we need to support can vary depending on the order of the init constructors getting called. It seems --enable-lto shuffles things around just enough to push you over the limit. Signed-off-by: Alex Bennée Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1186 Acked-by: Thomas Huth Acked-by: Paolo Bonzini Message-Id: <20220929114231.583801-12-alex.bennee@linaro.org> diff --git a/tests/qtest/libqos/qgraph.h b/tests/qtest/libqos/qgraph.h index 6e94824d09..5c0046e989 100644 --- a/tests/qtest/libqos/qgraph.h +++ b/tests/qtest/libqos/qgraph.h @@ -24,7 +24,7 @@ #include "libqos-malloc.h" /* maximum path length */ -#define QOS_PATH_MAX_ELEMENT_SIZE 50 +#define QOS_PATH_MAX_ELEMENT_SIZE 64 typedef struct QOSGraphObject QOSGraphObject; typedef struct QOSGraphNode QOSGraphNode; From patchwork Tue Oct 4 13:00:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612218 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp157248pvb; Tue, 4 Oct 2022 06:06:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM62TR0KYzt066eO4UurA85PGn4tWeJo5LSqYcykA5XAhhab9TdZXWlzbLCnxGJJCMadzTiT X-Received: by 2002:a05:620a:45a2:b0:6ce:d846:f29e with SMTP id bp34-20020a05620a45a200b006ced846f29emr16743437qkb.267.1664888786441; Tue, 04 Oct 2022 06:06:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664888786; cv=none; d=google.com; s=arc-20160816; b=rI/+Aiz0JArmwHZbancidMHLMifSPGvZksd1+9l4OgLyR8RVhE7ku08/YaLe1pxsw4 aodRjebMG9JKduacBFR2WapCDXXUzlGknM4+Z2aUzrKNn6Zw5viDtICbAwYlzjPkqneB 9s4n5vDlpILtMx9Ii6zV+59jn+KLdLkkgM+fwS50sjv4klORD7cDiNhNcHwzbAx9kUeV X2VSdwID+XgkN68qOWWVF6z4yPnPOm1eQWBuooafhweDKZ6yZ/NlcjIiK67AjqQiMH/1 14zBVOFLPDR0T3WhEYKsJgKveYpDTKlsNxh1pLmAjoWTXxuYhLqrgABq+A4d/ioYQ/Tk lfUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MYX77RmAB2pRbiH9/2ZtNvCyCgj6eq+jErJpHagEy7g=; b=mhsF9CTZdC7NrcCXULh5mYef9xh/xOvQgmPglqj+U6AdTDbsN13GZx/QTuMzbbX2Or zumsJdJT9frrYnS60+lvRbw7ArPE3ZxcfeK16ct7ft/Gf5PBEqP3HU+VBd8Hm6ReU+ds IWb5/CzdFfGGwaXJqq7AiZ84v9cWeE8racqS8G/vibVnJktq5NSfM3YL5/D5/p6emRGR 6u1evhfxSfWp/CE/NVT5Ka/U9eMEfD21Xhw2RlWZzSO5eTp/iNTWvgs/SkBECjm8xB4l h7oK3iMjDyvsAlo2BDTfVaTtwApBljm++l9nyJNP3pHnBYcuop9VBAjM38PQVe9WxD4+ u3hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V7xwQPuK; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c16-20020ac87d90000000b0035d42e1ffd3si5583100qtd.84.2022.10.04.06.06.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:06:26 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V7xwQPuK; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:53074 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofhcv-00018s-UN for patch@linaro.org; Tue, 04 Oct 2022 09:06:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhYU-0008Fd-GO for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:52 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:42891) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhYS-0007O6-7X for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:50 -0400 Received: by mail-wr1-x432.google.com with SMTP id b7so13595567wrq.9 for ; Tue, 04 Oct 2022 06:01:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=MYX77RmAB2pRbiH9/2ZtNvCyCgj6eq+jErJpHagEy7g=; b=V7xwQPuKVFpcBWbg1aqC8qwlE8cofAIBkZ4V7GvpFkvPLaAV3BOZ7c8BaPCNTtDKt7 EjX54uTHlntFbnLpoYeL5X2k5YFrels2TrWNyyzw3U4nUhWSG6wnN5xYdEvymM1pQjeg 9KVJVvCuelxVSxjVwDIoD/qaf64nIsGIIDie3Iop5SLIlMOCpPKUus9wnILxHDGtC1GC Ok5k992Q0TpCUdqhdK9V+f5nr2y8WnJrjLGVCnlQ2tKu9Mu8cPSkMaFWkgYb74H/dFq7 H7jUqCQcFvnwqSxLTMUCH06D6mDMfY8IlWm7KizLKJ/rg/zqCIBlWHn7vNEiJS3WD509 L8lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=MYX77RmAB2pRbiH9/2ZtNvCyCgj6eq+jErJpHagEy7g=; b=IKps0JOZeuqQETapIb1UCot8+xL/4uQOOuIGe3iO39y49OTlQ+yuyckI5MaU9GTKKy wPh5qFT7HYSQ/ScLosxW9Lkd+ga7j8oVaYlJN62yk0hlCFNqBPyZoV1b42rzfVZw0suk GvkCyvd+IAwlKG75ZTKVGrr+D7cfTKwO/LcAuzJfGLTCE/ineoD5pn422s5IpfiIcTE7 H9Vgk+jnKjRbgKTODEDf8+V9yW1iLl7qtTUi1UrXxOmw/qAt4L48YMlQ/fJ1gHU4aJUB FKWCPvO4Js0LrfhzQR1pn03kyxmA7CptE85HQLIEXQ5MENKrrIzYV/9fg3dy/3vv5oaf j17g== X-Gm-Message-State: ACrzQf0n9BUgPi865piOXp+EQo3O14zFEUED1HBI2omRX99CIs4xFZzk 9qNJhVszli0kJgwamnM84kg52Q== X-Received: by 2002:adf:e109:0:b0:225:4ca5:80d5 with SMTP id t9-20020adfe109000000b002254ca580d5mr15893420wrz.465.1664888506980; Tue, 04 Oct 2022 06:01:46 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id bn23-20020a056000061700b0022e55f40bc7sm1204321wrb.82.2022.10.04.06.01.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:01:46 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B5F4A1FFC4; Tue, 4 Oct 2022 14:01:39 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= Subject: [PULL 12/54] configure: do not invoke as/ld directly for pc-bios/optionrom Date: Tue, 4 Oct 2022 14:00:56 +0100 Message-Id: <20221004130138.2299307-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Just use using the compiler binary, with -nostdlib in the case of the linker; the compiler driver (whether i686-*-gcc, or x86_64-*-gcc with the -m32 option) will then pick the right magic option to as and ld. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-13-alex.bennee@linaro.org> diff --git a/configure b/configure index 52ae4adffc..aaa09fb957 100755 --- a/configure +++ b/configure @@ -2298,23 +2298,11 @@ probe_target_compiler i386-softmmu if test -n "$target_cc" && test "$targetos" != "darwin" && test "$targetos" != "sunos" && \ test "$targetos" != "haiku" && test "$softmmu" = yes ; then - # Different host OS linkers have different ideas about the name of the ELF - # emulation. Linux and OpenBSD/amd64 use 'elf_i386'; FreeBSD uses the _fbsd - # variant; OpenBSD/i386 uses the _obsd variant; and Windows uses i386pe. - for emu in elf_i386 elf_i386_fbsd elf_i386_obsd i386pe; do - if "$target_ld" -verbose 2>&1 | grep -q "^[[:space:]]*${emu}[[:space:]]*$"; then - ld_i386_emulation="$emu" - break - fi - done - if test -n "$ld_i386_emulation"; then - roms="pc-bios/optionrom" - config_mak=pc-bios/optionrom/config.mak - echo "# Automatically generated by configure - do not modify" > $config_mak - echo "TOPSRC_DIR=$source_path" >> $config_mak - echo "LD_I386_EMULATION=$ld_i386_emulation" >> $config_mak - write_target_makefile >> $config_mak - fi + roms="pc-bios/optionrom" + config_mak=pc-bios/optionrom/config.mak + echo "# Automatically generated by configure - do not modify" > $config_mak + echo "TOPSRC_DIR=$source_path" >> $config_mak + write_target_makefile >> $config_mak fi probe_target_compiler ppc-softmmu diff --git a/pc-bios/optionrom/Makefile b/pc-bios/optionrom/Makefile index e90ca2e1c6..3e06c11dea 100644 --- a/pc-bios/optionrom/Makefile +++ b/pc-bios/optionrom/Makefile @@ -20,28 +20,24 @@ override CFLAGS += $(call cc-option, -fcf-protection=none) # Flags for dependency generation override CPPFLAGS += -MMD -MP -MT $@ -MF $(@D)/$(*F).d -override CFLAGS += $(filter -W%, $(QEMU_CFLAGS)) override CFLAGS += $(call cc-option, -fno-pie) +override CFLAGS += $(call cc-option, -no-pie) override CFLAGS += -ffreestanding -I$(TOPSRC_DIR)/include override CFLAGS += $(call cc-option, -fno-stack-protector) override CFLAGS += $(call cc-option, -Wno-array-bounds) -Wa = -Wa, -override ASFLAGS += -32 -override CFLAGS += $(call cc-option, $(Wa)-32) - -override LDFLAGS = -m $(LD_I386_EMULATION) -T $(SRC_DIR)/flat.lds +override LDFLAGS = -nostdlib -Wl,-T,$(SRC_DIR)/flat.lds pvh.img: pvh.o pvh_main.o %.o: %.S - $(call quiet-command,$(CC) $(CPPFLAGS) -E -o - $< | $(AS) $(ASFLAGS) -o $@,"AS","$@") + $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<,"AS","$@") %.o: %.c $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@,"CC","$@") %.img: %.o - $(call quiet-command,$(LD) $(LDFLAGS) -s -o $@ $^,"BUILD","$@") + $(call quiet-command,$(CC) $(CFLAGS) $(LDFLAGS) -s -o $@ $^,"BUILD","$@") %.raw: %.img $(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@,"BUILD","$@") From patchwork Tue Oct 4 13:00:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612228 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp169656pvb; Tue, 4 Oct 2022 06:23:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6/p+VbANsVngTh0jzHioQAjhflkxILtd116UFjc33xplszbwA8au+FDYgyjElyDN+e/HJT X-Received: by 2002:ac8:5c8c:0:b0:35d:4c5:7e2a with SMTP id r12-20020ac85c8c000000b0035d04c57e2amr19419083qta.293.1664889825718; Tue, 04 Oct 2022 06:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664889825; cv=none; d=google.com; s=arc-20160816; b=EPUUEsOFhpHnd5POF2fhWebMnN4S2zrtj5KzLvOn5pv86cjgYw9d1SvbQri/vG92nS 8khZ+CABpZqF4Oc/t5kOq3bWh4qrZXNNzvb06MT9K/SH/NapP/BEcBcD8rgpDKwYWQri ppbhHHJhw19nPEKzSMKtOVNeYYTuViJrpay50/Z3astOAlc6oO9B0eCfs8XNWpjt1u94 Yt+46tAHcdLZIeHMiKCXtSefRE3wk7dZLAz0w+V4gqSnT1EgTEri3C2mW/5YWmPEnlPl VFi4Yo+xqKp3oCYeaUiWrx4Nk2CzrM0tuTIypGx1ZeRJecZleUFgxLgZ1joqeYVsd6il sJTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8QMsgeIatFeOsU7rOIV2h+ocmtxm0p2LUfAd++X9wdY=; b=M110jd7E66a01a0cAdKn3AnfA/lEOWFwdqpU9+zPfQxwmz35ux9U+Dx2xqykdIfr6N 7dQMFFzkTcUzR4S2FYeTeoETDZhmAu+s9JMkzpAc1tVV0dQdGWzLFdEzjnQViyHzbMWB sc93Hrn446UUC3Kpwa/3zWLPXyqQ0q7oVujLUFuFOUVimWL0p0pzKdqRyfQYzNUf67De K/7S7ecGILkKcjCaeVDSDDUiDBgFNVLUYLPqxh7HRIC5yxk9gYnRAhnqFwZw28SZwYRP v6+aHeYb7hxrkfHD8iRL/yYKqvKXbnwExDi6zrfYfkAt5bdu54r8H6a9EUhXLwLCqJCr DQag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="T/JF7L1y"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id gc10-20020a05622a59ca00b003436ed07723si4747238qtb.261.2022.10.04.06.23.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:23:45 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="T/JF7L1y"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:44994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofhth-0003Ag-43 for patch@linaro.org; Tue, 04 Oct 2022 09:23:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhYb-0008I0-1j for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:57 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:44031) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhYY-0007Ph-Sk for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:56 -0400 Received: by mail-wr1-x42e.google.com with SMTP id n12so1624756wrp.10 for ; Tue, 04 Oct 2022 06:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=8QMsgeIatFeOsU7rOIV2h+ocmtxm0p2LUfAd++X9wdY=; b=T/JF7L1ykf9wIqIndd5D+iwHRuwv/7OBDBabb8R0Crj5+6A/qmz1oj2JG/iWmBqXqc VKCwinHrVkrHXDJfJ4AQHYprcfY4ZDBaXQpdGw5PHrBpXZZYZuUcLcko7aAz7CvgyQ3W YcKP22lBiGebkXztyPGBF67N0gxkrjqqBTlgvj9xNTm8056xtnMMm2XmUMkd6mc6+mVi tIRj2CY+H9deWFGL0KtF2KC4eSgwTqx+LtAC/xFyWaYTX/d6JrhcLTEQ7w7QV5GI4GKn DGyZ5EqPvn+DAoIO3oKHpbuJ6a9fpT5Zt03g5GDWNZ+/mvLMqac49Bl5RKiteeHdM9p0 Ypgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=8QMsgeIatFeOsU7rOIV2h+ocmtxm0p2LUfAd++X9wdY=; b=uKyLdvsMtumqoLj6XMqGilQ9Arsm63qUEFk36OhTlOVchtGeULAbvNofHtWn3A4uZU 1HPf6M9XiHq9HxFUaUbDw9GXCjlatF4SxyYzy6D5WiBF5e5aD/sAVJoHxlo5dKnVUqXy +mNnFFwe/2VBOsHvYpEgAfkD8iUsQnz/8Dx91IbsS3Hgbz7wc1u40elpNLSIF+IO5rul wfsP/ixDVefJlHL3eLco12hQDGku6e+ndRNSEVVsMDj2pe5uZsHumjHP+dh51gaoevnK rnkxKJWfsLf6vpsJtazPjZu6+SMLSy27xkZBqkf29h7K4pGHKZW4biAQxoccVmL7Qrbr 6hIQ== X-Gm-Message-State: ACrzQf10q/2tLge3A+fkc2VPAsHEorh9pLbt1TbRspG8DwKsn2EBlFA6 6hb18tGYxHu34Kdao2maZbsBHZGWSDe1Nw== X-Received: by 2002:a5d:6d0a:0:b0:22e:3f3a:5cdf with SMTP id e10-20020a5d6d0a000000b0022e3f3a5cdfmr5067378wrq.156.1664888511826; Tue, 04 Oct 2022 06:01:51 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id bw18-20020a0560001f9200b00226dedf1ab7sm6930003wrb.76.2022.10.04.06.01.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:01:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id CC15C1FFB8; Tue, 4 Oct 2022 14:01:39 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= Subject: [PULL 13/54] pc-bios/optionrom: detect CC options just once Date: Tue, 4 Oct 2022 14:00:57 +0100 Message-Id: <20221004130138.2299307-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42e.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini In preparation for adding Docker container support, detect compiler options just once rather than once per Make run; container startup overhead is substantial and doing the detection just once makes things faster. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-14-alex.bennee@linaro.org> diff --git a/pc-bios/optionrom/Makefile b/pc-bios/optionrom/Makefile index 3e06c11dea..f514e4f84b 100644 --- a/pc-bios/optionrom/Makefile +++ b/pc-bios/optionrom/Makefile @@ -8,23 +8,33 @@ all: multiboot.bin multiboot_dma.bin linuxboot.bin linuxboot_dma.bin kvmvapic.bi CFLAGS = -O2 -g -quiet-command = $(if $(V),$1,$(if $(2),@printf " %-7s %s\n" $2 $3 && $1, @$1)) -cc-option = $(if $(shell $(CC) $1 -c -o /dev/null -xc /dev/null >/dev/null 2>&1 && echo OK), $1, $2) - -override CFLAGS += -march=i486 -Wall $(EXTRA_CFLAGS) -m16 +NULL := +SPACE := $(NULL) # +TARGET_PREFIX := $(patsubst %/,%:$(SPACE),$(TARGET_DIR)) -# If -fcf-protection is enabled in flags or compiler defaults that will -# conflict with -march=i486 -override CFLAGS += $(call cc-option, -fcf-protection=none) +quiet-@ = $(if $(V),,@) +quiet-command = $(if $(V),$1,$(if $(2),@printf " %-7s %s\n" $2 $3 && $1, @$1)) # Flags for dependency generation override CPPFLAGS += -MMD -MP -MT $@ -MF $(@D)/$(*F).d -override CFLAGS += $(call cc-option, -fno-pie) -override CFLAGS += $(call cc-option, -no-pie) +override CFLAGS += -march=i486 -Wall $(EXTRA_CFLAGS) -m16 override CFLAGS += -ffreestanding -I$(TOPSRC_DIR)/include -override CFLAGS += $(call cc-option, -fno-stack-protector) -override CFLAGS += $(call cc-option, -Wno-array-bounds) + +cc-test = $(CC) -Werror $1 -c -o /dev/null -xc /dev/null >/dev/null 2>/dev/null +cc-option = if $(call cc-test, $1); then \ + echo "$(TARGET_PREFIX)$1 detected" && echo "override CFLAGS += $1" >&3; else \ + echo "$(TARGET_PREFIX)$1 not detected" $(if $2,&& echo "override CFLAGS += $2" >&3); fi + +# If -fcf-protection is enabled in flags or compiler defaults that will +# conflict with -march=i486 +config-cc.mak: Makefile + $(quiet-@)($(call cc-option,-fcf-protection=none); \ + $(call cc-option,-fno-pie); \ + $(call cc-option,-no-pie); \ + $(call cc-option,-fno-stack-protector); \ + $(call cc-option,-Wno-array-bounds)) 3> config-cc.mak +-include config-cc.mak override LDFLAGS = -nostdlib -Wl,-T,$(SRC_DIR)/flat.lds @@ -50,7 +60,10 @@ include $(wildcard *.d) clean: rm -f *.o *.d *.raw *.img *.bin *~ +distclean: + rm -f config-cc.mak + # suppress auto-removal of intermediate files .SECONDARY: -.PHONY: all clean +.PHONY: all clean distclean From patchwork Tue Oct 4 13:00:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612232 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp172805pvb; Tue, 4 Oct 2022 06:28:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7GcPO82WQMA2McZ1gj68hQzm7mMUbby8L6NilZsuhK/9gTL0kkESUONSjsAcPm+jLl9UNV X-Received: by 2002:a05:622a:1820:b0:35b:d0d4:13b9 with SMTP id t32-20020a05622a182000b0035bd0d413b9mr19622720qtc.236.1664890118396; Tue, 04 Oct 2022 06:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664890118; cv=none; d=google.com; s=arc-20160816; b=lk81PpxalwshhDhoX8dwyaheERfDjAY6KUohJCkJ2cRNiNgj5I4wwgEajf4wCIfVA7 mTFosMLI0s3V286oZQDqlIJC9su18vib7ai3RG64z2oG6cdXJtYx0ctebotaWNv1Uyvg Dfz2ceelBF1SQUXt1VGVtHxcTDZEFQmqwQPPiOEL9gg/lgx5eLoSibbhgzVFvZpaiU5g HAkz5bDSFQ5cErhm75Opb0gl8hP9nTvb3111/5g60p5c/YnP+g0O9IC4Q0PvUPYsLY8k M4lJiyxvCA1i5tCG4Hinh0vd3zlRwF7he+NWqV4L8xvHaUt8OJINWuN5th8us7+tsaD7 Hb5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wr0Q2zD37EOoCA1/I23rxfY9vRGimGsqv7veJ+10hbQ=; b=QRhbpuJNOIt7b6Zorq6dVSyFag12lCaH4YEcgj28gbIGH3qY/pVKktlSystkLzYsaV ZCZTwBp1Y4YfxdX12IviVM9yFovZquhYfQtNIWvVNSdjp4ugWIzkD0fDRnw1WhXev410 niY8wpEEoZJ/8gwTBXrGB6cLSx5CyklTSQ1u3YszfqbqW4nb+ExqI2N19YGbJmbnF8x0 1Wkoe0VNSouEWACQoCXHCjl/Gmhwa5b03nZOKGc7vz46bdEjPBYhYMF+RhsR4YHUdlsN 7OpPyFm4TJ4D7CQVKieHzm5Zr99mVbuJgykZNvevNIVJHgOpuKI/JMMPFMbw9Fk37bAZ nqYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="CGw2D/nx"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q9-20020ad45ca9000000b004b17f9650f6si888175qvh.486.2022.10.04.06.28.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:28:38 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="CGw2D/nx"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofhyP-0002Lw-UF for patch@linaro.org; Tue, 04 Oct 2022 09:28:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhYd-0008L3-5K for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:59 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:38675) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhYZ-0007Nt-U8 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:57 -0400 Received: by mail-wr1-x42d.google.com with SMTP id j16so9271381wrh.5 for ; Tue, 04 Oct 2022 06:01:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=wr0Q2zD37EOoCA1/I23rxfY9vRGimGsqv7veJ+10hbQ=; b=CGw2D/nxUmRmC3t2Ru5zT+o8Bxu5ry//kmUJgvoIrYVHHaYYj7kbf2/zE/Mw96aGsm V3AGi8ZMEFtsHa7Mu6S13OglZRbysNGW+lHPSO2BEXoB3mNsxbvRed30va50fTAXa4uD 04R/AQGPnTEgzEA+eaYHXuNr4zYRJx2xEDlnoSD1nTW4zLzwTV0EZZ4qo7jL0Gzw3wis uW08yjBrzwF4LC+fJVxFhWkKh1G/Dbyyc9Gzn68dfdjTjy9efmEAhjHMdhpRIDnIo1S4 giuK9MVY3jRQWgTa/uyn1Y2zPAGaYqw3TmiHRw3p+yOk0nr7yWCLc6ynariYN4cMt+IQ bzag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=wr0Q2zD37EOoCA1/I23rxfY9vRGimGsqv7veJ+10hbQ=; b=aJK0N7ABMHWKX/pVwOYPVyNnD9hcvbKm4f8OMnpf2XZkVM/QBoowwTxSqngGJXnuET GVW71fxvguSDNSVMO3y0BKWGlrCwg5ZHuL6d6XWnr6ENuL+vwtKJF4SePH0r5hpVkTbl crfJVjvSCJLbBfA7e4SpomK0JS74wHZqnItJJS9fHuNIDB5kU2fYg9u7uUfGFvRXNt8B ntCrAltHhub0G0RuTUoM/ZTz36SsCC69Y59rQWKzmxDBN2H7Oy0R2+x4z4xPz2jHX07C ysLDCR7xp2V8nW1ibzYOF1kBAKOujW5uyUtn1xp3/6X/9wUYboMH6QAKOdVHAmH3xR6O DdEg== X-Gm-Message-State: ACrzQf3iT/qOMf/uUyGmBPCg1Oe0MvCFiUUbSI3yuFHIomo1AlVGhPwU RBQvhCXSkk/sWQTtMNjT8NQghWgbKQLluA== X-Received: by 2002:adf:ef4f:0:b0:22d:d3ae:18df with SMTP id c15-20020adfef4f000000b0022dd3ae18dfmr11731058wrp.141.1664888515152; Tue, 04 Oct 2022 06:01:55 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id f5-20020adfdb45000000b0022cc6b8df5esm12344146wrj.7.2022.10.04.06.01.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:01:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E561F1FFC5; Tue, 4 Oct 2022 14:01:39 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , Christian Borntraeger , Thomas Huth , Cornelia Huck , qemu-s390x@nongnu.org (open list:S390-ccw boot) Subject: [PULL 14/54] pc-bios/s390-ccw: detect CC options just once Date: Tue, 4 Oct 2022 14:00:58 +0100 Message-Id: <20221004130138.2299307-15-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini In preparation for adding Docker container support, detect compiler options just once rather than once per Make run; container startup overhead is substantial and doing the detection just once makes things faster. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-15-alex.bennee@linaro.org> diff --git a/pc-bios/s390-ccw/netboot.mak b/pc-bios/s390-ccw/netboot.mak index 7639da194c..ee59a5f4de 100644 --- a/pc-bios/s390-ccw/netboot.mak +++ b/pc-bios/s390-ccw/netboot.mak @@ -16,12 +16,9 @@ s390-netboot.elf: $(NETOBJS) libnet.a libc.a s390-netboot.img: s390-netboot.elf $(call quiet-command,$(STRIP) --strip-unneeded $< -o $@,"STRIP","$(TARGET_DIR)$@") -# SLOF is GCC-only, so ignore warnings about GNU extensions with Clang here -NO_GNU_WARN := $(call cc-option,-Werror $(QEMU_CFLAGS),-Wno-gnu) - # libc files: -LIBC_CFLAGS = $(EXTRA_CFLAGS) $(CFLAGS) $(NO_GNU_WARN) $(LIBC_INC) $(LIBNET_INC) \ +LIBC_CFLAGS = $(EXTRA_CFLAGS) $(CFLAGS) $(LIBC_INC) $(LIBNET_INC) \ -MMD -MP -MT $@ -MF $(@:%.o=%.d) CTYPE_OBJS = isdigit.o isxdigit.o toupper.o @@ -55,7 +52,7 @@ libc.a: $(LIBCOBJS) LIBNETOBJS := args.o dhcp.o dns.o icmpv6.o ipv6.o tcp.o udp.o bootp.o \ dhcpv6.o ethernet.o ipv4.o ndp.o tftp.o pxelinux.o -LIBNETCFLAGS = $(EXTRA_CFLAGS) $(CFLAGS) $(NO_GNU_WARN) $(LIBC_INC) $(LIBNET_INC) \ +LIBNETCFLAGS = $(EXTRA_CFLAGS) $(CFLAGS) $(LIBC_INC) $(LIBNET_INC) \ -DDHCPARCH=0x1F -MMD -MP -MT $@ -MF $(@:%.o=%.d) %.o : $(SLOF_DIR)/lib/libnet/%.c diff --git a/pc-bios/s390-ccw/Makefile b/pc-bios/s390-ccw/Makefile index c8784c2a08..965e633f43 100644 --- a/pc-bios/s390-ccw/Makefile +++ b/pc-bios/s390-ccw/Makefile @@ -6,9 +6,12 @@ include config-host.mak CFLAGS = -O2 -g MAKEFLAGS += -rR +NULL := +SPACE := $(NULL) # +TARGET_PREFIX := $(patsubst %/,%:$(SPACE),$(TARGET_DIR)) + +quiet-@ = $(if $(V),,@) quiet-command = $(if $(V),$1,$(if $(2),@printf " %-7s %s\n" $2 $3 && $1, @$1)) -cc-option = $(if $(shell $(CC) $1 $2 -S -o /dev/null -xc /dev/null \ - >/dev/null 2>&1 && echo OK),$2,$3) VPATH_SUFFIXES = %.c %.h %.S %.m %.mak %.sh %.rc Kconfig% %.json.in set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN) $1))) @@ -25,22 +28,33 @@ QEMU_DGFLAGS = -MMD -MP -MT $@ -MF $(@D)/$(*F).d $(call quiet-command,$(CCAS) $(EXTRA_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) \ -c -o $@ $<,"CCAS","$(TARGET_DIR)$@") -.PHONY : all clean build-all +.PHONY : all clean build-all distclean OBJECTS = start.o main.o bootmap.o jump2ipl.o sclp.o menu.o \ virtio.o virtio-scsi.o virtio-blkdev.o libc.o cio.o dasd-ipl.o -EXTRA_CFLAGS := $(EXTRA_CFLAGS) -Wall -EXTRA_CFLAGS += $(call cc-option,-Werror $(EXTRA_CFLAGS),-Wno-stringop-overflow) +EXTRA_CFLAGS += -Wall EXTRA_CFLAGS += -ffreestanding -fno-delete-null-pointer-checks -fno-common -fPIE EXTRA_CFLAGS += -fwrapv -fno-strict-aliasing -fno-asynchronous-unwind-tables -EXTRA_CFLAGS += $(call cc-option, $(EXTRA_CFLAGS), -fno-stack-protector) -EXTRA_CFLAGS += $(call cc-option, $(EXTRA_CFLAGS), -Wno-array-bounds) EXTRA_CFLAGS += -msoft-float -EXTRA_CFLAGS += $(call cc-option, $(EXTRA_CFLAGS),-march=z900,-march=z10) EXTRA_CFLAGS += -std=gnu99 LDFLAGS += -Wl,-pie -nostdlib +cc-test = $(CC) -Werror $1 -c -o /dev/null -xc /dev/null >/dev/null 2>/dev/null +cc-option = if $(call cc-test, $1); then \ + echo "$(TARGET_PREFIX)$1 detected" && echo "EXTRA_CFLAGS += $1" >&3; else \ + echo "$(TARGET_PREFIX)$1 not detected" $(if $2,&& echo "EXTRA_CFLAGS += $2" >&3); fi + +config-cc.mak: Makefile + $(quiet-@)($(call cc-option,-Wno-stringop-overflow); \ + $(call cc-option,-fno-stack-protector); \ + $(call cc-option,-Wno-array-bounds); \ + $(call cc-option,-Wno-gnu); \ + $(call cc-option,-march=z900,-march=z10)) 3> config-cc.mak +-include config-cc.mak + +LDFLAGS += -Wl,-pie -nostdlib + build-all: s390-ccw.img s390-netboot.img s390-ccw.elf: $(OBJECTS) @@ -63,3 +77,6 @@ ALL_OBJS = $(sort $(OBJECTS) $(NETOBJS) $(LIBCOBJS) $(LIBNETOBJS)) clean: rm -f *.o *.d *.img *.elf *~ *.a + +distclean: + rm -f config-cc.mak From patchwork Tue Oct 4 13:00:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612249 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp185728pvb; Tue, 4 Oct 2022 06:49:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4knDTrIlTy0Qsvr4Vs2I+myGzRa8T13okAwI28W3J4LpckJ5oqUpEmAIKLwzAXiNxwPCI5 X-Received: by 2002:a37:f701:0:b0:6ce:f09b:9065 with SMTP id q1-20020a37f701000000b006cef09b9065mr16530677qkj.268.1664891353007; Tue, 04 Oct 2022 06:49:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664891353; cv=none; d=google.com; s=arc-20160816; b=UzR61tlwe5ymy7HMNp4DSwaWvcZ8oXHrzZwUWGVN9rVKc5cRRLhs0Jpv4h0EModcwg 4U12eoYKi6UyAHlIH/UDgfvaZ7VSFd3303dDs3C2jzsz907NNc0UIlY0ujQrZ9RsZwEk WN8akw0NCXMsN/19frnEzc7Uap/aUaJE04U+JE47jfpjSrkm2+JGyBbq5J09bIWFL2mv NuVVDiZsPPqe184RurtJuasUB65NfY6i2/kiP9bSWg+uT9Kik95++XGfccLHAMUTrEtX QDHFTa9J6zpA2Azlh1jopOIf042DURTIXo2qyiicjZJ/cvuaBn7wDcjCzDwzSLU69WSa WRCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TvimNHgM7Sk2jYD3Qtajf5Xw1mxMYG9IjtE/Y/vVwl4=; b=BZAEoQRzg1Q3ikeLaE6yPpQbxCasDxs7DfK5N6iLOFeK0XyvtxIh9q/VJVTvVUBH/t bhH0UEUMFvfNWjmxrhDUcDt8Ym6kV9XpVu4uoXKIAIpmyJmMrBsjSnWkUHBFNQf+R6t5 S70dzCS0yEaf3LHC3Tof0LPoE+3tGCYkp8XhDadw7t4U6g88k6AuuKk9AboxAXC07zua KlonT6lOcRMlRjlzlSS3WC1fv30GmboV/EDX1+VLPmY3dXmucW2MKipsyQI4flCSFK7v FSoaxDwJBiApXuWs3ecNXCyZ26m6sgPOOqvHyTBRW1l15PR/SmP+HIsErzWcMfWIEie2 ZKBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HvNMmuVR; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q12-20020ad45cac000000b004ad718e07efsi1027499qvh.312.2022.10.04.06.49.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:49:13 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HvNMmuVR; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:45376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiIK-0003oI-IZ for patch@linaro.org; Tue, 04 Oct 2022 09:49:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhgS-0007bL-T2 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:04 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:41784) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgQ-0000Aj-Uq for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:04 -0400 Received: by mail-wr1-x434.google.com with SMTP id bu30so1360123wrb.8 for ; Tue, 04 Oct 2022 06:10:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=TvimNHgM7Sk2jYD3Qtajf5Xw1mxMYG9IjtE/Y/vVwl4=; b=HvNMmuVRgObhO6wCxj4wGuwyKuhb+LbBxmvhu47f1HeWGEszTg29lXy32aFNUAld7o v/BEmhutckrE1UQ54ypzvg+A//6QYBVom4YUpjv6p9jzeGyUe44xBe3Z+Rcm/pZ/NIff pQMEU5vGV8ZKtlhJ4n+n3E7553ZpSLctXKrMmfpmfT2AkHBUWt7j0locSmFfmYNyNIiQ M4PEpOGgL6Qf10kUoifK+3Deo19i0n5vjzmexETgPErOSjiM73DIC63fzvnfoAnABUc1 g29QjYC3BxZtNyDNKokITI8wh23iAwKul8TDiOuH8mlQF1skvTar4X0V47zvvpqMJ+/x 36GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=TvimNHgM7Sk2jYD3Qtajf5Xw1mxMYG9IjtE/Y/vVwl4=; b=y6P+moufgwWGE7QihcLCrBCAqOQr4p4X/TLA27vndbU9lPhz1obdYFPOxteEP3STx3 vgPYicZkycDiKVQj8hS1xeVkGwVb5HPxboXvC/3fVSb184UT6INwnt6MCyi98lP+zwA2 FXZl3dDSlhCzOPcNv/UszM9ZmXfC5zSdYeYGiyBXQvbAh8c2IXgkBbgoUGb/n+En5jdV H47K8EtOZqmTba17S9fe0gf2ycYG7xMJkHQi64AJ9GC1gRe5+C0l1C64Tpi4AbwAM1Fo hMLOqr6WmxmqLCRbMKHsMvF6YEOHPahj9kEkFSnqhqT6EEFM7pSEwuDK8Si1Cbxzu+S4 gd6Q== X-Gm-Message-State: ACrzQf3pcm9iL+pO6yjznFDcxcRIy1hUS7rGtZ2cQa14GBi620s/0ECA P973rJL26Tia9tXWXzxxL3fl0g== X-Received: by 2002:a5d:65c4:0:b0:22c:dbdd:7177 with SMTP id e4-20020a5d65c4000000b0022cdbdd7177mr14273266wrw.470.1664889001540; Tue, 04 Oct 2022 06:10:01 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id m21-20020a05600c4f5500b003a5f54e3bbbsm21654184wmq.38.2022.10.04.06.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:10:00 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 07B701FFC6; Tue, 4 Oct 2022 14:01:40 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , Alexey Kardashevskiy , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Daniel Henrique Barboza , David Gibson , Greg Kurz , qemu-ppc@nongnu.org (open list:Virtual Open Firm...) Subject: [PULL 15/54] vof: add distclean target Date: Tue, 4 Oct 2022 14:00:59 +0100 Message-Id: <20221004130138.2299307-16-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x434.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Signed-off-by: Paolo Bonzini [AJB: add clean dep to distclean] Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-16-alex.bennee@linaro.org> diff --git a/pc-bios/vof/Makefile b/pc-bios/vof/Makefile index 8809c82768..4e59009e67 100644 --- a/pc-bios/vof/Makefile +++ b/pc-bios/vof/Makefile @@ -19,4 +19,6 @@ vof.elf: entry.o main.o ci.o bootmem.o libc.o clean: rm -f *.o vof.bin vof.elf *~ -.PHONY: all clean +distclean: clean + +.PHONY: all clean distclean From patchwork Tue Oct 4 13:01:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612234 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp173228pvb; Tue, 4 Oct 2022 06:29:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ZYm3TxrVOuO1YqYi8HIcbTusS/STHIjA9WGjxfp9SHZ57Ivay8wYVNq8h8URJuog/dA4z X-Received: by 2002:ac8:5fd2:0:b0:38b:1b5:2aab with SMTP id k18-20020ac85fd2000000b0038b01b52aabmr1133962qta.24.1664890167374; Tue, 04 Oct 2022 06:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664890167; cv=none; d=google.com; s=arc-20160816; b=rWQg84vaujLRgckZ7NC7h3F6AAl2H7psQpblomfdcAy0s6Rvrwpk3THQY94RErBIwj rMAYS92f3LzYCIsJFiYTxwGDoWQry2M4jQFZtNj4LsnxadJRPOV/mMJeSqVqyJpcG46W qnbx2neD30xf7fSbA4t3VSx0/LUmDhW5np82PpRsFEMgyuGKsPn0J4txJInCp7rqpQ02 /x3eX8j+BsY+Ef9MYYXJVQlVJOk8NGvLCi3ploe0Ji5XLD2VITcp772EBy5CeWRCIYZY 19aRloIwMmyRebdfUWir/LnVqNvCGhOFNLIGVg8Xa69NwBeeHic9YfAC0zh0v4s4JWn4 Yxxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=UN7L9+SUgDtohTUMYtICnL8liPbJxVd92fjTJihycdQ=; b=GmOMBHolMMU7HlSUGDna943ncKUeoUoyu7pPUIlnXP+KFCvjnNd3jcV21X5MzpfYsO J8cCKEhoYWA2liy5sTbKkCJ00bIWHX0gvX1sdZcSj+8UNCgyk2ZA5hde+xGSO4Q8fFBS b6Fv4McNNz549pQ1Tjh6BJHCX7ute26agBAeDWBOQyChNpAyGKa/CZoPsl8Hl1vgTRh+ o9wHNX7Mrgxrmxc3UoI1y1XDbyzp3PsghbPLYu6y8jSRt7ZtgG5+1VHt7JFBs3ZlywQ4 KX0XyqOPvkaHgRgnD5UZaZRdU+eMZmG8VE/S2Wzh7ocC9CEU0sRKJ0Nzw/Ezhqlk6i78 /+3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CbUbbRW4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q5-20020a05621419e500b004aca9b83179si968271qvc.350.2022.10.04.06.29.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:29:27 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CbUbbRW4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:42322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofhzC-0003sp-SN for patch@linaro.org; Tue, 04 Oct 2022 09:29:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhYe-0008Ny-73 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:02:01 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:36533) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhYb-0007Qo-4A for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:59 -0400 Received: by mail-wr1-x434.google.com with SMTP id j7so15849650wrr.3 for ; Tue, 04 Oct 2022 06:01:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=UN7L9+SUgDtohTUMYtICnL8liPbJxVd92fjTJihycdQ=; b=CbUbbRW4pETjp8SOPiJGkzfJRPsHY8G6W3CQGZluGjUH/AnSp7JzUDb8ZeLjHva3s5 3ImtWdXWM7ivihresVqW286+YWI5VVMbFStZANJl0WTHdx7CQURjRpnlgVthjZxnSDxS CJHjrvi2EpSajQC6rk5TeXi+wURmoL9e4v4gdLsVkrQFNNZMyN0KmxuWjtEic9CkZCY5 nRgYXXGZoOjPaf+VBc7rjsEsiKtZV7ISKmAhV8247ZKBsOfNMqaU+xwhGe1ER/a1PBeH yLYYIneGhkt+IeePkQY+Od+5IDqkJCHuGB9FXi65SMVW+hLP8AMtRLXnfosOSaIWvxWt XnBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=UN7L9+SUgDtohTUMYtICnL8liPbJxVd92fjTJihycdQ=; b=hkR3pbd7VBTD537YHlEi+j9+iAsDEOeudlV058Rv7tZJtmWvWdobm8NuBhqdHHZqPq D7SLWbIyc2+4uA9H/kZOcK2LVcoNi9jQ3YdD+CTGwoO5zgH0PH1XAnz5fyAhrOSd7sEU Yv4pRAt44xYcXji9RpHkPCgSc7gR+xY5AMbjadcui3WAIQcnxnVnWxHnq1QHLnKxHan+ MadUeggMsrLPLeAOxvwSArvHK7Mjfs317BY+VR+syvyn+6LuT/CJ32jAKesE0W4kPeCt NVT5CrXvuX0Pe2qksytTdBEg7qQ0Ic3pwpPshwPyjzqb6vebDv+1LJ50t5UMHer7qNof LpYw== X-Gm-Message-State: ACrzQf0vt30yvKAxPiMHklndNqX8hMbYZEKw0CjBSAHDXqosfoEpP8FM NWkT8H2o7hsJ2jtEg0tz9OKJKA== X-Received: by 2002:a5d:5010:0:b0:22a:cb71:9493 with SMTP id e16-20020a5d5010000000b0022acb719493mr16459894wrt.514.1664888515689; Tue, 04 Oct 2022 06:01:55 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id y14-20020adfe6ce000000b0022c96d3b6f2sm15723482wrm.54.2022.10.04.06.01.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:01:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 1E7DD1FFC7; Tue, 4 Oct 2022 14:01:40 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= Subject: [PULL 16/54] build: add recursive distclean rules Date: Tue, 4 Oct 2022 14:01:00 +0100 Message-Id: <20221004130138.2299307-17-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x434.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-17-alex.bennee@linaro.org> diff --git a/Makefile b/Makefile index b576cba5a8..0fcde48bec 100644 --- a/Makefile +++ b/Makefile @@ -186,7 +186,7 @@ include $(SRC_PATH)/tests/Makefile.include all: recurse-all -ROMS_RULES=$(foreach t, all clean, $(addsuffix /$(t), $(ROMS))) +ROMS_RULES=$(foreach t, all clean distclean, $(addsuffix /$(t), $(ROMS))) .PHONY: $(ROMS_RULES) $(ROMS_RULES): $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $(dir $@) V="$(V)" TARGET_DIR="$(dir $@)" $(notdir $@),) @@ -194,6 +194,7 @@ $(ROMS_RULES): .PHONY: recurse-all recurse-clean recurse-all: $(addsuffix /all, $(ROMS)) recurse-clean: $(addsuffix /clean, $(ROMS)) +recurse-distclean: $(addsuffix /distclean, $(ROMS)) ###################################################################### @@ -214,7 +215,7 @@ dist: qemu-$(VERSION).tar.bz2 qemu-%.tar.bz2: $(SRC_PATH)/scripts/make-release "$(SRC_PATH)" "$(patsubst qemu-%.tar.bz2,%,$@)" -distclean: clean +distclean: clean recurse-distclean -$(quiet-@)test -f build.ninja && $(NINJA) $(NINJAFLAGS) -t clean -g || : rm -f config-host.mak qemu-bundle rm -f tests/tcg/config-*.mak From patchwork Tue Oct 4 13:01:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612253 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp188149pvb; Tue, 4 Oct 2022 06:53:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7IbVT2Ogptp1teRekSkM0uGK0IlTvpiMkNjlkwmm4PPONggG8WjYg4pTxnFXHikHFt3b+P X-Received: by 2002:a05:620a:1b81:b0:6ce:b222:a46e with SMTP id dv1-20020a05620a1b8100b006ceb222a46emr16616001qkb.126.1664891614295; Tue, 04 Oct 2022 06:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664891614; cv=none; d=google.com; s=arc-20160816; b=J+OGylbJeR+B6I4d7npPADLyHnhzZCEzgdqNFHmtH1FxC6QuwTsGRhHy1Bxzu8ths+ zVbnSppxN5mqA8OBSB2x3PrJdeF86s3VPlMWGb9+9wyiQeRv0MIDJmCUB/5G09i9tXdF ZTtMT8Yi5t0Zc6gJ8cVHebdP+v3ZVDRPnZcvWfVDf2MotYJGdWumRX0BBswmf4emZPwU CNwRPrYj9q+6EjUJYi26PzPwSLYRiMIuRRKl6/jknln6J3XYePXwSVCRvuZow44Ou0Bq tFJG2QoJG66CGdPlDlDpWSZW5YPYKxQFtDrmK+TFE80CbcL8qAUTE4nlfS6nLK+htpeJ 5tCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JNiearaQvDip8JsM9PGb/nIll+VrO2KHIn0XRGgSTuQ=; b=hsDJsHfMk/ZoQfeISDDY5cUD+lGPtHz/00eqm9x9SkPwWi/iGBqd9+MCwJorSLnhvw p7zkCAVKEL8ovJphnAC7aaXyyVpJv0kyP5gLtcKBEz96iBI1UWzkHEdWV3HXfBPbAwQ6 oPPfI44OXzc4OE918NfZDL40CCG993N+a2hFDM2hIEGAjjn3SPMNOVLc4cvEXujok99l Gygzh5X63MUar6LgJC2xYK+GUHciAQZm0faWH0KERHjmKr4iWpmvOuakscz/mOnLR7s7 Nys+NE1AVg+nGoJMJVatPZOZyR+5M6ummxfAr7y1zhYY2DebGE422VNLIGA2EP0kCtLq XfdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=neXO3YFE; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 14-20020a0562140d0e00b004ad613215fcsi971454qvh.319.2022.10.04.06.53.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:53:34 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=neXO3YFE; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiMX-0002IS-P0 for patch@linaro.org; Tue, 04 Oct 2022 09:53:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhgO-0007Ql-OA for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:00 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:37566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgM-00008v-PP for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:00 -0400 Received: by mail-wr1-x432.google.com with SMTP id bq9so21256454wrb.4 for ; Tue, 04 Oct 2022 06:09:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=JNiearaQvDip8JsM9PGb/nIll+VrO2KHIn0XRGgSTuQ=; b=neXO3YFEdcl2gBA6Zme+NlHbDVlKkoRf3aAA+F4mIc6R/yWPS5vjOFlCGZgFCskmEM 0mk4fP0U555eWZX+1cD1nQtztm+uBmGezF6FDk/QjUuTfDolV8xH9CEb6lkdO9jcGIYN YnuUaU2QX2oLbpYTp6dOl5FEI6oo/t7r4xn9YlJWgbct1GfoTLqbNLE5MFxJN7Ke9hRS ll4cMXh/ALzyke0Svl3Q6DJzNgSbpG8+t0jGSzeeQJF9jdfBqkefIzLYS8BFcd7KHHSv ZbGBZhoYi47uGvV4HXgpS0AO+ukgviCFi87n019cGYP7YrKKmfXJ4FUQmiEtVp0FdJVQ C4kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=JNiearaQvDip8JsM9PGb/nIll+VrO2KHIn0XRGgSTuQ=; b=L4VUd/cxEDrF27TTAMbYnDEIue4X8+J/hxw+z+aN5QwhBD4h3Z9ZbDT8y1BrzGqGT+ +nw7soFaL+aln6VIrL6hbFma2WkZMxyEjaLaSfqaSc2qaAm2FGU0XRsAbDvbFCzmyj9z fZnzg5iVWVjdPQ88AhUnUDN6HHOaa/Zuca2zFf5rAwvSx1PAodhv7uyyyueTlqw0fMuD TgFPc/pcszItXgFiObZsqMn8E5EcxqJ3+AxMr/O8RkNru9+aXdkTk3LxN8goU7FiZLRo x+saXzQZYSZnliwSYTlPfhyuecLQf9AeUu2GmMREPu1A7hFTtzFu72b3WhtvDbMW5Wxz uxiQ== X-Gm-Message-State: ACrzQf0dei1+FbluAu19X5/O88wEz3pHjiCRNjVKrCBIo1SPd8p/lcSK D4Id7kkdCfxlFlVvi4xC5il1ZjbQYmQfOg== X-Received: by 2002:a05:6000:184d:b0:22a:7428:3ae8 with SMTP id c13-20020a056000184d00b0022a74283ae8mr15286845wri.441.1664888997218; Tue, 04 Oct 2022 06:09:57 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id n41-20020a05600c3ba900b003b3401f1e24sm1723574wms.28.2022.10.04.06.09.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:09:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 347EA1FFBA; Tue, 4 Oct 2022 14:01:40 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= Subject: [PULL 17/54] configure: return status code from probe_target_compiler Date: Tue, 4 Oct 2022 14:01:01 +0100 Message-Id: <20221004130138.2299307-18-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini For now, return 1 for container-based compilers. This will change as soon as ROMs will be buildable with them. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-18-alex.bennee@linaro.org> diff --git a/configure b/configure index aaa09fb957..f3984bb193 100755 --- a/configure +++ b/configure @@ -2147,6 +2147,7 @@ probe_target_compiler() { target_ranlib= target_strip= fi + test -n "$target_cc" } write_target_makefile() { @@ -2294,10 +2295,9 @@ done # Mac OS X ships with a broken assembler roms= -probe_target_compiler i386-softmmu -if test -n "$target_cc" && - test "$targetos" != "darwin" && test "$targetos" != "sunos" && \ - test "$targetos" != "haiku" && test "$softmmu" = yes ; then +if test "$targetos" != "darwin" && test "$targetos" != "sunos" && \ + test "$targetos" != "haiku" && test "$softmmu" = yes && \ + probe_target_compiler i386-softmmu; then roms="pc-bios/optionrom" config_mak=pc-bios/optionrom/config.mak echo "# Automatically generated by configure - do not modify" > $config_mak @@ -2305,8 +2305,7 @@ if test -n "$target_cc" && write_target_makefile >> $config_mak fi -probe_target_compiler ppc-softmmu -if test -n "$target_cc" && test "$softmmu" = yes; then +if test "$softmmu" = yes && probe_target_compiler ppc-softmmu; then roms="$roms pc-bios/vof" config_mak=pc-bios/vof/config.mak echo "# Automatically generated by configure - do not modify" > $config_mak @@ -2316,8 +2315,7 @@ fi # Only build s390-ccw bios if the compiler has -march=z900 or -march=z10 # (which is the lowest architecture level that Clang supports) -probe_target_compiler s390x-softmmu -if test -n "$target_cc" && test "$softmmu" = yes; then +if test "$softmmu" = yes && probe_target_compiler s390x-softmmu; then write_c_skeleton do_compiler "$target_cc" $target_cc_cflags -march=z900 -o $TMPO -c $TMPC has_z900=$? From patchwork Tue Oct 4 13:01:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612251 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp187435pvb; Tue, 4 Oct 2022 06:52:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4d8dTa17pcXDD+Lo74A1Je+W6mzjwOdN6TxUenx/PHKf9n+DLj5wqgXMHKPbg//RKhpPWh X-Received: by 2002:a37:9a51:0:b0:6cf:427b:c180 with SMTP id c78-20020a379a51000000b006cf427bc180mr16195225qke.767.1664891541927; Tue, 04 Oct 2022 06:52:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664891541; cv=none; d=google.com; s=arc-20160816; b=bv02O1PeDMxr7RYeo09mgrkb0VretFc8A6qS3vhUIwVJC+1mCorVyTWBwMLfL9pJit /Ug4MwbQ2s8qDPngkbRK1IBbKW8pJYAz58yClNGR7NaymxM6eOpyZC4mubuNJ4R1dAKD wTlaTYyl32Y8G8UPLovLRz0wLR5zEDTSUmT7g5WB6ToIOAzv2CGaKZicqS5j3I+7KqsF f+4Rkyv6h0Q808PbkPDLSMOh3uyO6N6/yveWmJYqlzvwqck2Jx2SWBGZ9V6Lb7pe3xIu EhpEWolYrb7G1OESqDFn032K/c4P7MMsJGS7WkYqgtJM3aiHhPb9tA5+fZtzBpih014C o/8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3w+bjpM8X7ClsceEYaojlv3+SvzK1wDqMMAZn+rwyHQ=; b=gPxZhDFKTpJdv8TAYA8dJtx5T0BLpGVqrLKX5F/MAMaphB1lN5F8K7Njdn8RjUoiF0 oN/5Gse61RbagvpS5Vbt3M/RtTSS3Sgk3IMc0QbTwut/RiKdMDuIKTQfo7+sHSCrwr6P vty8yDy/UDJvmvDWM/ImXZMBz1iv4yLOhxq0kws/fS+IPnuN7uzUkijLeVa/Rprv4XF9 wGVId6shXa0kJIJVnXnzTGKSuJtz497Gqfs7/+VY3pX305Ys8joA46w8CwbG+Ca0QfQ5 ugDEcjvsB6j6bqW2Alek3+Gj7aDnT9rv/iSrMaFR3OgjWULzGncxlHaWWF9MCAkRQf8M sTrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zMwMbHo1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c19-20020a05622a059300b0038c2b5d05c7si297428qtb.485.2022.10.04.06.52.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:52:21 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zMwMbHo1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:39490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiLN-0000Dy-DZ for patch@linaro.org; Tue, 04 Oct 2022 09:52:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhq1-0001In-90 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:01 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:45617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhpy-0001pn-Te for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:19:56 -0400 Received: by mail-wr1-x435.google.com with SMTP id a10so8947005wrm.12 for ; Tue, 04 Oct 2022 06:19:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=3w+bjpM8X7ClsceEYaojlv3+SvzK1wDqMMAZn+rwyHQ=; b=zMwMbHo1G4HS2zeRRBTX+Q3zu1ksrD3Cjgn2CJHScem9ihLH2LIXPnkJToGYLgrKha 0AqbXKW97k5qDPMz0YTLwfiaWXQuTWlZtAzeyT/ug3fEkn7f3K+tza7RweHEtYOfOUFN VTIFM7E8c9VqDsTgjg3QZepCSqiSRFwP8mZ1QPumPYJn+XEDRfrrMArL7NHHZXjfVaux y40sRdACd+2EesAwfl5X8qZAW0WVsOkfsolD/4sGOJPwMQ7wyGlluT2Bqr95QNfMMIhg ZWUB7pbpTKePc5eUxmuUwE65o27I+KfpUyat8QZRxuHYGPvkeEjjvH6j4+O86geIWvQ7 oCIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=3w+bjpM8X7ClsceEYaojlv3+SvzK1wDqMMAZn+rwyHQ=; b=wTvBnpEvCNfN6u4i6HPss8baV+/WMNYBn8N5onXHiGGL9DR4f125Hqg1g4Kwr2mJpw NCTq2HbwUFJTbE/gGmR7HqbkS7TUACPviqrqyQQYRLp8vVUamqqEv11sdD38yM3yldPP 4p1vX+eMTIUYjL9pwQoIdU2iT5I4MTqBkYQ1Ca+w3jq4yew56lhq3n7FPezs+F+PHTHO FUuvHxYpVILsOuaq2AthTRXQrj4C+hSdAgczTN+uOLQV6lITir/vXlqb3FD5fDwY5y3N kkiYJ6ynNZGYuvIlGrbHSrlY4KId/xWBKfv1Y4xFqDKetMJqMUDvjl1rtX3Ob/SdArQN eJCg== X-Gm-Message-State: ACrzQf0Z2CGalPZ+s6VGsDYI83BAMYtN+J212f/8EMQ6qfzHe84e99AU iWYD3QWvNooyZU1ddmEkIPIgZA== X-Received: by 2002:a5d:4748:0:b0:22e:32c1:d11e with SMTP id o8-20020a5d4748000000b0022e32c1d11emr9036725wrs.672.1664889592330; Tue, 04 Oct 2022 06:19:52 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id t20-20020a05600c199400b003b4fe03c881sm20234700wmq.48.2022.10.04.06.19.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:19:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4DCF61FFC8; Tue, 4 Oct 2022 14:01:40 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathi?= =?utf-8?q?eu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 18/54] configure: store container engine in config-host.mak Date: Tue, 4 Oct 2022 14:01:02 +0100 Message-Id: <20221004130138.2299307-19-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x435.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini In preparation for removing $(DOCKER_SCRIPT) from the tests/tcg configuration files, have Make use the same container engine that had been probed at configure time. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-19-alex.bennee@linaro.org> diff --git a/configure b/configure index f3984bb193..ad70c81bfe 100755 --- a/configure +++ b/configure @@ -1810,9 +1810,11 @@ fi container="no" if test $use_containers = "yes"; then - if has "docker" || has "podman"; then - container=$($python "$source_path"/tests/docker/docker.py probe) - fi + case $($python "$source_path"/tests/docker/docker.py probe) in + *docker) container=docker ;; + podman) container=podman ;; + no) container=no ;; + esac fi # cross compilers defaults, can be overridden with --cross-cc-ARCH @@ -2444,6 +2446,9 @@ if test -n "$gdb_bin"; then fi fi +if test "$container" != no; then + echo "ENGINE=$container" >> $config_host_mak +fi echo "ROMS=$roms" >> $config_host_mak echo "MAKE=$make" >> $config_host_mak echo "PYTHON=$python" >> $config_host_mak diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 270e99786e..c87f14477a 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -14,7 +14,7 @@ DOCKER_DEFAULT_REGISTRY := registry.gitlab.com/qemu-project/qemu endif DOCKER_REGISTRY := $(if $(REGISTRY),$(REGISTRY),$(DOCKER_DEFAULT_REGISTRY)) -ENGINE := auto +ENGINE ?= auto DOCKER_SCRIPT=$(SRC_PATH)/tests/docker/docker.py --engine $(ENGINE) CUR_TIME := $(shell date +%Y-%m-%d-%H.%M.%S.$$$$) From patchwork Tue Oct 4 13:01:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612235 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp174876pvb; Tue, 4 Oct 2022 06:31:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7dqeKtTIkJzirYcM1wew82CVF9OZDfzzVwEAggv7G9SUgB1yqQWm8/oLLH4onWmwVMwqxQ X-Received: by 2002:a05:620a:2807:b0:6cf:cb30:8ff5 with SMTP id f7-20020a05620a280700b006cfcb308ff5mr16507131qkp.206.1664890310455; Tue, 04 Oct 2022 06:31:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664890310; cv=none; d=google.com; s=arc-20160816; b=aKL++e6s11iHmuyrFzC8MFaYbx2nki7wL44gIcQVoiLE4vdh0z1136ydCwFERV87Ep OLXE9bWT1QN4i8vi6B0x6cMIXB9IvNsjcVDoylsNg3W4qf4H19GjXk7c7e+06wpJYGP/ hvAh/5V4OCYb6fDtdfdArDW1UjN7AbHMFL7/1SK9HenKOLxOdsZy2cYWQqtd7EmMduv9 w6WvFzN/XIB9vRVYWTYy37TXgtqsto0ArOnthnfKbHI9s/kh7DwQ0lujft8HBICoeVqj c7hbFFr/21R3xICKfL6bpG7hdZv3f9KP9yxCoMjJq1PMzJRRSukwJ0sWvxcJ/1iltyPN diSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ht3EcFdMZjpHHWXTDaaW7bvMGh1A8/gT1GjW4z49bbU=; b=yirGre1trFKOdn1ErCpoiQdB6Uhf+L1N4dSgsXT9ImCLYw6jowW5Q3VhvbiRKq4knL MmSMWgD668enpbp3C4P+YhrdX775NTTKuVPC7HyqzdPh9nNWmC4A2JHHLHjHPBl3QpBQ IJXd+6YnB4DDI5GGfR0JiW+54rsOL37aDJd8ZglY2eFJR/Q0/3rD/9AdEnQE70org9ZN 4iAHO3zqSlTebwRFi7h1/B//aDYhylmc7nRqGGSAmoQAi7G3DLzgfIjqPd7EdoROjhy7 wQZE4tznVjnluaESbjg7+JBVrf8GXKJgifYkzM0DayLiaKIwl2ewR7UyaLA1z7+6RhSt /dnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a1qesWsp; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u24-20020a37ab18000000b006b98e258b4asi4958206qke.290.2022.10.04.06.31.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:31:50 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a1qesWsp; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:33132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofi1V-0005TK-MV for patch@linaro.org; Tue, 04 Oct 2022 09:31:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhgO-0007R6-Rc for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:00 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:34560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgM-00008e-4V for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:00 -0400 Received: by mail-wm1-x331.google.com with SMTP id n35-20020a05600c502300b003b4924c6868so703575wmr.1 for ; Tue, 04 Oct 2022 06:09:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=ht3EcFdMZjpHHWXTDaaW7bvMGh1A8/gT1GjW4z49bbU=; b=a1qesWspbSKqALIKhsBkPdem1I0Isg8Lz6+nGpdgcHkSKqBQoPBEZlZvlvMW7BYJZu Ar61Cya+S1ED2/n96qBvn+9jfXo+pqm6FJtlxTyPMidMybs98eE0Ukt9akitCCX2ckvO W0PNp28pzOanJ3UquOAFsR96LLkrZk7jzOy8K4zQKuO1LKbAoeFyotNyxVPVK2JpHjO1 ZKEDCSJHsfPH+FzfdFFfeBJYRZB9cdZevlhq8wBWET4S6FIaP8SWKHRzO4BV7tNhCq0y gAHTtRHVPTi8cM0xvZEjgs3gWmH0c6QFEZOjJZpecmrYYkYBtD9/kWRaykacLfQaVXm0 CmzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=ht3EcFdMZjpHHWXTDaaW7bvMGh1A8/gT1GjW4z49bbU=; b=EIvOf4p65wqlqs+Xlqp4zz5lxwCsRma/DTbf1e4IMk56yUyYsColnkOtojMbBNB7/Z VN0vVbySM0sKWY3YoPc/5hiQTaqs5Ac8pL24nseSyLdpPsOAsgqm4HRDxcCYAaDzBlUE oU+rrTAHi9i5rvNHhk+9f3UbKlNtU/GB5CzZi6HUgrpgTFaRrGPbsScyhJSA5LB73DVI YshzD+yA0nJvGxpxCHNn49+MJI/Y0p9VamVXEnFNyEwp4IRvSfgIbhPiGIAyBcQYKTwF VRD7mE/PsRMvmpKvA3AeA//JluMuqi62rnY+yHFVwaBifzgVzyol4jZrEQ8JQjVG1T9o SysQ== X-Gm-Message-State: ACrzQf252KPkSgyGucmziny7sZ+TbMa6sl1yzWTgonNa8XyE2bOtzGkm NCBYjqE493CX7slyWV8ZCMB6PQ== X-Received: by 2002:a05:600c:1f15:b0:3b4:8600:fd7e with SMTP id bd21-20020a05600c1f1500b003b48600fd7emr10455472wmb.40.1664888995667; Tue, 04 Oct 2022 06:09:55 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id h9-20020a1c2109000000b003b4fac020c8sm18731564wmh.16.2022.10.04.06.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:09:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 695621FFC9; Tue, 4 Oct 2022 14:01:40 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathi?= =?utf-8?q?eu-Daud=C3=A9?= Subject: [PULL 19/54] tests: simplify Makefile invocation for tests/tcg Date: Tue, 4 Oct 2022 14:01:03 +0100 Message-Id: <20221004130138.2299307-20-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Remove the DOCKER_SCRIPT and TARGET variable from the Makefile invocation for tests/tcg. For DOCKER_SCRIPT, resolve the path to docker.py in configure; for TARGET, move it to config-$(TARGET).mak and use a symbolic link to break the cycle. The symbolic link is still needed because tests/tcg includes dummy config files for targets that are not buildable. Once that is cleaned up, the symbolic link will go away too. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-20-alex.bennee@linaro.org> diff --git a/configure b/configure index ad70c81bfe..784b77ae90 100755 --- a/configure +++ b/configure @@ -1815,6 +1815,9 @@ if test $use_containers = "yes"; then podman) container=podman ;; no) container=no ;; esac + if test "$container" != "no"; then + docker_py="$python $source_path/tests/docker/docker.py --engine $container" + fi fi # cross compilers defaults, can be overridden with --cross-cc-ARCH @@ -2184,16 +2187,16 @@ write_target_makefile() { write_container_target_makefile() { echo "EXTRA_CFLAGS=$target_cflags" if test -n "$container_cross_cc"; then - echo "CC=\$(DOCKER_SCRIPT) cc --cc $container_cross_cc -i qemu/$container_image -s $source_path --" - echo "CCAS=\$(DOCKER_SCRIPT) cc --cc $container_cross_cc -i qemu/$container_image -s $source_path --" + echo "CC=$docker_py cc --cc $container_cross_cc -i qemu/$container_image -s $source_path --" + echo "CCAS=$docker_py cc --cc $container_cross_cc -i qemu/$container_image -s $source_path --" fi - echo "AR=\$(DOCKER_SCRIPT) cc --cc $container_cross_ar -i qemu/$container_image -s $source_path --" - echo "AS=\$(DOCKER_SCRIPT) cc --cc $container_cross_as -i qemu/$container_image -s $source_path --" - echo "LD=\$(DOCKER_SCRIPT) cc --cc $container_cross_ld -i qemu/$container_image -s $source_path --" - echo "NM=\$(DOCKER_SCRIPT) cc --cc $container_cross_nm -i qemu/$container_image -s $source_path --" - echo "OBJCOPY=\$(DOCKER_SCRIPT) cc --cc $container_cross_objcopy -i qemu/$container_image -s $source_path --" - echo "RANLIB=\$(DOCKER_SCRIPT) cc --cc $container_cross_ranlib -i qemu/$container_image -s $source_path --" - echo "STRIP=\$(DOCKER_SCRIPT) cc --cc $container_cross_strip -i qemu/$container_image -s $source_path --" + echo "AR=$docker_py cc --cc $container_cross_ar -i qemu/$container_image -s $source_path --" + echo "AS=$docker_py cc --cc $container_cross_as -i qemu/$container_image -s $source_path --" + echo "LD=$docker_py cc --cc $container_cross_ld -i qemu/$container_image -s $source_path --" + echo "NM=$docker_py cc --cc $container_cross_nm -i qemu/$container_image -s $source_path --" + echo "OBJCOPY=$docker_py cc --cc $container_cross_objcopy -i qemu/$container_image -s $source_path --" + echo "RANLIB=$docker_py cc --cc $container_cross_ranlib -i qemu/$container_image -s $source_path --" + echo "STRIP=$docker_py cc --cc $container_cross_strip -i qemu/$container_image -s $source_path --" } @@ -2630,6 +2633,8 @@ for target in $target_list; do fi if test $got_cross_cc = yes; then mkdir -p tests/tcg/$target + ln -sf ../config-$target.mak tests/tcg/$target/config-target.mak + echo "TARGET=$target" >> "$config_target_mak" echo "QEMU=$PWD/$qemu" >> "$config_target_mak" echo "run-tcg-tests-$target: $qemu\$(EXESUF)" >> $makefile tcg_tests_targets="$tcg_tests_targets $target" diff --git a/tests/Makefile.include b/tests/Makefile.include index 3accb83b13..826b1895f4 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -50,23 +50,20 @@ $(foreach TARGET,$(TCG_TESTS_TARGETS), \ .PHONY: $(TCG_TESTS_TARGETS:%=build-tcg-tests-%) $(TCG_TESTS_TARGETS:%=build-tcg-tests-%): build-tcg-tests-%: $(BUILD_DIR)/tests/tcg/config-%.mak $(call quiet-command, \ - $(MAKE) -C tests/tcg/$* -f ../Makefile.target $(SUBDIR_MAKEFLAGS) \ - DOCKER_SCRIPT="$(DOCKER_SCRIPT)" \ - TARGET="$*" SRC_PATH="$(SRC_PATH)", \ + $(MAKE) -C tests/tcg/$* -f ../Makefile.target $(SUBDIR_MAKEFLAGS), \ "BUILD","$* guest-tests") .PHONY: $(TCG_TESTS_TARGETS:%=run-tcg-tests-%) $(TCG_TESTS_TARGETS:%=run-tcg-tests-%): run-tcg-tests-%: build-tcg-tests-% $(call quiet-command, \ $(MAKE) -C tests/tcg/$* -f ../Makefile.target $(SUBDIR_MAKEFLAGS) \ - TARGET="$*" SRC_PATH="$(SRC_PATH)" SPEED=$(SPEED) run, \ + SPEED=$(SPEED) run, \ "RUN", "$* guest-tests") .PHONY: $(TCG_TESTS_TARGETS:%=clean-tcg-tests-%) $(TCG_TESTS_TARGETS:%=clean-tcg-tests-%): clean-tcg-tests-%: $(call quiet-command, \ - $(MAKE) -C tests/tcg/$* -f ../Makefile.target $(SUBDIR_MAKEFLAGS) \ - TARGET="$*" SRC_PATH="$(SRC_PATH)" clean, \ + $(MAKE) -C tests/tcg/$* -f ../Makefile.target $(SUBDIR_MAKEFLAGS) clean, \ "CLEAN", "$* guest-tests") .PHONY: build-tcg diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index c896d1033e..b9c3d247e9 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -31,7 +31,7 @@ all: -include ../config-host.mak --include ../config-$(TARGET).mak +-include config-target.mak # Get semihosting definitions for user-mode emulation ifeq ($(filter %-softmmu, $(TARGET)),) From patchwork Tue Oct 4 13:01:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612262 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp198974pvb; Tue, 4 Oct 2022 07:08:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6UJ8j8TpvMbqze6ersBuv6ZWsJ7lf1CDJWqS0TzR1S/xOV2mmAsjtDFfYCktPa4WfYEPsG X-Received: by 2002:a05:622a:134d:b0:35c:e289:f62e with SMTP id w13-20020a05622a134d00b0035ce289f62emr19741045qtk.596.1664892483551; Tue, 04 Oct 2022 07:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664892483; cv=none; d=google.com; s=arc-20160816; b=Bkvq+SnqcYgEhpuNpJlc1myRpoktsISTuJT6cGA3PcBKY3hktPxD0Zw10xecMYTcE2 OCdbZl72EXA4PYxTqy10uxIuOo5cp+NvpVNu+6FEhtH/uj2pt2MOzyAmJxmFKN43IrQX cENX1cyWxcPZqb9IkaJmpRBFkTnz9mGYIU71wden4cxTM/YVK8NN+CYA8fVQ1ZZf5KKe ZkrufHRdK5QQkzf5ST8Aw5IBzRZXmzNiD5PpsQZpkQ/lF1Z3NcJ4ieuTttbiyN+3jWkO LiAtbtOnN3lPFmDyAKD6ajCbd1lvWvTYK5umPfdbvcvLBNdcuDdpV1qLmR5SxGvt7OOq 60XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=T/pxyGXpRXvNvrTzvW9UdBzvMOK7hpw0JSZ16A8Xx1I=; b=QehjRcK9cWtzXnonefGZzzTTczMitNmRzMnZxilDGdqqiEPrvUXWOma+rQxhr3rTbj wYFUJXrcFV/mECu1cP/LBAnyhkASnExwnfmMoEIAQ7BImeP9oug4J63qRkzG3O10Fy7n 5fObQIOyKRXg4pM8sBoD6BZlBBN/BPwr3Hk6OTdwnfkFfZnakVsAv9VQcVepinTuBG34 TnZEXRnVkkqJWfPjlUYEg9Z1zsTMqQ6MAUFje9R5v0LY1fmb+/ukihhhE3vuUjtYYVnM cyUL+2qOncaO/Mnubro/fiJmR3UP9HHk5KNF9iQkvBj1SL4ysR82UyOAxqFPhWrK/oyr KM1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lLKjUBW2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d13-20020a05620a240d00b006ce4019cee5si5772946qkn.496.2022.10.04.07.08.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 07:08:03 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lLKjUBW2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:52292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiaZ-00035w-2N for patch@linaro.org; Tue, 04 Oct 2022 10:08:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhqB-0001Lq-52 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:08 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:38413) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhq7-0001sI-DO for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:06 -0400 Received: by mail-wr1-x432.google.com with SMTP id j16so9349868wrh.5 for ; Tue, 04 Oct 2022 06:20:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=T/pxyGXpRXvNvrTzvW9UdBzvMOK7hpw0JSZ16A8Xx1I=; b=lLKjUBW2KZvm6c1yb+DFjbTiUlJTiiQKvqbDkqffrbWmtkSyIVIdBoIQRc4Za6LoTM 4HE8kzV6/ZZ37O8ioC0F5uHjVJyjh2PwOblovv3FM7rOB9UtG4y9RtHGuTs+mLr3h5ON GUo0yanvippe6pcMxsbPz60L78KzMYqz/KLwyqUXKNBbVGSibnJ64AmGSqCjFzkLZhsj eGQ0k3v9t7LMn82hJwD6sfR5Gim6ykPl48Btv8MnlGSSBRtR5BNCvSKbEhze9FUbqWIP kezUVlPmi7RmnBoPu0DdSD7ovKidl/IpV5SxC928EcRvm+xpEpNbdYqd+hD9SpHYAmHx GTkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=T/pxyGXpRXvNvrTzvW9UdBzvMOK7hpw0JSZ16A8Xx1I=; b=MyZ4tNcR7k+Vyvg0pBYKaywaRl4vPoDxRJnr2a/X+d5n2+ZJDPpPOT6ETeStjXlrtE 0MWchJyvsig+Br5kCdaeL4OQJaq6b/nRBQoSfgFkahWTztoUmQA3C2dcztt/aLnVt5Yo krh2HDoier082AImJAYZUAdMTS8p8OHQGtm1KOBsbdZJmx1Me7Z6JqpMr3obLc6YPLMZ TSOGWMyzPQvzD14Ptgd1hqs1MHtgkcx01Q8nhGe1ebnrm5TnL1fvd2AIrKJvldJM1YOs yLGaN1LkC91Fqh21YvuZ6stXvPwAbaxzmJBFmHqmO4r082y2BepNKukLkSQqKlKbXOUB +cdg== X-Gm-Message-State: ACrzQf0XK06dfGD5Kt3vbLAGEgIW2BlV9TNRXhA0IzXi7q16W9Q64vqZ w+4SHYLfPtWt3qAIsmkSn5FqQA== X-Received: by 2002:a05:6000:1842:b0:22a:4d1d:4bd6 with SMTP id c2-20020a056000184200b0022a4d1d4bd6mr16027712wri.603.1664889599846; Tue, 04 Oct 2022 06:19:59 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id j24-20020a05600c1c1800b003b95ed78275sm7787121wms.20.2022.10.04.06.19.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:19:55 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 820DE1FFCA; Tue, 4 Oct 2022 14:01:40 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= Subject: [PULL 20/54] tests/tcg: remove -f from Makefile invocation Date: Tue, 4 Oct 2022 14:01:04 +0100 Message-Id: <20221004130138.2299307-21-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Instead of linking tests/tcg/Makefile.target into the build tree, name the symbolic link "Makefile" and create it in every target subdirectory. This makes it possible to just invoke "make" in tests/tcg subdirectories. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-21-alex.bennee@linaro.org> diff --git a/configure b/configure index 784b77ae90..a48a731bf4 100755 --- a/configure +++ b/configure @@ -2282,7 +2282,6 @@ fi # tests might fail. Prefer to keep the relevant files in their own # directory and symlink the directory instead. LINKS="Makefile" -LINKS="$LINKS tests/tcg/Makefile.target" LINKS="$LINKS pc-bios/optionrom/Makefile" LINKS="$LINKS pc-bios/s390-ccw/Makefile" LINKS="$LINKS pc-bios/vof/Makefile" @@ -2529,6 +2528,7 @@ fi echo "# Automatically generated by configure - do not modify" > $makefile config_host_mak=tests/tcg/config-host.mak +mkdir -p tests/tcg echo "# Automatically generated by configure - do not modify" > $config_host_mak echo "SRC_PATH=$source_path" >> $config_host_mak echo "HOST_CC=$host_cc" >> $config_host_mak @@ -2632,8 +2632,9 @@ for target in $target_list; do got_cross_cc=yes fi if test $got_cross_cc = yes; then - mkdir -p tests/tcg/$target - ln -sf ../config-$target.mak tests/tcg/$target/config-target.mak + mkdir -p "tests/tcg/$target" + ln -sf "$source_path/tests/tcg/Makefile.target" "tests/tcg/$target/Makefile" + ln -sf "../config-$target.mak" "tests/tcg/$target/config-target.mak" echo "TARGET=$target" >> "$config_target_mak" echo "QEMU=$PWD/$qemu" >> "$config_target_mak" echo "run-tcg-tests-$target: $qemu\$(EXESUF)" >> $makefile diff --git a/tests/Makefile.include b/tests/Makefile.include index 826b1895f4..caef287957 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -50,20 +50,19 @@ $(foreach TARGET,$(TCG_TESTS_TARGETS), \ .PHONY: $(TCG_TESTS_TARGETS:%=build-tcg-tests-%) $(TCG_TESTS_TARGETS:%=build-tcg-tests-%): build-tcg-tests-%: $(BUILD_DIR)/tests/tcg/config-%.mak $(call quiet-command, \ - $(MAKE) -C tests/tcg/$* -f ../Makefile.target $(SUBDIR_MAKEFLAGS), \ + $(MAKE) -C tests/tcg/$* $(SUBDIR_MAKEFLAGS), \ "BUILD","$* guest-tests") .PHONY: $(TCG_TESTS_TARGETS:%=run-tcg-tests-%) $(TCG_TESTS_TARGETS:%=run-tcg-tests-%): run-tcg-tests-%: build-tcg-tests-% $(call quiet-command, \ - $(MAKE) -C tests/tcg/$* -f ../Makefile.target $(SUBDIR_MAKEFLAGS) \ - SPEED=$(SPEED) run, \ + $(MAKE) -C tests/tcg/$* $(SUBDIR_MAKEFLAGS) SPEED=$(SPEED) run, \ "RUN", "$* guest-tests") .PHONY: $(TCG_TESTS_TARGETS:%=clean-tcg-tests-%) $(TCG_TESTS_TARGETS:%=clean-tcg-tests-%): clean-tcg-tests-%: $(call quiet-command, \ - $(MAKE) -C tests/tcg/$* -f ../Makefile.target $(SUBDIR_MAKEFLAGS) clean, \ + $(MAKE) -C tests/tcg/$* $(SUBDIR_MAKEFLAGS) clean, \ "CLEAN", "$* guest-tests") .PHONY: build-tcg From patchwork Tue Oct 4 13:01:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612266 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp202826pvb; Tue, 4 Oct 2022 07:13:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7/AzzdmWnv5gaHtjltLB+DjOhku7vWEDbxo9EqGx2lfbnTg2CdoxlUJGFA2050q+8AcvWG X-Received: by 2002:ac8:4e8d:0:b0:35d:5047:9dec with SMTP id 13-20020ac84e8d000000b0035d50479decmr19253906qtp.259.1664892799150; Tue, 04 Oct 2022 07:13:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664892799; cv=none; d=google.com; s=arc-20160816; b=kq0fc6ZsXgMDbN5XllQcCokWdNcBeXGVpbLWDkm2S6CkAAwKhfJrj2NxwtjwcYnfkx qPRajcM8t/aLZGoRXBHr9jYPEl9AKZt/BDcxDuTLWJYYpOclPYYDiSw9YBJtiPRuBWiP 5auCp8u+sYI3/wNjwuqy/voZP9zMuf+jIDTsJzrvjKNBRWeQVfUCUT4ro14hawfyr/ph cgX/cjEfrvkkpDPlvns+ldydmxUBK/mIWWbz05I3MHvZS0mG7q5Iu8UEfyuoCsApXltl XU7N5NyrrKhTagR51g95buir8e0txDOtluDI9p2RX+ZhBU8AYazXjCe7J08wZa5glcdv YAjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=aMdrY3bNL4xFq/9HOGTlA1ptoK89idiqoPrj5xyoGhs=; b=B4FqChK3jTpWlZ12ipNF93Lc2emS+8rTiUxlNlPcy5UlGV+RyIN13k+/9JzqmlF3rK GV5YNd4pb0T/MtelSlVKR1R0ZCjGgZUsdjX0tSwSUUM+djnfGBJ0YMSiFChoulqw1xMG SHd+kwjWf78976LwkmmCYGcnvdtvyUHOxa6xYixWeuxXDEDUgiZObYWS1vMz+GZxVM+J AlesM5l3qPVkmbFxL+Mhn6wjfFwAoimUMJx+410GJYH6ur1nlBsfZ2P8i6/DQ8T89Ll7 kww+tgv4oLEDK/TainwNRmhNMXPXI2aEAuzQVNmAfaKM0U2D2+nxBcG1R5l5j7W34uBc 6wgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h7kwHDja; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z22-20020a05622a029600b003434d3b592fsi5795648qtw.15.2022.10.04.07.13.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 07:13:19 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h7kwHDja; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofife-0004Mr-JZ for patch@linaro.org; Tue, 04 Oct 2022 10:13:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhq3-0001Iz-Hg for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:02 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:50945) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhpz-0001qM-HY for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:19:58 -0400 Received: by mail-wm1-x336.google.com with SMTP id ay36so8873726wmb.0 for ; Tue, 04 Oct 2022 06:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=aMdrY3bNL4xFq/9HOGTlA1ptoK89idiqoPrj5xyoGhs=; b=h7kwHDjaWlCIuFDh25tzIzqirc+QqEBjC75niSvqARJiCoXTbBy5sffcYlyWQTv/kl AqCXBO8k9Taa9ZKdSCYY7drooA4oMsS8xGcLPfyfIFOdX6zlZbjkPm3QUBogP4zPSgeI VK0QtkNkfn/f9mjVmp+7m1uUtE1GdwweBLfFobg1sr1sE/ws+1AcLZsBYEbS10BGPpEs rss6EQVpugRE9qH21mbZqlJAsO3atJONzOOHE0wdvorB2DusObmd2Dj6sFBzTgBDWdcb +mFk0s5gzasvewT2/3Bok9fL2FSmhrqcw7vAUzKItipJ0iZl+0h8wWlhoVrJtVC4jRwg Ix0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=aMdrY3bNL4xFq/9HOGTlA1ptoK89idiqoPrj5xyoGhs=; b=AWWdXHi81YkE7QyXb5oflvqdd1hY9F5wJKndmR9vc5Hyo7YfjtiJkAulcIHnKEfPlt Qs62oRcZxBdNnR4AlCdtx7hd2OuZAA926BELhFWdnayR67tfF7WWAuR3bj4EbrDPLydj pXFCDIsJJJW0RSpHeP4XIb2AygWw0urLbTVgrKYZLZQyOCtkXZWsT3R9o7DdI4qEmTAL WKgpXBAeFAgIdCkJhsNXfi1UEQHBGyiROBUhTOpylO1G71yxdt3czIGmAVEdctT5lxdJ yVEwXM+6/3xn3b+g9DV3GlN5YSiBiQ8FCMN3a4xe8rFBNM/5SAF5D0Lnh1z8ZXkkNToM 8QXg== X-Gm-Message-State: ACrzQf1ke0p0cK9P+vgapteh/iAe+58CIdI4HviepkDgKLIl0zboXZpR YkLAiU7y0tVcnlBEu7RZGYgT3yxrXXChkA== X-Received: by 2002:a05:600c:3d13:b0:3b4:be25:9236 with SMTP id bh19-20020a05600c3d1300b003b4be259236mr10340255wmb.65.1664889593713; Tue, 04 Oct 2022 06:19:53 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id f11-20020a05600c154b00b003a3442f1229sm20918289wmg.29.2022.10.04.06.19.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:19:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id A1DBF1FFCB; Tue, 4 Oct 2022 14:01:40 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathi?= =?utf-8?q?eu-Daud=C3=A9?= Subject: [PULL 21/54] tests/tcg: add distclean rule Date: Tue, 4 Oct 2022 14:01:05 +0100 Message-Id: <20221004130138.2299307-22-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x336.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-22-alex.bennee@linaro.org> diff --git a/tests/Makefile.include b/tests/Makefile.include index caef287957..9ed67721e2 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -42,6 +42,7 @@ tests/tcg/Makefile.prereqs: config-host.mak # Per guest TCG tests BUILD_TCG_TARGET_RULES=$(patsubst %,build-tcg-tests-%, $(TCG_TESTS_TARGETS)) CLEAN_TCG_TARGET_RULES=$(patsubst %,clean-tcg-tests-%, $(TCG_TESTS_TARGETS)) +DISTCLEAN_TCG_TARGET_RULES=$(patsubst %,distclean-tcg-tests-%, $(TCG_TESTS_TARGETS)) RUN_TCG_TARGET_RULES=$(patsubst %,run-tcg-tests-%, $(TCG_TESTS_TARGETS)) $(foreach TARGET,$(TCG_TESTS_TARGETS), \ @@ -65,6 +66,12 @@ $(TCG_TESTS_TARGETS:%=clean-tcg-tests-%): clean-tcg-tests-%: $(MAKE) -C tests/tcg/$* $(SUBDIR_MAKEFLAGS) clean, \ "CLEAN", "$* guest-tests") +.PHONY: $(TCG_TESTS_TARGETS:%=distclean-tcg-tests-%) +$(TCG_TESTS_TARGETS:%=distclean-tcg-tests-%): distclean-tcg-tests-%: + $(call quiet-command, \ + $(MAKE) -C tests/tcg/$* $(SUBDIR_MAKEFLAGS) distclean, \ + "CLEAN", "$* guest-tests") + .PHONY: build-tcg build-tcg: $(BUILD_TCG_TARGET_RULES) @@ -75,6 +82,9 @@ check-tcg: $(RUN_TCG_TARGET_RULES) .PHONY: clean-tcg clean-tcg: $(CLEAN_TCG_TARGET_RULES) +.PHONY: distclean-tcg +distclean-tcg: $(DISTCLEAN_TCG_TARGET_RULES) + # Python venv for running tests .PHONY: check-venv check-avocado check-acceptance check-acceptance-deprecated-warning @@ -159,5 +169,6 @@ check-clean: rm -rf $(TESTS_VENV_DIR) $(TESTS_RESULTS_DIR) clean: check-clean clean-tcg +distclean: distclean-tcg endif diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index b9c3d247e9..c14eca82c2 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -189,3 +189,6 @@ run: $(RUN_TESTS) clean: rm -f $(TESTS) *.o $(CLEANFILES) + +distclean: + rm -f config-target.mak ../config-$(TARGET).mak From patchwork Tue Oct 4 13:01:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612263 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp199630pvb; Tue, 4 Oct 2022 07:09:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5fTWWRs4QfanNNGnKjxisojgyQf7oC4/OrjbafhZn/bSTL4DV6KUBxGYBZj7DmPV5o9d5J X-Received: by 2002:ac8:7fcd:0:b0:35c:c2ad:bc78 with SMTP id b13-20020ac87fcd000000b0035cc2adbc78mr19816214qtk.671.1664892542539; Tue, 04 Oct 2022 07:09:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664892542; cv=none; d=google.com; s=arc-20160816; b=t3zlSCPYZ4M5mD4fFo2PFNHBhO7OMhc5mqtPhil7Xx5obWnEtn9Q4Crv2/sPXV2rco CNml2mL3JyvcUR0tIYzTYkd/PXAGzwVteN6qE7c+Wo5Fl69KKLzXGIb6d9KNm32Gi8WI dlBH5PFBqOZ32RJ7hCeKjTlfGX1Bm6VIVyKJY+BdrrX/c1yNEnM2eSXwiM3wcVRT9HT9 pAHVYiqJAFDiXV5tcc/cxbza4z+PxIoCz3/ZvOG9PZIn70cNrJ4RSGl0+Bq+KIOEI4m+ 0xPGa0KYQ5vYZ4sM3u5EpFURtJ/ojX/C4XDav3v5Q/TyRnhbI0QQMfEEVxgztn8o6tBf Gc6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=heg8HF7tr0inN2eP23IggjtyYPd8jYtsjr2DUsYoRnk=; b=nt7IvBJflU1KEpuXd12g8IhSyusM6/jOabBZyrrGQlkjSdkEdMwN2WEyhSmr0BPHxC 4xp9Yc5nFW8alo+R33q6AgOPBHVXUvUGAcqaZXlRjeiBOB6q++0fh4iJeYUX3EOrNW5K PeecwpGjRKFP6keaQ1s8D0pvqCR79Jk5dvP0wIi3W8db+zAZ0EfVy8uVS9IlHzddrrkU oyhGhs6cFFN6AxzLlUxcYc9CQ0PD8m7JpL7arR8nvH7EsMKRxWxHIpYikmch3KY6MjUx Rw5kDsDoPDrQ1wcMhq1+MpHLKHnwtRjayjg2F5/CVc4pRq0EEuLjSzn4QLSAhEIj/2xy yjPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HjUP7yOp; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d12-20020ac85acc000000b0035d0ac0a8c2si5814259qtd.375.2022.10.04.07.09.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 07:09:02 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HjUP7yOp; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:40126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofibW-0005yv-27 for patch@linaro.org; Tue, 04 Oct 2022 10:09:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhq5-0001JH-Sr for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:05 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:35399) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhq2-0001qr-63 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:01 -0400 Received: by mail-wr1-x42f.google.com with SMTP id u10so21172009wrq.2 for ; Tue, 04 Oct 2022 06:19:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=heg8HF7tr0inN2eP23IggjtyYPd8jYtsjr2DUsYoRnk=; b=HjUP7yOpQ0R5IUwKApvKPwS5U4XEEh2/6TIGlwEFKy/N3NXPbx+IlYDDOlUX6Gbk5M V8sDohO6TYL5vLfgZVZlFesx8bQUWikgJODIUyARbEq/Dx2o3tIAFmPZH7Iq4szDfYAy qvhwQ2oxffnztfhd3oeF0Nh0sInhmjOy20VbNHbLonIe2l7Fs6T5ZATjn2m9jTqzbEKQ w7dWKvW2CAWOBNLO6IJdvROCWeDp3bQywKiOPn6sxmDg+4hXny7E6wV83pJkJ8P4okeb 3FBJpzka/YSiq8JpcC61zIXV1DdS5YY/fJ37TYRtisRa7iQ3KADTZlmRQofFFTohwmmS j/5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=heg8HF7tr0inN2eP23IggjtyYPd8jYtsjr2DUsYoRnk=; b=Uo3i7QP8OE/eECd2iyrbXeZcc2ouLHsY33NJuVSp8EuNI13vmlD3yaZbhEf0tZFD86 3UQqKkY00+rqAZLRwE8/LfLGR0wwd/lp8uvMnlojYhXQjaIwF9sjqH+8Dife8tydGXCz 9vxednNZ93xoI6jlHMe2jWm7AwZ8Enw/SPMo+luQCKn8aYJeBH2Uy3hnffE1ppmIfcp+ nmGBT8ZiboVB1mLIq9wfNwLI8Fy2TblClQjDeqII6Amf9E8eTDyIoc2xzhUNnOeu8090 H2cCUlXJaAUoVDJeNKR7tLPr7HdRwCa/bMYO0E32buQW+v/Da4My6yFzM8AKulN+EtN6 QtoQ== X-Gm-Message-State: ACrzQf0OoiUT9pInIYdcNtYGOl8YIeJEbhPajpNrIYAcM/89KxYWOdeS 2GanbWQzlAV2ZuPzPMGDIAfWu+wSFhFhyQ== X-Received: by 2002:a5d:4f81:0:b0:21e:2cd7:25df with SMTP id d1-20020a5d4f81000000b0021e2cd725dfmr16877790wru.439.1664889595639; Tue, 04 Oct 2022 06:19:55 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id k25-20020adfd239000000b0022af865810esm12150686wrh.75.2022.10.04.06.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:19:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B98661FFCC; Tue, 4 Oct 2022 14:01:40 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= Subject: [PULL 22/54] tests/tcg: unify ppc64 and ppc64le Makefiles Date: Tue, 4 Oct 2022 14:01:06 +0100 Message-Id: <20221004130138.2299307-23-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42f.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Make tests/tcg/ppc64le include tests/tcg/ppc64 instead of duplicating the rules. Because the ppc64le vpath includes tests/tcg/ppc64 but not vice versa, the tests have to be moved from tests/tcg/ppc64le/ to tests/tcg/ppc64. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-23-alex.bennee@linaro.org> diff --git a/tests/tcg/ppc64le/bcdsub.c b/tests/tcg/ppc64/bcdsub.c similarity index 100% rename from tests/tcg/ppc64le/bcdsub.c rename to tests/tcg/ppc64/bcdsub.c diff --git a/tests/tcg/ppc64le/byte_reverse.c b/tests/tcg/ppc64/byte_reverse.c similarity index 100% rename from tests/tcg/ppc64le/byte_reverse.c rename to tests/tcg/ppc64/byte_reverse.c diff --git a/tests/tcg/ppc64le/mffsce.c b/tests/tcg/ppc64/mffsce.c similarity index 100% rename from tests/tcg/ppc64le/mffsce.c rename to tests/tcg/ppc64/mffsce.c diff --git a/tests/tcg/ppc64le/mtfsf.c b/tests/tcg/ppc64/mtfsf.c similarity index 100% rename from tests/tcg/ppc64le/mtfsf.c rename to tests/tcg/ppc64/mtfsf.c diff --git a/tests/tcg/ppc64le/non_signalling_xscv.c b/tests/tcg/ppc64/non_signalling_xscv.c similarity index 100% rename from tests/tcg/ppc64le/non_signalling_xscv.c rename to tests/tcg/ppc64/non_signalling_xscv.c diff --git a/tests/tcg/ppc64le/signal_save_restore_xer.c b/tests/tcg/ppc64/signal_save_restore_xer.c similarity index 100% rename from tests/tcg/ppc64le/signal_save_restore_xer.c rename to tests/tcg/ppc64/signal_save_restore_xer.c diff --git a/tests/tcg/ppc64le/xxspltw.c b/tests/tcg/ppc64/xxspltw.c similarity index 100% rename from tests/tcg/ppc64le/xxspltw.c rename to tests/tcg/ppc64/xxspltw.c diff --git a/tests/tcg/ppc64/Makefile.target b/tests/tcg/ppc64/Makefile.target index 331fae628e..7db7a3e2b3 100644 --- a/tests/tcg/ppc64/Makefile.target +++ b/tests/tcg/ppc64/Makefile.target @@ -3,7 +3,6 @@ # ppc64 specific tweaks VPATH += $(SRC_PATH)/tests/tcg/ppc64 -VPATH += $(SRC_PATH)/tests/tcg/ppc64le ifneq ($(CROSS_CC_HAS_POWER8_VECTOR),) PPC64_TESTS=bcdsub non_signalling_xscv diff --git a/tests/tcg/ppc64le/Makefile.target b/tests/tcg/ppc64le/Makefile.target index 6ca3003f02..daad5118a5 100644 --- a/tests/tcg/ppc64le/Makefile.target +++ b/tests/tcg/ppc64le/Makefile.target @@ -4,28 +4,4 @@ VPATH += $(SRC_PATH)/tests/tcg/ppc64le -ifneq ($(CROSS_CC_HAS_POWER8_VECTOR),) -PPC64LE_TESTS=bcdsub non_signalling_xscv -endif -$(PPC64LE_TESTS): CFLAGS += -mpower8-vector - -ifneq ($(CROSS_CC_HAS_POWER10),) -PPC64LE_TESTS += byte_reverse sha512-vector -endif -byte_reverse: CFLAGS += -mcpu=power10 -run-byte_reverse: QEMU_OPTS+=-cpu POWER10 -run-plugin-byte_reverse-with-%: QEMU_OPTS+=-cpu POWER10 - -sha512-vector: CFLAGS +=-mcpu=power10 -O3 -sha512-vector: sha512.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) - -run-sha512-vector: QEMU_OPTS+=-cpu POWER10 -run-plugin-sha512-vector-with-%: QEMU_OPTS+=-cpu POWER10 - -PPC64LE_TESTS += mtfsf -PPC64LE_TESTS += mffsce -PPC64LE_TESTS += signal_save_restore_xer -PPC64LE_TESTS += xxspltw - -TESTS += $(PPC64LE_TESTS) +include $(SRC_PATH)/tests/tcg/ppc64/Makefile.target From patchwork Tue Oct 4 13:01:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612257 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp190580pvb; Tue, 4 Oct 2022 06:58:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM70zEc/Z3Q1ZLlYa+JQbV4PQHtVD27f0D0GxwwYYbriCmG7qX0RDe9XYV+HdAmrW8GPyyXF X-Received: by 2002:a05:6214:d06:b0:4ad:1fe1:9b49 with SMTP id 6-20020a0562140d0600b004ad1fe19b49mr19451538qvh.57.1664891894952; Tue, 04 Oct 2022 06:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664891894; cv=none; d=google.com; s=arc-20160816; b=FafvwIsqAqIWwBYhEkWPhg6AGxioIkxrj0AFYgnLx87Legc9iFHtkHepPIWgfiTvfc 0pdqdqVgHUJnRp+Q1R+VPwQG4fqAyWuOpmTuUumTcILuwDFoZ83AI6mcHOAS9yiffy7g XxKK0nqfCW1GLcVnwEAA8DY1Hh+zCl2MQf6lKDY+ToP92uHaePAMi2NEAGKN4lUcqlA0 ULEt9iaDVgXUTwpb2zMmC45GOEQ6NPX0NRK06QS298eBvuDCyvQZ/ZYyrahVvSUA7EFP 8je95ByRd7t1ndFz1VEe+AKxfRYRf/FFveIT2NIMHnnmTpOxJUMzezzDoS/vFvqMJzEV ev9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+0RlAuedqn75mpdZppj0EkwyyzHrfcrHdkOOgm0zkE4=; b=vBigf3+H4zPl2eIkyZ75W5+187FPWTGxk/Us1fAU41i1tsH10jB++sYnwmPGXZFwc2 JrnkXacgg4Q4yUtfdIu5WoGXTpgwbAAhQwBicHvluhAF01m9Mw6WgRihLZ2d3U1rFX1k 5TlqjY5ZYnrvcLolxkPgK6ZB9NnKh1gex3VwrOoFElqSq1nRCDfQehuXGSL8Egk9TCDv O3roNJSgG64M25AyCvexVkLeeUtJgXfqP7ZzKvbsdfsgfVAyINIJ2UqNDJTwJb7fJE0r Ayn7eN7qS5XAv6WXtbbI9ZQLdO4P6fuCds7ZppjxCw3TV4aD3FryEVhmr5FWceonzUM5 0bUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A2CT+1tA; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t71-20020a37464a000000b006ce121b3db7si4694305qka.465.2022.10.04.06.58.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:58:14 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A2CT+1tA; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:53620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiR4-0008Df-D3 for patch@linaro.org; Tue, 04 Oct 2022 09:58:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhq2-0001Iw-DF for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:02 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:54009) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhpy-0001q6-Ug for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:19:57 -0400 Received: by mail-wm1-x331.google.com with SMTP id e18so8862163wmq.3 for ; Tue, 04 Oct 2022 06:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=+0RlAuedqn75mpdZppj0EkwyyzHrfcrHdkOOgm0zkE4=; b=A2CT+1tAILLhZ46WjuOGs8zg7wbU6G/bZ6KFu8UC108/vkoZA4TL9TBzFB0jc1yVGC 232sh99Hp8EKmeCPGJX1X70/aMU7PEcHwpjSgnF7pPKTj++t/0WZJwfMz91iR4Jxs8zp Y9U33CGwNNen7jSDQF7WQtj+unDNNkFuwkc7Rta4PfLDIfGFLLHbj7pXu7lfWUK6gYUK 0O44FDWxav7cWD09F3uO2X0uCIVE9/uQbeFWaboPhxZCZVGToUUdD5e7BBGKPA1l0Asl TrzFE0lH6WEMJOWqEdSuzoQuaq3Q9fW0QD0yZPokkpWKzI2oWZTDu2TkJg7/LQN/9T9M Bpcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=+0RlAuedqn75mpdZppj0EkwyyzHrfcrHdkOOgm0zkE4=; b=fqS+J0xV21+1kCB7UhaoDZi+H2nt1V5sRVQUmrss2A6XmwEMpokT0fxsx+nhWqZtgD i5T7HBfwtPagnpe9cog/RrcwcVFoblrXGWNoKB9htbTVshZvAhV7H+OCaTk1Gi5/8XhV rNb8W8g2DOPxK5pCU2zjiIkSRCnb/AaPqArRlzX3c5klKW/+N1ia9Eew78kvvhzZVmrg 4loLdnHNMZuRkUIoSixiMF8eu/ZgNffNSCuDpRx/BDLAhriR5D1KnGu4Q4NcKWvwPPfE dN9qf9pViX0sxAC/xh1jwgpbKFl8AgH8RSnTCYPJ74R37I8ogGrNf+99NpCbx4dGFS1F LVWg== X-Gm-Message-State: ACrzQf2KgIcQyxh8Ew/+rkScMAljxjr7b6F2DqNZ538DJxx2+BgnHXHo cqdMu+CRE2VYPFlxTsOsawo3pQ== X-Received: by 2002:a05:600c:a4b:b0:3b9:859d:7ed6 with SMTP id c11-20020a05600c0a4b00b003b9859d7ed6mr6745464wmq.169.1664889593300; Tue, 04 Oct 2022 06:19:53 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id g11-20020a05600c310b00b003bdb2c7f3d1sm484280wmo.32.2022.10.04.06.19.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:19:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id F141E1FFB7; Tue, 4 Oct 2022 14:01:40 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathi?= =?utf-8?q?eu-Daud=C3=A9?= , Peter Maydell , "Edgar E. Iglesias" , Richard Henderson , Eduardo Habkost , David Hildenbrand , qemu-arm@nongnu.org (open list:ARM TCG CPUs), qemu-s390x@nongnu.org (open list:S390 TCG CPUs) Subject: [PULL 23/54] tests/tcg: clean up calls to run-test Date: Tue, 4 Oct 2022 14:01:07 +0100 Message-Id: <20221004130138.2299307-24-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Almost all invocations of run-test have either "$* on $(TARGET_NAME)" or "$< on $(TARGET_NAME)" as the last argument. So provide a default test name, while allowing an escape hatch for custom names. As an additional simplification, remove the need to do shell quoting. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-24-alex.bennee@linaro.org> diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index c14eca82c2..cd0a2ad873 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -41,14 +41,16 @@ endif # for including , in command strings COMMA := , -quiet-command = $(if $(V),$1,$(if $(2),@printf " %-7s %s\n" $2 $3 && $1, @$1)) +quiet-@ = $(if $(V),,@$(if $1,printf " %-7s %s\n" "$(strip $1)" "$(strip $2)" && )) +quiet-command = $(call quiet-@,$2,$3)$1 # $1 = test name, $2 = cmd, $3 = desc ifeq ($(filter %-softmmu, $(TARGET)),) run-test = $(call quiet-command, timeout --foreground $(TIMEOUT) $2 > $1.out, \ - "TEST",$3) + TEST,$(or $3, $*, $<) on $(TARGET_NAME)) else -run-test = $(call quiet-command, timeout --foreground $(TIMEOUT) $2,"TEST",$3) +run-test = $(call quiet-command, timeout --foreground $(TIMEOUT) $2, \ + TEST,$(or $3, $*, $<) on $(TARGET_NAME)) endif # $1 = test name, $2 = reference @@ -56,7 +58,7 @@ endif # we know it failed and then force failure at the end. diff-out = $(call quiet-command, diff -q $1.out $2 || \ (diff -u $1.out $2 | head -n 10 && false), \ - "DIFF","$1.out with $2") + DIFF,$1.out with $2) # $1 = test name, $2 = reason skip-test = @printf " SKIPPED %s on $(TARGET_NAME) because %s\n" $1 $2 @@ -155,21 +157,19 @@ RUN_TESTS+=$(EXTRA_RUNS) ifeq ($(filter %-softmmu, $(TARGET)),) run-%: % - $(call run-test, $<, $(QEMU) $(QEMU_OPTS) $<, "$< on $(TARGET_NAME)") + $(call run-test, $<, $(QEMU) $(QEMU_OPTS) $<) run-plugin-%: $(call run-test, $@, $(QEMU) $(QEMU_OPTS) \ -plugin $(PLUGIN_LIB)/$(call extract-plugin,$@) \ -d plugin -D $*.pout \ - $(call strip-plugin,$<), \ - "$* on $(TARGET_NAME)") + $(call strip-plugin,$<)) else run-%: % $(call run-test, $<, \ $(QEMU) -monitor none -display none \ -chardev file$(COMMA)path=$<.out$(COMMA)id=output \ - $(QEMU_OPTS) $<, \ - "$< on $(TARGET_NAME)") + $(QEMU_OPTS) $<) run-plugin-%: $(call run-test, $@, \ @@ -177,8 +177,7 @@ run-plugin-%: -chardev file$(COMMA)path=$@.out$(COMMA)id=output \ -plugin $(PLUGIN_LIB)/$(call extract-plugin,$@) \ -d plugin -D $*.pout \ - $(QEMU_OPTS) $(call strip-plugin,$<), \ - "$* on $(TARGET_NAME)") + $(QEMU_OPTS) $(call strip-plugin,$<)) endif gdb-%: % diff --git a/tests/tcg/aarch64/Makefile.softmmu-target b/tests/tcg/aarch64/Makefile.softmmu-target index f6fcd4829e..84a9990f8d 100644 --- a/tests/tcg/aarch64/Makefile.softmmu-target +++ b/tests/tcg/aarch64/Makefile.softmmu-target @@ -50,8 +50,7 @@ run-memory-record: memory-record memory $(QEMU) -monitor none -display none \ -chardev file$(COMMA)path=$<.out$(COMMA)id=output \ -icount shift=5$(COMMA)rr=record$(COMMA)rrfile=record.bin \ - $(QEMU_OPTS) memory, \ - "$< on $(TARGET_NAME)") + $(QEMU_OPTS) memory) .PHONY: memory-replay run-memory-replay: memory-replay run-memory-record @@ -59,8 +58,7 @@ run-memory-replay: memory-replay run-memory-record $(QEMU) -monitor none -display none \ -chardev file$(COMMA)path=$<.out$(COMMA)id=output \ -icount shift=5$(COMMA)rr=replay$(COMMA)rrfile=record.bin \ - $(QEMU_OPTS) memory, \ - "$< on $(TARGET_NAME)") + $(QEMU_OPTS) memory) EXTRA_RUNS+=run-memory-replay diff --git a/tests/tcg/aarch64/Makefile.target b/tests/tcg/aarch64/Makefile.target index d6a74d24dc..9837a809dc 100644 --- a/tests/tcg/aarch64/Makefile.target +++ b/tests/tcg/aarch64/Makefile.target @@ -55,7 +55,7 @@ sha1-vector: CFLAGS=-O3 sha1-vector: sha1.c $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) run-sha1-vector: sha1-vector run-sha1 - $(call run-test, $<, $(QEMU) $(QEMU_OPTS) $<, "$< on $(TARGET_NAME)") + $(call run-test, $<, $(QEMU) $(QEMU_OPTS) $<) $(call diff-out, sha1-vector, sha1.out) TESTS += sha1-vector @@ -75,14 +75,14 @@ run-gdbstub-sysregs: sysregs --gdb $(HAVE_GDB_BIN) \ --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ --bin $< --test $(AARCH64_SRC)/gdbstub/test-sve.py, \ - "basic gdbstub SVE support") + basic gdbstub SVE support) run-gdbstub-sve-ioctls: sve-ioctls $(call run-test, $@, $(GDB_SCRIPT) \ --gdb $(HAVE_GDB_BIN) \ --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ --bin $< --test $(AARCH64_SRC)/gdbstub/test-sve-ioctl.py, \ - "basic gdbstub SVE ZLEN support") + basic gdbstub SVE ZLEN support) EXTRA_RUNS += run-gdbstub-sysregs run-gdbstub-sve-ioctls endif diff --git a/tests/tcg/arm/Makefile.target b/tests/tcg/arm/Makefile.target index 2f815120a5..b3b1504a1c 100644 --- a/tests/tcg/arm/Makefile.target +++ b/tests/tcg/arm/Makefile.target @@ -26,7 +26,7 @@ ARM_TESTS += fcvt fcvt: LDFLAGS+=-lm # fcvt: CFLAGS+=-march=armv8.2-a+fp16 -mfpu=neon-fp-armv8 run-fcvt: fcvt - $(call run-test,fcvt,$(QEMU) $<,"$< on $(TARGET_NAME)") + $(call run-test,fcvt,$(QEMU) $<) $(call diff-out,fcvt,$(ARM_SRC)/fcvt.ref) # PC alignment test @@ -44,13 +44,12 @@ semihosting-arm: semihosting.c $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) run-semihosting-arm: semihosting-arm - $(call run-test,$<,$(QEMU) $< 2> $<.err, "$< on $(TARGET_NAME)") + $(call run-test,$<,$(QEMU) $< 2> $<.err) run-plugin-semihosting-arm-with-%: $(call run-test, $@, $(QEMU) $(QEMU_OPTS) \ -plugin $(PLUGIN_LIB)/$(call extract-plugin,$@) \ - $(call strip-plugin,$<) 2> $<.err, \ - "$< on $(TARGET_NAME) with $*") + $(call strip-plugin,$<) 2> $<.err) ARM_TESTS += semiconsole-arm @@ -75,7 +74,7 @@ sha1-vector: CFLAGS=-O3 sha1-vector: sha1.c $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) run-sha1-vector: sha1-vector run-sha1 - $(call run-test, $<, $(QEMU) $(QEMU_OPTS) $<, "$< on $(TARGET_NAME)") + $(call run-test, $<, $(QEMU) $(QEMU_OPTS) $<) $(call diff-out, sha1-vector, sha1.out) ARM_TESTS += sha1-vector diff --git a/tests/tcg/cris/Makefile.target b/tests/tcg/cris/Makefile.target index e72d3cbdb2..372287bd03 100644 --- a/tests/tcg/cris/Makefile.target +++ b/tests/tcg/cris/Makefile.target @@ -56,4 +56,4 @@ SIMG:=cris-axis-linux-gnu-run # e.g.: make -f ../../tests/tcg/Makefile run-check_orm-on-sim run-%-on-sim: - $(call run-test, $<, $(SIMG) $<, "$< on $(TARGET_NAME) with SIM") + $(call run-test, $<, $(SIMG) $<) diff --git a/tests/tcg/i386/Makefile.softmmu-target b/tests/tcg/i386/Makefile.softmmu-target index 9b9038d0be..ed922d59c8 100644 --- a/tests/tcg/i386/Makefile.softmmu-target +++ b/tests/tcg/i386/Makefile.softmmu-target @@ -40,8 +40,7 @@ run-plugin-%-with-libinsn.so: -chardev file$(COMMA)path=$@.out$(COMMA)id=output \ -plugin ../../plugin/libinsn.so$(COMMA)inline=on \ -d plugin -D $*-with-libinsn.so.pout \ - $(QEMU_OPTS) $*, \ - "$* on $(TARGET_NAME)") + $(QEMU_OPTS) $*) # Running QEMU_OPTS+=-device isa-debugcon,chardev=output -device isa-debug-exit,iobase=0xf4,iosize=0x4 -kernel diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target index 599f192529..8af066efc5 100644 --- a/tests/tcg/i386/Makefile.target +++ b/tests/tcg/i386/Makefile.target @@ -53,7 +53,7 @@ test-i386-fprem.ref: test-i386-fprem run-test-i386-fprem: TIMEOUT=60 run-test-i386-fprem: test-i386-fprem test-i386-fprem.ref - $(call run-test,test-i386-fprem, $(QEMU) $<,"$< on $(TARGET_NAME)") + $(call run-test,test-i386-fprem, $(QEMU) $<) $(call diff-out,test-i386-fprem, test-i386-fprem.ref) else SKIP_I386_TESTS+=test-i386-fprem @@ -63,8 +63,7 @@ endif run-plugin-%-with-libinsn.so: $(call run-test, $@, $(QEMU) $(QEMU_OPTS) \ -plugin ../../plugin/libinsn.so$(COMMA)inline=on \ - -d plugin -D $*-with-libinsn.so.pout $*, \ - "$* (inline) on $(TARGET_NAME)") + -d plugin -D $*-with-libinsn.so.pout $*) # Update TESTS I386_TESTS:=$(filter-out $(SKIP_I386_TESTS), $(ALL_X86_TESTS)) diff --git a/tests/tcg/multiarch/Makefile.target b/tests/tcg/multiarch/Makefile.target index 6bba523729..78104f9bbb 100644 --- a/tests/tcg/multiarch/Makefile.target +++ b/tests/tcg/multiarch/Makefile.target @@ -26,7 +26,7 @@ float_%: float_%.c libs/float_helpers.c $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< $(MULTIARCH_SRC)/libs/float_helpers.c -o $@ $(LDFLAGS) run-float_%: float_% - $(call run-test,$<, $(QEMU) $(QEMU_OPTS) $<,"$< on $(TARGET_NAME)") + $(call run-test,$<, $(QEMU) $(QEMU_OPTS) $<) $(call conditional-diff-out,$<,$(SRC_PATH)/tests/tcg/$(TARGET_NAME)/$<.ref) @@ -42,13 +42,11 @@ signals: LDFLAGS+=-lrt -lpthread # default case (host page size) run-test-mmap: test-mmap - $(call run-test, test-mmap, $(QEMU) $<, \ - "$< (default) on $(TARGET_NAME)") + $(call run-test, test-mmap, $(QEMU) $<, $< (default)) # additional page sizes (defined by each architecture adding to EXTRA_RUNS) run-test-mmap-%: test-mmap - $(call run-test, test-mmap-$*, $(QEMU) -p $* $<,\ - "$< ($* byte pages) on $(TARGET_NAME)") + $(call run-test, test-mmap-$*, $(QEMU) -p $* $<, $< ($* byte pages)) ifneq ($(HAVE_GDB_BIN),) GDB_SCRIPT=$(SRC_PATH)/tests/guest-debug/run-test.py @@ -58,21 +56,21 @@ run-gdbstub-sha1: sha1 --gdb $(HAVE_GDB_BIN) \ --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ --bin $< --test $(MULTIARCH_SRC)/gdbstub/sha1.py, \ - "basic gdbstub support") + basic gdbstub support) run-gdbstub-qxfer-auxv-read: sha1 $(call run-test, $@, $(GDB_SCRIPT) \ --gdb $(HAVE_GDB_BIN) \ --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ --bin $< --test $(MULTIARCH_SRC)/gdbstub/test-qxfer-auxv-read.py, \ - "basic gdbstub qXfer:auxv:read support") + basic gdbstub qXfer:auxv:read support) run-gdbstub-thread-breakpoint: testthread $(call run-test, $@, $(GDB_SCRIPT) \ --gdb $(HAVE_GDB_BIN) \ --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ --bin $< --test $(MULTIARCH_SRC)/gdbstub/test-thread-breakpoint.py, \ - "hitting a breakpoint on non-main thread") + hitting a breakpoint on non-main thread) else run-gdbstub-%: @@ -94,13 +92,13 @@ VPATH += $(MULTIARCH_SRC)/arm-compat-semi semihosting: CFLAGS+=-I$(SRC_PATH)/tests/tcg/$(TARGET_NAME) run-semihosting: semihosting - $(call run-test,$<,$(QEMU) $< 2> $<.err, "$< on $(TARGET_NAME)") + $(call run-test,$<,$(QEMU) $< 2> $<.err) run-plugin-semihosting-with-%: $(call run-test, $@, $(QEMU) $(QEMU_OPTS) \ -plugin $(PLUGIN_LIB)/$(call extract-plugin,$@) \ $(call strip-plugin,$<) 2> $<.err, \ - "$< on $(TARGET_NAME) with $*") + $< with $*) semiconsole: CFLAGS+=-I$(SRC_PATH)/tests/tcg/$(TARGET_NAME) diff --git a/tests/tcg/multiarch/system/Makefile.softmmu-target b/tests/tcg/multiarch/system/Makefile.softmmu-target index 625ed792c6..368b64d531 100644 --- a/tests/tcg/multiarch/system/Makefile.softmmu-target +++ b/tests/tcg/multiarch/system/Makefile.softmmu-target @@ -25,7 +25,7 @@ run-gdbstub-memory: memory --qargs \ "-monitor none -display none -chardev file$(COMMA)path=$<.out$(COMMA)id=output $(QEMU_OPTS)" \ --bin $< --test $(MULTIARCH_SRC)/gdbstub/memory.py, \ - "softmmu gdbstub support") + softmmu gdbstub support) else run-gdbstub-%: diff --git a/tests/tcg/s390x/Makefile.target b/tests/tcg/s390x/Makefile.target index 5e13a41c3f..c830313e67 100644 --- a/tests/tcg/s390x/Makefile.target +++ b/tests/tcg/s390x/Makefile.target @@ -41,7 +41,7 @@ run-gdbstub-signals-s390x: signals-s390x --gdb $(HAVE_GDB_BIN) \ --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ --bin $< --test $(S390X_SRC)/gdbstub/test-signals-s390x.py, \ - "mixing signals and debugging on s390x") + mixing signals and debugging) EXTRA_RUNS += run-gdbstub-signals-s390x endif diff --git a/tests/tcg/x86_64/Makefile.softmmu-target b/tests/tcg/x86_64/Makefile.softmmu-target index 2afa3298bf..7207fee94c 100644 --- a/tests/tcg/x86_64/Makefile.softmmu-target +++ b/tests/tcg/x86_64/Makefile.softmmu-target @@ -40,8 +40,7 @@ run-plugin-%-with-libinsn.so: -chardev file$(COMMA)path=$@.out$(COMMA)id=output \ -plugin ../../plugin/libinsn.so$(COMMA)inline=on \ -d plugin -D $*-with-libinsn.so.pout \ - $(QEMU_OPTS) $*, \ - "$* on $(TARGET_NAME)") + $(QEMU_OPTS) $*) # Running QEMU_OPTS+=-device isa-debugcon,chardev=output -device isa-debug-exit,iobase=0xf4,iosize=0x4 -kernel From patchwork Tue Oct 4 13:01:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612267 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp203339pvb; Tue, 4 Oct 2022 07:14:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7gc0/C2AfvyRUwYXTt8g23ZJcB70luuPhA6I10tyA9WojcKeDPrUVtNJShL+gKTT7m+U3d X-Received: by 2002:a37:4553:0:b0:6cf:4dbd:b5f6 with SMTP id s80-20020a374553000000b006cf4dbdb5f6mr17008268qka.339.1664892847865; Tue, 04 Oct 2022 07:14:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664892847; cv=none; d=google.com; s=arc-20160816; b=cOSrBzIwh0kDfdiBT43IlwcaNe/WGTMypnU9wchJyxdTlvGEVomW8IDSH+dQ00Rvgb oLb1QDC9NvC31znyuG1TZqLKrAyx0KAqXlzmP8aoKLWMzgj8ARhoEry+3cQQOgFTvMRB ERs4GXOslmECVUQBQ82uPS6KOwDxF3YeKGSdExM1AjFUrH/t/5fnVx/H042SbFLFjuUK DhGlWtyiJ6IZ+WZt9UrCCaW9Xs6X5GDIJv/vj4FVpKX8YEivb87QZbRHvWeSGYJZ3Yqo iworTEerr77W6hC9Y6vLFx5NEw30rytlOtUpdgUyERUa7nz5moe/OFXdUlQ60rLAGNoC U8fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=AhAdWLqI3hTu5u5BSfQpR5bY8MIRwXJMzwU8OB2KT/Q=; b=V8Rc+PLZ9JYlvqtG2h0gHh2bFLBfwO68aunSop5I3ohZmF0YCAq1yv3IwCwx3A6sm+ ExSBSjhe7IDVM6bUkSnr+3PyjHxtfJnz+CjahoUmtn4UO25yOxp1WFJS1wy2TfY3yuIq Tb0bjM0kobyogxlGU/nivvD2vTic7U1/qEER0uyCjmxStQWFyCzEozBU5Euffxg5/9ei GcR54RewBFAUOaH4Z/9PNeBs6HL+K+Qh2jzFf16DhaS+MzAZd9EnXG5Ublx55A+t3W4Y qjDvtdRlomCmDoq+hs63nSd9X7wO3i5FFD46EG7bq2JXOBQSov24OlEJ1NJo0b+PNUJM A+JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=otfUaFN4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c29-20020ac81e9d000000b0035bb6c4fb5esi5323754qtm.337.2022.10.04.07.14.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 07:14:07 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=otfUaFN4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:39904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofigQ-0005b8-Du for patch@linaro.org; Tue, 04 Oct 2022 10:14:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhqX-0001Nu-JU for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:31 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:44783) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhq7-0001sy-OL for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:09 -0400 Received: by mail-wm1-x32a.google.com with SMTP id p36-20020a05600c1da400b003bd24ccae2eso828106wms.3 for ; Tue, 04 Oct 2022 06:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=AhAdWLqI3hTu5u5BSfQpR5bY8MIRwXJMzwU8OB2KT/Q=; b=otfUaFN4/uJNaOPhocyTvtcBj6YfhgJMTAKx8hZiKYdI9utJ6/LIgEvdkwC4pgzTTm vm9ItVBk9ijPffAFfpV0a2Gjkn3ts4jBJvIcRnhtvd4e/e2iFflDo2Jlj2chZ1ba0407 waLROZrzw6SFEDoIzIWXQidl6Xhm0XkBYrreBt8JPtXU5MbAGZVuIR4mUfzgRWIK6dQb 3ZEip5Eqfzhoik6L6lWu+FdEDbCcCjQRe1CCnTD/EKdA5maFiwXFeo8wRZhc6svnQAbx iJiITo9XdXW7teZgFkMZQu47MLquD7QkSVnGBkkJeA+xkFOzjhEJbCdzb6dFIM9CgN74 D3mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=AhAdWLqI3hTu5u5BSfQpR5bY8MIRwXJMzwU8OB2KT/Q=; b=zAAKOQ6B2P50CT5NNJg/09TkwF3+k6QJEWku8++03t8g2vdCmnFHcAXBr8wydIfDoy yowMGXY9tZdVAPhHmGh90eaYeLrolXLff+XZ/6Ms2mfjauWEEtxs4yNZZ6zvUN9wrA0H 860L5d4Q5jlhdVxEijSTbRB0+i0stuFoHIbpcJ9f/MRuHQbzwxk7aQvbWgreKaMzPTWm mYe7uC/jFy/+LhZttXE+mfsUDiUifN5c0OjANqqCSR57bhEwQ9yt0S2XWLWWfLumf+6K Lg65Xna5/Vn4oP1Bwo8tyDyVPR0xKuSQDAWG7zBSu7E57bHjAHKSztAEH19JvHjuaECe y3KA== X-Gm-Message-State: ACrzQf1MYLvwAUo+ExEYZWnfYYCHSlCfEI/xRZFTbkyKH+/SZIalJzJ2 3yi/6XbytQOvLfbTFsCoOvVtdA== X-Received: by 2002:a05:600c:1c84:b0:3b3:ef37:afd3 with SMTP id k4-20020a05600c1c8400b003b3ef37afd3mr9797890wms.155.1664889601644; Tue, 04 Oct 2022 06:20:01 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id c63-20020a1c3542000000b003a6a3595edasm14802487wma.27.2022.10.04.06.19.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:19:57 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 200C21FFCD; Tue, 4 Oct 2022 14:01:41 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathi?= =?utf-8?q?eu-Daud=C3=A9?= , Peter Maydell , Richard Henderson , Eduardo Habkost , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PULL 24/54] tests/tcg: move compiler tests to Makefiles Date: Tue, 4 Oct 2022 14:01:08 +0100 Message-Id: <20221004130138.2299307-25-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32a.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Further decoupling of tests/tcg from the main QEMU Makefile, and making the build more similar between the cross compiler case and the vetted container images. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-25-alex.bennee@linaro.org> diff --git a/configure b/configure index a48a731bf4..ceb1213292 100755 --- a/configure +++ b/configure @@ -2562,73 +2562,11 @@ for target in $target_list; do probe_target_compiler $target if test $got_cross_cc = yes; then - # Test for compiler features for optional tests. We only do this - # for cross compilers because ensuring the docker containers based - # compilers is a requirememt for adding a new test that needs a - # compiler feature. - - echo "BUILD_STATIC=$build_static" >> "$config_target_mak" write_target_makefile >> "$config_target_mak" - case $target in - aarch64-*) - if do_compiler "$target_cc" $target_cflags \ - -march=armv8.1-a+sve -o $TMPE $TMPC; then - echo "CROSS_CC_HAS_SVE=y" >> "$config_target_mak" - fi - if do_compiler "$target_cc" $target_cflags \ - -march=armv8.1-a+sve2 -o $TMPE $TMPC; then - echo "CROSS_CC_HAS_SVE2=y" >> "$config_target_mak" - fi - if do_compiler "$target_cc" $target_cflags \ - -march=armv8.3-a -o $TMPE $TMPC; then - echo "CROSS_CC_HAS_ARMV8_3=y" >> "$config_target_mak" - fi - if do_compiler "$target_cc" $target_cflags \ - -mbranch-protection=standard -o $TMPE $TMPC; then - echo "CROSS_CC_HAS_ARMV8_BTI=y" >> "$config_target_mak" - fi - if do_compiler "$target_cc" $target_cflags \ - -march=armv8.5-a+memtag -o $TMPE $TMPC; then - echo "CROSS_CC_HAS_ARMV8_MTE=y" >> "$config_target_mak" - fi - ;; - ppc*) - if do_compiler "$target_cc" $target_cflags \ - -mpower8-vector -o $TMPE $TMPC; then - echo "CROSS_CC_HAS_POWER8_VECTOR=y" >> "$config_target_mak" - fi - if do_compiler "$target_cc" $target_cflags \ - -mpower10 -o $TMPE $TMPC; then - echo "CROSS_CC_HAS_POWER10=y" >> "$config_target_mak" - fi - ;; - i386-linux-user) - if do_compiler "$target_cc" $target_cflags \ - -Werror -fno-pie -o $TMPE $TMPC; then - echo "CROSS_CC_HAS_I386_NOPIE=y" >> "$config_target_mak" - fi - ;; - esac elif test -n "$container_image"; then + build_static=y echo "build-tcg-tests-$target: docker-image-$container_image" >> $makefile - echo "BUILD_STATIC=y" >> "$config_target_mak" write_container_target_makefile >> "$config_target_mak" - case $target in - aarch64-*) - echo "CROSS_CC_HAS_SVE=y" >> "$config_target_mak" - echo "CROSS_CC_HAS_SVE2=y" >> "$config_target_mak" - echo "CROSS_CC_HAS_ARMV8_3=y" >> "$config_target_mak" - echo "CROSS_CC_HAS_ARMV8_BTI=y" >> "$config_target_mak" - echo "CROSS_CC_HAS_ARMV8_MTE=y" >> "$config_target_mak" - ;; - ppc*) - echo "CROSS_CC_HAS_POWER8_VECTOR=y" >> "$config_target_mak" - echo "CROSS_CC_HAS_POWER10=y" >> "$config_target_mak" - ;; - i386-linux-user) - echo "CROSS_CC_HAS_I386_NOPIE=y" >> "$config_target_mak" - ;; - esac got_cross_cc=yes fi if test $got_cross_cc = yes; then @@ -2637,6 +2575,7 @@ for target in $target_list; do ln -sf "../config-$target.mak" "tests/tcg/$target/config-target.mak" echo "TARGET=$target" >> "$config_target_mak" echo "QEMU=$PWD/$qemu" >> "$config_target_mak" + echo "BUILD_STATIC=$build_static" >> "$config_target_mak" echo "run-tcg-tests-$target: $qemu\$(EXESUF)" >> $makefile tcg_tests_targets="$tcg_tests_targets $target" fi diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index cd0a2ad873..75257f2b29 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -40,10 +40,18 @@ endif # for including , in command strings COMMA := , +NULL := +SPACE := $(NULL) # +TARGET_PREFIX=tests/tcg/$(TARGET):$(SPACE) quiet-@ = $(if $(V),,@$(if $1,printf " %-7s %s\n" "$(strip $1)" "$(strip $2)" && )) quiet-command = $(call quiet-@,$2,$3)$1 +cc-test = $(CC) -Werror $1 -c -o /dev/null -xc /dev/null >/dev/null 2>&1 +cc-option = if $(call cc-test, $1); then \ + echo "$(TARGET_PREFIX)$1 detected" && echo "$(strip $2)=y" >&3; else \ + echo "$(TARGET_PREFIX)$1 not detected"; fi + # $1 = test name, $2 = cmd, $3 = desc ifeq ($(filter %-softmmu, $(TARGET)),) run-test = $(call quiet-command, timeout --foreground $(TIMEOUT) $2 > $1.out, \ @@ -190,4 +198,4 @@ clean: rm -f $(TESTS) *.o $(CLEANFILES) distclean: - rm -f config-target.mak ../config-$(TARGET).mak + rm -f config-cc.mak config-target.mak ../config-$(TARGET).mak diff --git a/tests/tcg/aarch64/Makefile.softmmu-target b/tests/tcg/aarch64/Makefile.softmmu-target index 84a9990f8d..a1368905f5 100644 --- a/tests/tcg/aarch64/Makefile.softmmu-target +++ b/tests/tcg/aarch64/Makefile.softmmu-target @@ -19,6 +19,11 @@ EXTRA_RUNS+=$(MULTIARCH_RUNS) CFLAGS+=-nostdlib -ggdb -O0 $(MINILIB_INC) LDFLAGS+=-static -nostdlib $(CRT_OBJS) $(MINILIB_OBJS) -lgcc +config-cc.mak: Makefile + $(quiet-@)( \ + $(call cc-option,-march=armv8.3-a, CROSS_CC_HAS_ARMV8_3)) 3> config-cc.mak +-include config-cc.mak + # building head blobs .PRECIOUS: $(CRT_OBJS) diff --git a/tests/tcg/aarch64/Makefile.target b/tests/tcg/aarch64/Makefile.target index 9837a809dc..fc8d90ed69 100644 --- a/tests/tcg/aarch64/Makefile.target +++ b/tests/tcg/aarch64/Makefile.target @@ -17,6 +17,15 @@ run-fcvt: fcvt $(call run-test,$<,$(QEMU) $<, "$< on $(TARGET_NAME)") $(call diff-out,$<,$(AARCH64_SRC)/fcvt.ref) +config-cc.mak: Makefile + $(quiet-@)( \ + $(call cc-option,-march=armv8.1-a+sve, CROSS_CC_HAS_SVE); \ + $(call cc-option,-march=armv8.1-a+sve2, CROSS_CC_HAS_SVE2); \ + $(call cc-option,-march=armv8.3-a, CROSS_CC_HAS_ARMV8_3); \ + $(call cc-option,-mbranch-protection=standard, CROSS_CC_HAS_ARMV8_BTI); \ + $(call cc-option,-march=armv8.5-a+memtag, CROSS_CC_HAS_ARMV8_MTE)) 3> config-cc.mak +-include config-cc.mak + # Pauth Tests ifneq ($(CROSS_CC_HAS_ARMV8_3),) AARCH64_TESTS += pauth-1 pauth-2 pauth-4 pauth-5 diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target index 8af066efc5..3273aa8061 100644 --- a/tests/tcg/i386/Makefile.target +++ b/tests/tcg/i386/Makefile.target @@ -5,6 +5,12 @@ I386_SRC=$(SRC_PATH)/tests/tcg/i386 # Set search path for all sources VPATH += $(I386_SRC) +config-cc.mak: Makefile + $(quiet-@)( \ + $(call cc-option,-fno-pie, CROSS_CC_HAS_I386_NOPIE)) 3> config-cc.mak + +-include config-cc.mak + I386_SRCS=$(notdir $(wildcard $(I386_SRC)/*.c)) ALL_X86_TESTS=$(I386_SRCS:.c=) SKIP_I386_TESTS=test-i386-ssse3 test-avx test-3dnow test-mmx diff --git a/tests/tcg/ppc64/Makefile.target b/tests/tcg/ppc64/Makefile.target index 7db7a3e2b3..f081f1c683 100644 --- a/tests/tcg/ppc64/Makefile.target +++ b/tests/tcg/ppc64/Makefile.target @@ -4,6 +4,13 @@ VPATH += $(SRC_PATH)/tests/tcg/ppc64 +config-cc.mak: Makefile + $(quiet-@)( \ + $(call cc-option,-mpower8-vector, CROSS_CC_HAS_POWER8_VECTOR); \ + $(call cc-option,-mpower10, CROSS_CC_HAS_POWER10)) 3> config-cc.mak + +-include config-cc.mak + ifneq ($(CROSS_CC_HAS_POWER8_VECTOR),) PPC64_TESTS=bcdsub non_signalling_xscv endif From patchwork Tue Oct 4 13:01:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612256 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp190428pvb; Tue, 4 Oct 2022 06:58:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6eXsJleU2g7d7ezb1cdGGUWjhO1oDZ0y7KbCfBR00/0z2bLW/uRFV0peoW5N72tB2roR9U X-Received: by 2002:a05:6214:21c9:b0:4b1:bd8e:7235 with SMTP id d9-20020a05621421c900b004b1bd8e7235mr1065512qvh.82.1664891880632; Tue, 04 Oct 2022 06:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664891880; cv=none; d=google.com; s=arc-20160816; b=DtUnZA0Ik0Q1/7zXkG+mpH3jzN7iEZ+j6umFqa9iDBqAE+6YgC12jVI+eTArbhLcHq DjAH1nv+cuhL/HjdHsjFh5AHhqZu+YjyGDR1gHd9Cj4EFp+LXw4P18Tzuqjr34hOogVj xe06MExasb+nw5R5G32njCarK6q9q5kB7MYqaMbqFbVx81o8In6McvXVP+P+NA/1XUOP Z32Pdl2szFFfVmmLMBWrXG6OG3Aq/Mupqe++k2qHv12jmcCb0/qDqdE3PduBjld33rpU bWAjLJHXpEX3b7wwYnDpG/zOXrpxcLXlf5bSpZK5TMe6AkAGwdE3Ob907FxcvPk8ArvE 70uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MHbtMQn7BeHpxgqkJsPIt0RHY+yOQsgTrV/U36wTO+Y=; b=ZtTBD+32MMADOfMww9uoAkv0NBqRrcE90w9/c74ZmOFtl0yWz5x6vtIt1i2jhCbnxz U/99Tv86A/jgDxmDY79sNpGQSKUGw8XdlVzispWNO9fuSpOgf6k2o5WZAfTvFEEqaaBx Iu+0PIOfTvpB3vFOO6tQvZXFyIlff5Hi3sHZmo8+kbTL8qXqB9Lj+UENV+zrRtOUpYBK 0cPfTes0QoLkefBoC9npTBAV3vaLdD1kUwHQnPRnD8PkF5B5xfoiAML6n2e+a6lZL1cY n+E1DfrjpC2dkMOIkb3eDr1pb8CzENwhY3SkqoLF5Go20EkA8axA/+Rj2Nsl+Te+5DD+ Rjlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eozIfIsG; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id dm32-20020a05620a1d6000b006e1939d4d9asi28351qkb.531.2022.10.04.06.58.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:58:00 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eozIfIsG; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:53618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiQq-0007yv-3e for patch@linaro.org; Tue, 04 Oct 2022 09:58:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhgO-0007R8-Rj for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:00 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:42945) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgM-00008r-PC for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:00 -0400 Received: by mail-wm1-x32c.google.com with SMTP id o20-20020a05600c4fd400b003b4a516c479so7505386wmq.1 for ; Tue, 04 Oct 2022 06:09:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=MHbtMQn7BeHpxgqkJsPIt0RHY+yOQsgTrV/U36wTO+Y=; b=eozIfIsGkCNh6j6UaEkv9JCMk/NczefQ8wMwHXF9M6gh+KNsEEeuL2CAGZys7M4ju7 /5bse6/gXvVdskyHoe3KQHe6dpfB4yBBD6jIuFmeQJJ4ewgJNbJDe7RilvC58Hu7KTRA /fRwxWot77VedAPHF6HErioKUhdaGAunpdQMoRPzVq0G/0OhpnA7NpVH75a2rGVFuQF5 HPrvwmFKRHTeLU/OtyCewjRt8Clt3sHqBptvox8GZveFTSkgF7OYZnMxH6ZOmh18kC3D 5e6QMk+u63ive5LSgXtORIYryq6zZCAjrB5/MdW0SdZwa7qi9jandTbtf47Lg+qyYrqu 0zRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=MHbtMQn7BeHpxgqkJsPIt0RHY+yOQsgTrV/U36wTO+Y=; b=it6XA+aUNBG5t7JXRSSNkYHpIGM1BVrZ22ENKmPYFUOPHl/06F8qwx/9IhBjcrXH2G T4xEQy0OY66SY5o5+e96HfzKn0BnkjuR+XXPUO22g6jxkfHfTEJV/koaXUK4obADxk7D ZhRze2SaEHRdPDUxBVlV7zar9AgMV6TIbYRCeGbYlGDv1YHyadt1mS8SBe8uX5NK8Gmj y9bNbF1fTzEW45x7j68nv8uGJsHyiA3/pM7pjpro+D9pYejZjjqwTQiAkBrMFmaLXV9u Kq7n0w7rE32/RzJeLA4y6DapIGPbSlMHRiQ/t9dDOq3/liqRFXvPT9HgCKqmisiPrRtU sodQ== X-Gm-Message-State: ACrzQf3QyQP2RbW3aPVbxluiZQfEk5lMrFyz/eYSGpDon9vQS/pYgEMr EG0B9gujdSCUrSiq5pU3IXuXFw== X-Received: by 2002:a05:600c:3781:b0:3b4:63c8:554b with SMTP id o1-20020a05600c378100b003b463c8554bmr10071190wmr.25.1664888996890; Tue, 04 Oct 2022 06:09:56 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id n10-20020a05600c500a00b003b7b36dcb8dsm10931602wmr.31.2022.10.04.06.09.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:09:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 3C7D21FFCE; Tue, 4 Oct 2022 14:01:41 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= Subject: [PULL 25/54] configure: move tests/tcg/Makefile.prereqs to root build directory Date: Tue, 4 Oct 2022 14:01:09 +0100 Message-Id: <20221004130138.2299307-26-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32c.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini It will not be specific to tests/tcg anymore, since it will be possible to build firmware using container-based cross compilers too. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-26-alex.bennee@linaro.org> diff --git a/configure b/configure index ceb1213292..cbeac99b2b 100755 --- a/configure +++ b/configure @@ -2185,6 +2185,7 @@ write_target_makefile() { } write_container_target_makefile() { + echo "$1: docker-image-$container_image" >> Makefile.prereqs echo "EXTRA_CFLAGS=$target_cflags" if test -n "$container_cross_cc"; then echo "CC=$docker_py cc --cc $container_cross_cc -i qemu/$container_image -s $source_path --" @@ -2297,6 +2298,8 @@ for f in $LINKS ; do fi done +echo "# Automatically generated by configure - do not modify" > Makefile.prereqs + # Mac OS X ships with a broken assembler roms= if test "$targetos" != "darwin" && test "$targetos" != "sunos" && \ @@ -2524,10 +2527,7 @@ if test "$safe_stack" = "yes"; then fi # tests/tcg configuration -(makefile=tests/tcg/Makefile.prereqs -echo "# Automatically generated by configure - do not modify" > $makefile - -config_host_mak=tests/tcg/config-host.mak +(config_host_mak=tests/tcg/config-host.mak mkdir -p tests/tcg echo "# Automatically generated by configure - do not modify" > $config_host_mak echo "SRC_PATH=$source_path" >> $config_host_mak @@ -2565,8 +2565,7 @@ for target in $target_list; do write_target_makefile >> "$config_target_mak" elif test -n "$container_image"; then build_static=y - echo "build-tcg-tests-$target: docker-image-$container_image" >> $makefile - write_container_target_makefile >> "$config_target_mak" + write_container_target_makefile build-tcg-tests-$target >> "$config_target_mak" got_cross_cc=yes fi if test $got_cross_cc = yes; then @@ -2576,11 +2575,11 @@ for target in $target_list; do echo "TARGET=$target" >> "$config_target_mak" echo "QEMU=$PWD/$qemu" >> "$config_target_mak" echo "BUILD_STATIC=$build_static" >> "$config_target_mak" - echo "run-tcg-tests-$target: $qemu\$(EXESUF)" >> $makefile + echo "run-tcg-tests-$target: $qemu\$(EXESUF)" >> Makefile.prereqs tcg_tests_targets="$tcg_tests_targets $target" fi done -echo "TCG_TESTS_TARGETS=$tcg_tests_targets" >> $makefile) +echo "TCG_TESTS_TARGETS=$tcg_tests_targets" >> config-host.mak) if test "$skip_meson" = no; then cross="config-meson.cross.new" diff --git a/Makefile b/Makefile index 0fcde48bec..357592ad39 100644 --- a/Makefile +++ b/Makefile @@ -42,6 +42,9 @@ configure: ; ifneq ($(wildcard config-host.mak),) include config-host.mak +include Makefile.prereqs +Makefile.prereqs: config-host.mak + git-submodule-update: .git-submodule-status: git-submodule-update config-host.mak Makefile: .git-submodule-status @@ -217,7 +220,7 @@ qemu-%.tar.bz2: distclean: clean recurse-distclean -$(quiet-@)test -f build.ninja && $(NINJA) $(NINJAFLAGS) -t clean -g || : - rm -f config-host.mak qemu-bundle + rm -f config-host.mak Makefile.prereqs qemu-bundle rm -f tests/tcg/config-*.mak rm -f config.status rm -f roms/seabios/config.mak diff --git a/tests/Makefile.include b/tests/Makefile.include index 9ed67721e2..9422ddaece 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -36,9 +36,6 @@ export SRC_PATH SPEED = quick --include tests/tcg/Makefile.prereqs -tests/tcg/Makefile.prereqs: config-host.mak - # Per guest TCG tests BUILD_TCG_TARGET_RULES=$(patsubst %,build-tcg-tests-%, $(TCG_TESTS_TARGETS)) CLEAN_TCG_TARGET_RULES=$(patsubst %,clean-tcg-tests-%, $(TCG_TESTS_TARGETS)) From patchwork Tue Oct 4 13:01:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612237 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp177821pvb; Tue, 4 Oct 2022 06:36:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5CsZ5my7dK6vEdCe5XrnZbWBEXgsAV+D3lfcm+BzYw7cv0kij7y5LhLoBlcQeomlxsT1b9 X-Received: by 2002:a05:620a:4382:b0:6ce:2761:28d0 with SMTP id a2-20020a05620a438200b006ce276128d0mr16645074qkp.329.1664890588043; Tue, 04 Oct 2022 06:36:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664890588; cv=none; d=google.com; s=arc-20160816; b=ehv/iWdVli1IVgF9DH9emj6rU1/7b0FtwUHi0CozmaRSdV3YmHy6DFQr+w3f9NAjg9 /s4EBElguOSiNfE7EJKaCLi17shjQSIxIjUWsH74q+Ysv6ZpJESHFiipwF4YmSwOdbUp 9yWqMhQB4a350hDuHzBOamFQIjY6IaTVaUAl5uzZg5HwUJZnrY1IBmhlIYWUg5BMtTg4 djqmnrUz3cjFfl8oOhanADGJSVnFCdYZqHMe+rMtrQ2AQuGOzY0l+jCdp5t806eMc6WY Hli+6SoyafpEzyCxywlO8VKNyRIW/Z8aMurtImm9P0JwPE2OxRiR3uOQ6I9piemvbvOs BD2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1wbzyVsrNixDoUvL/VKPckTR8bYZ6U3Uq3uU6HTglTE=; b=SNCLTX13C6uVlsQOma9UgAefkGcSJVNlrMlKdIYUODxIsOAtKeYIJNddhJ+t96oGhE Ihcml2oSHOO8cSsUyDfyZR/4pWHBUDL8o4kdwB9TdRErBgjdpnUds4UQRCnDZlQ4bfUH Vr0k+OeLQEmh09TxNnCZwqxbaMGDig1WE7NX/ZkIu1vHAVHjMNxX/XOcVOGSE+++2KHc V6kRvMEt4JJ4H4jN8dqtESI3kXJUqDEz0UQc5U5hkMI/rG3rqTiFstQV94NeUuYdg09D ZWGO2gf3a4b+W6GLmmXWSBx6+QRjAQUswExA485aoyyB2OOCnvAoXuK7ekf5Wp5HWgyB Y8fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=opqKd8Qr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q11-20020ad4574b000000b004b185b6f0d5si989631qvx.265.2022.10.04.06.36.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:36:28 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=opqKd8Qr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:54312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofi5z-00022u-HF for patch@linaro.org; Tue, 04 Oct 2022 09:36:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhgN-0007NU-4X for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:09:59 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:43631) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgI-00008H-TD for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:09:57 -0400 Received: by mail-wr1-x434.google.com with SMTP id n12so1659367wrp.10 for ; Tue, 04 Oct 2022 06:09:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=1wbzyVsrNixDoUvL/VKPckTR8bYZ6U3Uq3uU6HTglTE=; b=opqKd8QrN8gqA3s+BpAQ5Vf8OEYhgdufMMlr/U3KZwZ87/CYLmx5dozvdF24YjauVO KoCWsagjKItrbpZrXEqessDrGGtKvr32Q4m5hXL6XQuRHbJ4s4UNE+jNHflx7TiREt8x 1DBuxsHN5vggw5KmuQkGZb0fGCrOqhZfwG9LR0QuIY91KIT/QhKkpURqiTbuZOlnW4nc 2JcT4Wqvl6Gey6GF0h2IVAoVDslp2xevgMcLn/k4zEgQ410mp+aIeAabSVKSdgRLiJM/ vyIjCmK3kYDRNpiYFb3swBkGlS8tZkiRN9dPs9mPnYYUuKQ5DyYnAyXYDnHqkjz8PCEd HpZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=1wbzyVsrNixDoUvL/VKPckTR8bYZ6U3Uq3uU6HTglTE=; b=yX7ACRdivicPWxyu2lnW2+LcuEUMWKKRCsvzuq0Ksgh5EMe/tuKTstQ+EzwH33qgtv 3YzJLqnnP3tvz9024arIDlymCS271igL+nUoKQf9XHAh9fYaWBl7mA9Z1J+/GfESZzxf Ep0eioCf0FqrQnLMrnXeGq06shiueFQI8JD4mm0YrLIjA6RCBLWxarg0BNMInMSXQ1uK n9urrNPO5japmqTqyFwS+ouUiKHs6N7/AyVha88p+CvC5ei9EPicWu7DDqFptps88iUQ X7Wdr+43shmXrugpFchpunruwROekUd26F7WjyTg5kbz8Vu5lL0MIo33CjRk9mp8xbbM Zgkw== X-Gm-Message-State: ACrzQf14ZLLenA3NoswgQQlGR0q5uz0WQfrG07H78XJ0kBZjPnP/1vPq /IYavmf/paaZr3WT2rbDMWa3Ew== X-Received: by 2002:a5d:64c7:0:b0:22e:43a6:2801 with SMTP id f7-20020a5d64c7000000b0022e43a62801mr5056523wri.612.1664888992304; Tue, 04 Oct 2022 06:09:52 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id d16-20020adfe890000000b0022e035a4e93sm11819128wrm.87.2022.10.04.06.09.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:09:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 55B371FFCF; Tue, 4 Oct 2022 14:01:41 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= Subject: [PULL 26/54] configure: unify creation of cross-compilation Makefiles Date: Tue, 4 Oct 2022 14:01:10 +0100 Message-Id: <20221004130138.2299307-27-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x434.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Let write_target_makefile handle both host and container cross compilers. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-27-alex.bennee@linaro.org> diff --git a/configure b/configure index cbeac99b2b..8b495d4453 100755 --- a/configure +++ b/configure @@ -2157,51 +2157,49 @@ probe_target_compiler() { write_target_makefile() { echo "EXTRA_CFLAGS=$target_cflags" - if test -n "$target_cc"; then - echo "CC=$target_cc" - echo "CCAS=$target_ccas" - fi - if test -n "$target_ar"; then - echo "AR=$target_ar" - fi - if test -n "$target_as"; then - echo "AS=$target_as" - fi - if test -n "$target_ld"; then - echo "LD=$target_ld" - fi - if test -n "$target_nm"; then - echo "NM=$target_nm" - fi - if test -n "$target_objcopy"; then - echo "OBJCOPY=$target_objcopy" - fi - if test -n "$target_ranlib"; then - echo "RANLIB=$target_ranlib" - fi - if test -n "$target_strip"; then - echo "STRIP=$target_strip" - fi -} - -write_container_target_makefile() { - echo "$1: docker-image-$container_image" >> Makefile.prereqs - echo "EXTRA_CFLAGS=$target_cflags" - if test -n "$container_cross_cc"; then - echo "CC=$docker_py cc --cc $container_cross_cc -i qemu/$container_image -s $source_path --" - echo "CCAS=$docker_py cc --cc $container_cross_cc -i qemu/$container_image -s $source_path --" + if test -z "$target_cc" && test -z "$target_as"; then + test -z "$container_image" && error_exit "Internal error: could not find cross compiler for $1?" + echo "$1: docker-image-$container_image" >> Makefile.prereqs + if test -n "$container_cross_cc"; then + echo "CC=$docker_py cc --cc $container_cross_cc -i qemu/$container_image -s $source_path --" + echo "CCAS=$docker_py cc --cc $container_cross_cc -i qemu/$container_image -s $source_path --" + fi + echo "AR=$docker_py cc --cc $container_cross_ar -i qemu/$container_image -s $source_path --" + echo "AS=$docker_py cc --cc $container_cross_as -i qemu/$container_image -s $source_path --" + echo "LD=$docker_py cc --cc $container_cross_ld -i qemu/$container_image -s $source_path --" + echo "NM=$docker_py cc --cc $container_cross_nm -i qemu/$container_image -s $source_path --" + echo "OBJCOPY=$docker_py cc --cc $container_cross_objcopy -i qemu/$container_image -s $source_path --" + echo "RANLIB=$docker_py cc --cc $container_cross_ranlib -i qemu/$container_image -s $source_path --" + echo "STRIP=$docker_py cc --cc $container_cross_strip -i qemu/$container_image -s $source_path --" + else + if test -n "$target_cc"; then + echo "CC=$target_cc" + echo "CCAS=$target_ccas" + fi + if test -n "$target_ar"; then + echo "AR=$target_ar" + fi + if test -n "$target_as"; then + echo "AS=$target_as" + fi + if test -n "$target_ld"; then + echo "LD=$target_ld" + fi + if test -n "$target_nm"; then + echo "NM=$target_nm" + fi + if test -n "$target_objcopy"; then + echo "OBJCOPY=$target_objcopy" + fi + if test -n "$target_ranlib"; then + echo "RANLIB=$target_ranlib" + fi + if test -n "$target_strip"; then + echo "STRIP=$target_strip" + fi fi - echo "AR=$docker_py cc --cc $container_cross_ar -i qemu/$container_image -s $source_path --" - echo "AS=$docker_py cc --cc $container_cross_as -i qemu/$container_image -s $source_path --" - echo "LD=$docker_py cc --cc $container_cross_ld -i qemu/$container_image -s $source_path --" - echo "NM=$docker_py cc --cc $container_cross_nm -i qemu/$container_image -s $source_path --" - echo "OBJCOPY=$docker_py cc --cc $container_cross_objcopy -i qemu/$container_image -s $source_path --" - echo "RANLIB=$docker_py cc --cc $container_cross_ranlib -i qemu/$container_image -s $source_path --" - echo "STRIP=$docker_py cc --cc $container_cross_strip -i qemu/$container_image -s $source_path --" } - - ########################################## # check for vfio_user_server @@ -2560,15 +2558,9 @@ for target in $target_list; do ;; esac - probe_target_compiler $target - if test $got_cross_cc = yes; then - write_target_makefile >> "$config_target_mak" - elif test -n "$container_image"; then - build_static=y - write_container_target_makefile build-tcg-tests-$target >> "$config_target_mak" - got_cross_cc=yes - fi - if test $got_cross_cc = yes; then + if probe_target_compiler $target || test -n "$container_image"; then + test -n "$container_image" && build_static=y + write_target_makefile "build-tcg-tests-$target >> "$config_target_mak" mkdir -p "tests/tcg/$target" ln -sf "$source_path/tests/tcg/Makefile.target" "tests/tcg/$target/Makefile" ln -sf "../config-$target.mak" "tests/tcg/$target/config-target.mak" From patchwork Tue Oct 4 13:01:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612268 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp205109pvb; Tue, 4 Oct 2022 07:16:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4so4bf/lh38Vg0QmxNRYoiSCRub7C4IW0bYVujLmhYNQrWQPr/lLssKYSDZ8XS655kEK5Y X-Received: by 2002:a05:622a:96:b0:35d:43a2:601b with SMTP id o22-20020a05622a009600b0035d43a2601bmr19743961qtw.423.1664893008719; Tue, 04 Oct 2022 07:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664893008; cv=none; d=google.com; s=arc-20160816; b=b6VJKBUMxCNbQo3xy4X0rgk1BNtSdEWuLXCY/kUzCJk2tuiZW9JEzNdS4L+sc6aaDV w2kP9Y0/rsWDTvThA7eh5DiZ5o6CMSVnepQEjNOk3rBgMw5BR2mkdOuy51gyVmfLVNoZ bLnLY+1IEAVSQ361vL0pXq4kUTzoX3rK6ApNwYp1cQXH5DeYh+zch8U2MyEO/fLaQmWp BrpzW7BVAhShiXKZgnpFM4s6NMTI2UZ1ObbZxzJiJVpXlJdfZnrh7YxTqTehLjRPtoOK vLbDcLRm4gKRqi4iMPA1ujiQAoQOFEHaMT14cbbgDj8Q+gt66ApDSQ3905zz9T/A49Xr r8eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YfuwARZoVOH5mYGRHlBCDKxwrAb3kVRqcznzJXbhhCE=; b=uVag+urVCSqysAKPea4IMC16q8JiJDDga5dA5PkpBdm+krqgKF67PCFasnKREYxr6T PG1kaat62PARe0JYTLe75eRJ/MNKtBwM7N0MFf1qWaLOXXL5v4chFVt3vdq/ex0P3Oqa XqW7NfTaoUpeeHvPdpygALVzpyiaqsySHLv2kc8SEuqgs6nz4bJm844EivnirdIKwSub M9ObHXEba7HWB8lTSWfKGWouaJppngGpfuiopJtsx9OVZheDGLKyNUFq4s4W0S4mq2Ne Nqq1VGutn+hKmClGrvMs7rvvFhslmTULOHlVL/UmbzQPDhdST/3n7sY6asAA+a2sAPE1 J7qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yqrRh5xQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y16-20020a05620a25d000b006bb29b76047si4520158qko.644.2022.10.04.07.16.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 07:16:48 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yqrRh5xQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:51186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofij2-0008Ua-3H for patch@linaro.org; Tue, 04 Oct 2022 10:16:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofi9L-0001cg-22 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:39:55 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:39785) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofi9J-00023a-7e for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:39:54 -0400 Received: by mail-wr1-x42c.google.com with SMTP id f11so18727072wrm.6 for ; Tue, 04 Oct 2022 06:39:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=YfuwARZoVOH5mYGRHlBCDKxwrAb3kVRqcznzJXbhhCE=; b=yqrRh5xQnRgFUtAUW8Y+XqonaxFK7XtmhaYUWqsO3MpO+s0BOWeKI0lIlPQD6RMD5d RVc+Cr3QilQwPd+iNMiic8rYAu2iVjE4dI8HNLXDOG+zlEkALbfuRA2UnQNjVxthEvay hvpF4ZJGBmfpoXinEDZPT84wQqU1W2uDXv3O2ArCN0CbotqPVykr1rblg+3hu65dvWVv FAOpf5a3CkuJJaQO/rypkQgOe92FypfTvGrMZnxoRqvvVXnVeOeZ/ARfj4Xq7CgWdFtx LsPkVCM2RHBgs5tGDU5rCEkFwoFPlQr4AcYQQ2mJ9nmSfFwRoC9UALy1LBB5Tu9JmTs3 YPKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=YfuwARZoVOH5mYGRHlBCDKxwrAb3kVRqcznzJXbhhCE=; b=eQozTvoOX+Y5DkJomTEBIG1pVYjVFVmgj1LoREJIWRAFKIJAgnPpfD9QvhdCP0xmji OQd1lnoUQG1+++fNhbcRrN4hmW8rJnsLUmbifPqLhSiuRZwE4DMpdHzmECGgbHSWeVIA pUgwM879MViXqOG0IRnGPbLRkZ52r4PpekUZ1y/pZhQ+c5AJ+KigG+xfGGyIpLOTkCNV dyUwi4T0Ed3ppFaHV/xoMOX0aVqeA73nXmRJfYg/p9L9B3J5XtiVJPQZFYgrG2kuCcKy 1iWIOCRgSfAjUMlvUORxy4IBPcuq6hnGmkGb2oWMPOrkuqJBoF02SkD1iyEns+VD+Ace V56w== X-Gm-Message-State: ACrzQf0rMloLu+hdPR7/CQUtdYf2IiVhdSrmbtaTJoyYNdys1HpMxmJL IW67XDpJcIDbX8jL0rtu14xoFw== X-Received: by 2002:a5d:5a0d:0:b0:228:da3f:738 with SMTP id bq13-20020a5d5a0d000000b00228da3f0738mr16379642wrb.526.1664890791679; Tue, 04 Oct 2022 06:39:51 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id l7-20020a05600c4f0700b003b4c979e6bcsm20350036wmq.10.2022.10.04.06.39.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:39:50 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 70DAE1FFBB; Tue, 4 Oct 2022 14:01:41 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= Subject: [PULL 27/54] configure: cleanup creation of tests/tcg target config Date: Tue, 4 Oct 2022 14:01:11 +0100 Message-Id: <20221004130138.2299307-28-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42c.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Remove the symlink to tests/tcg/config-*.mak, which is possible now that unused target config files are not created either. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-28-alex.bennee@linaro.org> diff --git a/configure b/configure index 8b495d4453..c175650eb9 100755 --- a/configure +++ b/configure @@ -2540,10 +2540,6 @@ tcg_tests_targets= for target in $target_list; do arch=${target%%-*} - config_target_mak=tests/tcg/config-$target.mak - - echo "# Automatically generated by configure - do not modify" > $config_target_mak - echo "TARGET_NAME=$arch" >> "$config_target_mak" case $target in xtensa*-linux-user) # the toolchain is not complete with headers, only build softmmu tests @@ -2560,13 +2556,15 @@ for target in $target_list; do if probe_target_compiler $target || test -n "$container_image"; then test -n "$container_image" && build_static=y - write_target_makefile "build-tcg-tests-$target >> "$config_target_mak" mkdir -p "tests/tcg/$target" + config_target_mak=tests/tcg/$target/config-target.mak ln -sf "$source_path/tests/tcg/Makefile.target" "tests/tcg/$target/Makefile" - ln -sf "../config-$target.mak" "tests/tcg/$target/config-target.mak" + echo "# Automatically generated by configure - do not modify" > "$config_target_mak" + echo "TARGET_NAME=$arch" >> "$config_target_mak" echo "TARGET=$target" >> "$config_target_mak" - echo "QEMU=$PWD/$qemu" >> "$config_target_mak" + write_target_makefile "build-tcg-tests-$target" >> "$config_target_mak" echo "BUILD_STATIC=$build_static" >> "$config_target_mak" + echo "QEMU=$PWD/$qemu" >> "$config_target_mak" echo "run-tcg-tests-$target: $qemu\$(EXESUF)" >> Makefile.prereqs tcg_tests_targets="$tcg_tests_targets $target" fi diff --git a/Makefile b/Makefile index 357592ad39..a48103cc8a 100644 --- a/Makefile +++ b/Makefile @@ -221,7 +221,7 @@ qemu-%.tar.bz2: distclean: clean recurse-distclean -$(quiet-@)test -f build.ninja && $(NINJA) $(NINJAFLAGS) -t clean -g || : rm -f config-host.mak Makefile.prereqs qemu-bundle - rm -f tests/tcg/config-*.mak + rm -f tests/tcg/*/config-target.mak tests/tcg/config-host.mak rm -f config.status rm -f roms/seabios/config.mak rm -f qemu-plugins-ld.symbols qemu-plugins-ld64.symbols diff --git a/meson.build b/meson.build index 8dc661363f..ac5ef05c21 100644 --- a/meson.build +++ b/meson.build @@ -3738,7 +3738,7 @@ summary(summary_info, bool_yn: true, section: 'Compilation') summary_info = {} have_cross = false foreach target: target_dirs - tcg_mak = meson.current_build_dir() / 'tests/tcg' / 'config-' + target + '.mak' + tcg_mak = meson.current_build_dir() / 'tests/tcg' / target / 'config-target.mak' if fs.exists(tcg_mak) config_cross_tcg = keyval.load(tcg_mak) if 'CC' in config_cross_tcg From patchwork Tue Oct 4 13:01:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612271 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp211731pvb; Tue, 4 Oct 2022 07:27:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6pWxXxaKc9qi7Yrdsyy9jq7aENQzzZ6vcSsWZtJ/CofVknv9+ZpfXucJRvPD+cFPr0zC57 X-Received: by 2002:a05:6214:2402:b0:4b1:85ab:489f with SMTP id fv2-20020a056214240200b004b185ab489fmr9719750qvb.108.1664893659926; Tue, 04 Oct 2022 07:27:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664893659; cv=none; d=google.com; s=arc-20160816; b=d1LzNIYqW+EXxyybDNXKs6G+XEOnwMzFHLZlHuhcoilwzz3wYnBZlEHHSK8mVcMaWt Yb2M33xzg5szUrZDfiJ51sGvNPYJzvGgalJysJ+eQs/BjTCnq6OFeonw2d5lFK7d8rdP UjPpUIgMV97LxZxQO+dEnE+V2tb8c29jU0ASnNSSGY2ymhg28dGbAjRYHyRJXFbZef7n LDdooiXT3NcL1z72PUNeoRh1eoXIbFtShAQpwBhp/BURVBZAsb3g+OAJDYqoNLDOD+2k 64cujTl3o8lQTlEb2WBf9YxnYmmzdUOMpl7K+zt65cY+lqw3G/saGvh/KmfR6HwVJxpG baVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qMIvH//upoRJdnrFthamFbVxWHc0yjhMEDTF8ktkueE=; b=sXeJlliSYP4F/6ra6rvt9ZgKbcDQupqgQ/dp1Lr3HpaHoJRm2Ehn/sXowUxQmU8Bn0 /DK2iyc5FDXcVmQljVCHPQKAvuQMnW0qdwoKyzSzp7Qky4LZ/Xa6OY9ZmADAwDp0IHrX WBwVszBMIPzougqwig+sTn8j4X2SqyfOqvdFz+0XFu+KfRnbvVdHoyVK1ZNOxDUzLA7y i1YmTeCJ9IkSr1veqYoE3/aAq4AuYDd4O8ZpApLXTCY4qYDr//7KE3dCIL15d+0TzUvN D8Duq1rTbAbMF16B5b262JpcBlLE3QGfrTAJBZZTqLccfmw96TtUjcEQSFjMNV9qPQrM RRaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NdYQZmQB; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id gw6-20020a0562140f0600b004afb21d2afbsi1082171qvb.213.2022.10.04.07.27.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 07:27:39 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NdYQZmQB; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:42460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofitX-0005KY-ED for patch@linaro.org; Tue, 04 Oct 2022 10:27:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhqX-0001Ny-Lz for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:31 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:43767) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhq7-0001sS-L7 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:07 -0400 Received: by mail-wr1-x42b.google.com with SMTP id n12so1703741wrp.10 for ; Tue, 04 Oct 2022 06:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=qMIvH//upoRJdnrFthamFbVxWHc0yjhMEDTF8ktkueE=; b=NdYQZmQBQc5jCvml1rIZwtLeWhr9XkDVNlItpyozwLxlxDdz6eEA/HtujIWORRB2bO jkfdKxZa7Bkkg2cVewokUkJnlvZ5DCyx6z7KmaCfLtBU0hrs8IBdYS4UYykv3qzQLq8N R4ih5TsnGQ70fSKEM6yrn534oQo3MTi+QzubugfIKJjZd0OwabQN0rm5aJDI2Hy3fwZD wCA5iA9yz2nIfFhYp/Da2lNqN2CPKhDpBN+udKoKrqYkJgRlRHUrzqGNz0Pbr1XK91Bo ynlgJ7nBb/k5MZPGmmAtLCAYkKerB2zjldjD7RPyVBHOfy0Cz9XTNWjtNQBWNjzp6jD7 hvzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=qMIvH//upoRJdnrFthamFbVxWHc0yjhMEDTF8ktkueE=; b=YBNa7+ti5+ComzLWPQPJPJSCMiJWg4lqu6GogL6wMtLyT4JC0GEjE11yeazM0FGzWP SIAs4IwlXYxSSDNJy3PIrIE/R0Nh7CPhu8P2q22n4kawevtIxJ+ADLzwuAdZzEO/X4XZ i7vN/Hfa1sQ56iAHh01CFTpnsYM+gpeT+tJoecrlYZwuYRx3CI9Ey6M2rmCbY/+Hj5dg Kga6Z6/d1X/ERZ5eKtmyTO5gxgMFJTtE4hXLw/K8z+Y7oD3nGbYcbeTt9q606Ft3OAKs sjJqwJez8Nr0nWFwa1dPsQgUxoRDo/zhuvpzFYgIM7FuiEqBZd+Oj9RoUhmn16idIvba 5nJg== X-Gm-Message-State: ACrzQf3/stKcY3QL1tJifCY8Uf2X1uYWwWwlQGhnhvES2teazMiM3AOp 7l+r8Yucjr/DTdm0z92VRBs3gV+VhDE+/w== X-Received: by 2002:a5d:47cc:0:b0:22c:86fe:ad94 with SMTP id o12-20020a5d47cc000000b0022c86fead94mr16917848wrc.599.1664889600378; Tue, 04 Oct 2022 06:20:00 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id v3-20020adfebc3000000b0022cc5c03d07sm12005037wrn.53.2022.10.04.06.19.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:19:56 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 861991FFD0; Tue, 4 Oct 2022 14:01:41 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= Subject: [PULL 28/54] configure: build ROMs with container-based cross compilers Date: Tue, 4 Oct 2022 14:01:12 +0100 Message-Id: <20221004130138.2299307-29-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42b.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini s390-ccw remains a bit more complex, because the -march=z900 test is done only for the native cross compiler. Otherwise, all that is needed is to pass the (now mandatory) target argument to write_target_makefile. Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-29-alex.bennee@linaro.org> diff --git a/configure b/configure index c175650eb9..a54e17aca9 100755 --- a/configure +++ b/configure @@ -2152,7 +2152,7 @@ probe_target_compiler() { target_ranlib= target_strip= fi - test -n "$target_cc" + test -n "$target_cc" || test -n "$container_image" } write_target_makefile() { @@ -2307,7 +2307,7 @@ if test "$targetos" != "darwin" && test "$targetos" != "sunos" && \ config_mak=pc-bios/optionrom/config.mak echo "# Automatically generated by configure - do not modify" > $config_mak echo "TOPSRC_DIR=$source_path" >> $config_mak - write_target_makefile >> $config_mak + write_target_makefile pc-bios/optionrom/all >> $config_mak fi if test "$softmmu" = yes && probe_target_compiler ppc-softmmu; then @@ -2315,25 +2315,31 @@ if test "$softmmu" = yes && probe_target_compiler ppc-softmmu; then config_mak=pc-bios/vof/config.mak echo "# Automatically generated by configure - do not modify" > $config_mak echo "SRC_DIR=$source_path/pc-bios/vof" >> $config_mak - write_target_makefile >> $config_mak + write_target_makefile pc-bios/vof/all >> $config_mak fi # Only build s390-ccw bios if the compiler has -march=z900 or -march=z10 # (which is the lowest architecture level that Clang supports) if test "$softmmu" = yes && probe_target_compiler s390x-softmmu; then - write_c_skeleton - do_compiler "$target_cc" $target_cc_cflags -march=z900 -o $TMPO -c $TMPC - has_z900=$? - if [ $has_z900 = 0 ] || do_compiler "$target_cc" $target_cc_cflags -march=z10 -msoft-float -Werror -o $TMPO -c $TMPC; then - if [ $has_z900 != 0 ]; then - echo "WARNING: Your compiler does not support the z900!" - echo " The s390-ccw bios will only work with guest CPUs >= z10." + got_cross_cc=no + if test -n "$target_cc"; then + write_c_skeleton + do_compiler "$target_cc" $target_cc_cflags -march=z900 -o $TMPO -c $TMPC + has_z900=$? + if [ $has_z900 = 0 ] || do_compiler "$target_cc" $target_cc_cflags -march=z10 -msoft-float -Werror -o $TMPO -c $TMPC; then + if [ $has_z900 != 0 ]; then + echo "WARNING: Your compiler does not support the z900!" + echo " The s390-ccw bios will only work with guest CPUs >= z10." + fi + got_cross_cc=yes fi + fi + if test "$got_cross_cc" = yes || test -n "$container_image"; then roms="$roms pc-bios/s390-ccw" config_mak=pc-bios/s390-ccw/config-host.mak echo "# Automatically generated by configure - do not modify" > $config_mak echo "SRC_PATH=$source_path/pc-bios/s390-ccw" >> $config_mak - write_target_makefile >> $config_mak + write_target_makefile pc-bios/s390-ccw/all >> $config_mak # SLOF is required for building the s390-ccw firmware on s390x, # since it is using the libnet code from SLOF for network booting. git_submodules="${git_submodules} roms/SLOF" @@ -2554,7 +2560,7 @@ for target in $target_list; do ;; esac - if probe_target_compiler $target || test -n "$container_image"; then + if probe_target_compiler $target; then test -n "$container_image" && build_static=y mkdir -p "tests/tcg/$target" config_target_mak=tests/tcg/$target/config-target.mak From patchwork Tue Oct 4 13:01:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612226 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp168302pvb; Tue, 4 Oct 2022 06:21:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ElKNDY7hY+UNt5ViW6gMZJ13oSsbIpvbGpS1rW0e9vETPMBANf7FgdlIr4prpYtGzJeg+ X-Received: by 2002:a05:620a:1b89:b0:6ce:8b2b:7f0e with SMTP id dv9-20020a05620a1b8900b006ce8b2b7f0emr16734811qkb.15.1664889711047; Tue, 04 Oct 2022 06:21:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664889711; cv=none; d=google.com; s=arc-20160816; b=GnI0zhO0p0QBR2Vko7nkpt/EFGJcXzw590p7bnNYndp0aFZ+Y1Ku7bozp73hEcxTHs gIqrB3WRE1dqjePdUfAwAbtTAlI2mGPQW7vLFR4q/JH2faGGTuBv+COsOp53DTEl9sa2 WqtBtO2IwcgXPwxgU9fgci9Ov5ZIAeVv3Yde18fcGL/UDWlfIb/L7VIxIKZDT3njGoLt glz7Ai4CJJeAiwGJyTnMe86zrZlOGe58/Cj+ze3wDArZmjUyXhAftBz7fKGEdWkr6j81 Fs9+JYhzrX5k/GytFycMNfiLfuqVZDzdy9IFoMz9Mi8xPlk91yra9/rTAUJ1dBq7WYtL hUBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=uq8LfhcioJyFhfpF+Nws+weqCLsrNs+3nFRic6rgmME=; b=1G2wIZvh467S2Wc92p0eYQ2OTFO470kOpRH3ZHruDTsDeAficwJjoBWIjycxxvOpwZ v4c/+v85tEVZZ8gWUc3oPb3Fue989D3njWHuwOYi1+jT+9a7Hb3gPtpOk22IDWjyX5xf neAB1LGsSyVDUxvT9V4MLtX0XVg6nVTXOLnK8lDU8tbRiz3F1EZpj8tkEsBj2U9E48kO Q3Im3IsLFJhHNM+miYcVUP56EjC2e7wsjbOLJ9RkeLs0cFh6xyy6w6iju+rYm8abUJle 4i5EClAs4OWO9Y5Q9svP5qro0UGIPwX4SCr4bcpOgvEhfdUMcw6mU17fmSUWSRyM1QMU zy7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DUKHHWqH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c2-20020a05620a268200b006cc20c380b6si5502829qkp.426.2022.10.04.06.21.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:21:51 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DUKHHWqH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofhrq-0000lG-FP for patch@linaro.org; Tue, 04 Oct 2022 09:21:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhYb-0008K8-Sj for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:57 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:45873) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhYZ-0007Pr-Ag for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:57 -0400 Received: by mail-wr1-x42d.google.com with SMTP id a10so8867898wrm.12 for ; Tue, 04 Oct 2022 06:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=uq8LfhcioJyFhfpF+Nws+weqCLsrNs+3nFRic6rgmME=; b=DUKHHWqH8xjWzP+lAIsOaqus+R4AVkN147cn+h/5y93wJQo29R2tvXIC5LSCtiDnWA zIaCNoLMyFn9uIpL9ZFN2AJ8nSwSdxveERJL7bDqDtCy+NGwFwMQXgX3i4/kOtNy2olC D5bYuZuHZeD9+ouAUn2/M0ri7n2pXMv2i/2M0jCA8maGCzK7TXhCjATcbgAGd1xFxVjk juBDjIT8EHew5s3vNQpExWSqeCDuYMce9UAV+l9tJEDlu53wU8LVz2vAA0kAk5cLuGD4 oNrRImCrOToALw0c9YjVQj/NWtl/ELVJymSqiMsB0C1GVDFFUqyq88mYQSXL0PY2fy65 6YHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=uq8LfhcioJyFhfpF+Nws+weqCLsrNs+3nFRic6rgmME=; b=Zb6fQkbCZ3uTrCe9IVyp68jGnesDr1sg2A/B8NYIUQ7KiasIiY8AGzoCWD3sMGLBQm wi5F06al3R+FpskTKba5DDBazjjxQkxDN2lQ6lr3iFbK3ypN8F4RqXEu0+rdAmRM/HS+ YsYrghY5/1Ap53Ltz6VWGt6BB+F2xsQjPHTI8ZVhnrpmNUlQYJ1H3SDWbq2fdHDNJMwe 44wjYjUA+/FNzDb+erRHWChJ2FJd+UXHelHOBt0Z69lzw4BJ+XlEXJGbgtrATRyFqKft zEkTVNSEFgKT0eP6vtSejVfCZnJoSuMlARNew5FA0p05kgBguk7LO+Uuh3dAuurOXw25 SvNA== X-Gm-Message-State: ACrzQf3ylBmekWjNHaCNlv1rw0Y3PYbkbYEI1pOeqs5VP6eHItrCgGn5 02WpWScFkdKdqYqho00w0dJCqw== X-Received: by 2002:a5d:5944:0:b0:22e:3c67:75de with SMTP id e4-20020a5d5944000000b0022e3c6775demr6576749wri.5.1664888513322; Tue, 04 Oct 2022 06:01:53 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id o20-20020a05600c339400b003a5c999cd1asm17690494wmp.14.2022.10.04.06.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:01:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9F26F1FFD1; Tue, 4 Oct 2022 14:01:41 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= Subject: [PULL 29/54] pc-bios/optionrom: Adopt meson style Make output Date: Tue, 4 Oct 2022 14:01:13 +0100 Message-Id: <20221004130138.2299307-30-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-30-alex.bennee@linaro.org> diff --git a/pc-bios/optionrom/Makefile b/pc-bios/optionrom/Makefile index f514e4f84b..b1fff0ba6c 100644 --- a/pc-bios/optionrom/Makefile +++ b/pc-bios/optionrom/Makefile @@ -12,8 +12,8 @@ NULL := SPACE := $(NULL) # TARGET_PREFIX := $(patsubst %/,%:$(SPACE),$(TARGET_DIR)) -quiet-@ = $(if $(V),,@) -quiet-command = $(if $(V),$1,$(if $(2),@printf " %-7s %s\n" $2 $3 && $1, @$1)) +quiet-@ = $(if $(V),,@$(if $1,printf "%s\n" "$(TARGET_PREFIX)$1" && )) +quiet-command = $(call quiet-@,$2 $@)$1 # Flags for dependency generation override CPPFLAGS += -MMD -MP -MT $@ -MF $(@D)/$(*F).d @@ -41,19 +41,19 @@ override LDFLAGS = -nostdlib -Wl,-T,$(SRC_DIR)/flat.lds pvh.img: pvh.o pvh_main.o %.o: %.S - $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<,"AS","$@") + $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<,Assembling) %.o: %.c - $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@,"CC","$@") + $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@,Compiling) %.img: %.o - $(call quiet-command,$(CC) $(CFLAGS) $(LDFLAGS) -s -o $@ $^,"BUILD","$@") + $(call quiet-command,$(CC) $(CFLAGS) $(LDFLAGS) -s -o $@ $^,Linking) %.raw: %.img - $(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@,"BUILD","$@") + $(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@,Extracting raw object) %.bin: %.raw - $(call quiet-command,$(PYTHON) $(TOPSRC_DIR)/scripts/signrom.py $< $@,"SIGN","$@") + $(call quiet-command,$(PYTHON) $(TOPSRC_DIR)/scripts/signrom.py $< $@,Computing checksum into) include $(wildcard *.d) From patchwork Tue Oct 4 13:01:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612252 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp187715pvb; Tue, 4 Oct 2022 06:52:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4EmR49fn6Ln8rwWJOOgu+vYDfsMzXPn+AVZdIVz+KIZnMSg9FVSJC4vkRt+hRtH9bX5GV6 X-Received: by 2002:a05:622a:153:b0:35d:448e:1768 with SMTP id v19-20020a05622a015300b0035d448e1768mr19086322qtw.281.1664891573497; Tue, 04 Oct 2022 06:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664891573; cv=none; d=google.com; s=arc-20160816; b=ojefbxrBS+AMZg0LP/v/eKd5KwDAgFzMiVhr1tfTkN0c15Mxhb4y2AU8gogNChUeBo NCy8JH9iTYueZrYg7vGhbOdaViFCpeCV8DfaducWI45NXol7ynbxP5v/u86Jegu26oG2 Iqe9k6djOgbq2SgmlXO2YMp3N/KTfB6DhX0M1nyGaNbY8kzzuvELRkhksnZtY20pBTXH KIbyihEyI4RiB0cBVpWIVZb2HNvvytj0f/xX5gsHu3l4ALqjEQc16zEg7UxJxSDc5YnO vr46PrFn4SjkAuY4SwOHwpBiQU5Ic+epcS+k11fyvscgDFAEHMQJ4gcpATYm1W71aCGM rnRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bZH8OiYeAig/0Y57xFpjpCyBQW7+CsoHCu1FGMGd9fQ=; b=OxVerT3RGvJWtQWIOl+cNFOssZPIvdo8qDmHD8q/8eOUIVj32bLVzO7UOhhykj3LVy 2Lb6gWPiyBPloRREmr/vd7GIKZbBmRRXWRDAOElnPclH2+xjCvmbwGStEjFPx1kePIif ayI/Qc8Xo2xO9ijMhZlEZdUrqzIkEanpdgdPz3IB/mvOPREN5hswc/OZz4iXbqxsX9ad GGK4Q628x41T8NXu9hrn/4FX42EOV/lwTka693PHiQXYruaV2eVQebH+bAsfLnp/zZ4z SomS1rOqLvqQL4eXAgnIQlkzlB3G1FWJRwsf1u7kqFupDRNUjxqfZT6e5AywA9qolj5e RkbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sDALifZz; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id az30-20020a05620a171e00b006ce24c11302si4714286qkb.578.2022.10.04.06.52.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:52:53 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sDALifZz; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiLt-0001FJ-0N for patch@linaro.org; Tue, 04 Oct 2022 09:52:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhgU-0007gn-Er for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:06 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:34560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgS-00008e-8x for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:06 -0400 Received: by mail-wm1-x331.google.com with SMTP id n35-20020a05600c502300b003b4924c6868so703722wmr.1 for ; Tue, 04 Oct 2022 06:10:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=bZH8OiYeAig/0Y57xFpjpCyBQW7+CsoHCu1FGMGd9fQ=; b=sDALifZz16bpE5E47/RnASG0yZ4Y+wm7mXhSK5ptrOxiOgUVF70HCzSvIk8JK7cLOm 7EhIHU+V5MfNPQy96c5rep1oGcROkbm8a3H7YgrWtsQOdAd9lfaTc9qWZahhJ7410ZiQ swhy2YXwdPAojmuhPe3CkkgXztvaKIzrTem27hOiPnMQL34+6DsHksfYAzQ/RJfjixwr NiYS0MKOBNOe/LqAyImbyQhy9p7oDizlfw+cePQtU5JBKr1uwxJ6TAqRg4pfXt2zV2tS 0TNJKSHewZEuVPYGWj/DBUVBAClKgvyZLPHyU2xOM0eNybPWWFfM7fO9d89jG+FiJY1B DCeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=bZH8OiYeAig/0Y57xFpjpCyBQW7+CsoHCu1FGMGd9fQ=; b=QVB49pCP4nqT1nqQPubV6eV528r09/Df6peTbW7+6762FGSqaM2zWFwWVe/Y+OrsrW v/qwRYY/8ZGwW4NUsKqVQCig2MwuCT4Av+0CivHIM5itIn0PWe9CWtagI4AEYE4LfV+G AUE6OBzhU2OxWgiI8X6E2S5RSzp5d7Te2lMkhln3o/387rnpcYPUuiSX8KFbws49Ow4a PUKztz2hC9fpgfj+ILbqdYOANjcAmKy44Ti+PTqZ3BTsACaQ5MoS95Hjvs1ga945uXEj 3oF++Fpt4LGBIptrPVXRykeGLHD8xJoWo90fTSEOMZts0vNpaGkJkk6epsCm90jC9+g/ 9kgA== X-Gm-Message-State: ACrzQf3qOKvOri3kL5pOHKBHZ77SNc25muLiaxNNQrideLlpGtA4qMaZ xcfN8HTbeNZX1ea5njViFWTwaw== X-Received: by 2002:a05:600c:1d2a:b0:3b4:6e31:92da with SMTP id l42-20020a05600c1d2a00b003b46e3192damr9739173wms.103.1664889003436; Tue, 04 Oct 2022 06:10:03 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id o20-20020a05600c339400b003a5c999cd1asm17714365wmp.14.2022.10.04.06.09.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:10:02 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B89191FFD2; Tue, 4 Oct 2022 14:01:41 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , Christian Borntraeger , Thomas Huth , Cornelia Huck , qemu-s390x@nongnu.org (open list:S390-ccw boot) Subject: [PULL 30/54] pc-bios/s390-ccw: Adopt meson style Make output Date: Tue, 4 Oct 2022 14:01:14 +0100 Message-Id: <20221004130138.2299307-31-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-31-alex.bennee@linaro.org> diff --git a/pc-bios/s390-ccw/netboot.mak b/pc-bios/s390-ccw/netboot.mak index ee59a5f4de..046aa35587 100644 --- a/pc-bios/s390-ccw/netboot.mak +++ b/pc-bios/s390-ccw/netboot.mak @@ -11,10 +11,10 @@ NETLDFLAGS := $(LDFLAGS) -Wl,-Ttext=0x7800000 $(NETOBJS): EXTRA_CFLAGS += $(LIBC_INC) $(LIBNET_INC) s390-netboot.elf: $(NETOBJS) libnet.a libc.a - $(call quiet-command,$(CC) $(NETLDFLAGS) -o $@ $^,"BUILD","$(TARGET_DIR)$@") + $(call quiet-command,$(CC) $(NETLDFLAGS) -o $@ $^,Linking) s390-netboot.img: s390-netboot.elf - $(call quiet-command,$(STRIP) --strip-unneeded $< -o $@,"STRIP","$(TARGET_DIR)$@") + $(call quiet-command,$(STRIP) --strip-unneeded $< -o $@,Stripping $< into) # libc files: @@ -23,30 +23,30 @@ LIBC_CFLAGS = $(EXTRA_CFLAGS) $(CFLAGS) $(LIBC_INC) $(LIBNET_INC) \ CTYPE_OBJS = isdigit.o isxdigit.o toupper.o %.o : $(SLOF_DIR)/lib/libc/ctype/%.c - $(call quiet-command,$(CC) $(LIBC_CFLAGS) -c -o $@ $<,"CC","$(TARGET_DIR)$@") + $(call quiet-command,$(CC) $(LIBC_CFLAGS) -c -o $@ $<,Compiling) STRING_OBJS = strcat.o strchr.o strrchr.o strcpy.o strlen.o strncpy.o \ strcmp.o strncmp.o strcasecmp.o strncasecmp.o strstr.o \ memset.o memcpy.o memmove.o memcmp.o %.o : $(SLOF_DIR)/lib/libc/string/%.c - $(call quiet-command,$(CC) $(LIBC_CFLAGS) -c -o $@ $<,"CC","$(TARGET_DIR)$@") + $(call quiet-command,$(CC) $(LIBC_CFLAGS) -c -o $@ $<,Compiling) STDLIB_OBJS = atoi.o atol.o strtoul.o strtol.o rand.o malloc.o free.o %.o : $(SLOF_DIR)/lib/libc/stdlib/%.c - $(call quiet-command,$(CC) $(LIBC_CFLAGS) -c -o $@ $<,"CC","$(TARGET_DIR)$@") + $(call quiet-command,$(CC) $(LIBC_CFLAGS) -c -o $@ $<,Compiling) STDIO_OBJS = sprintf.o snprintf.o vfprintf.o vsnprintf.o vsprintf.o fprintf.o \ printf.o putc.o puts.o putchar.o stdchnls.o fileno.o %.o : $(SLOF_DIR)/lib/libc/stdio/%.c - $(call quiet-command,$(CC) $(LIBC_CFLAGS) -c -o $@ $<,"CC","$(TARGET_DIR)$@") + $(call quiet-command,$(CC) $(LIBC_CFLAGS) -c -o $@ $<,Compiling) sbrk.o: $(SLOF_DIR)/slof/sbrk.c - $(call quiet-command,$(CC) $(LIBC_CFLAGS) -c -o $@ $<,"CC","$(TARGET_DIR)$@") + $(call quiet-command,$(CC) $(LIBC_CFLAGS) -c -o $@ $<,Compiling) LIBCOBJS := $(STRING_OBJS) $(CTYPE_OBJS) $(STDLIB_OBJS) $(STDIO_OBJS) sbrk.o libc.a: $(LIBCOBJS) - $(call quiet-command,$(AR) -rc $@ $^,"AR","$(TARGET_DIR)$@") + $(call quiet-command,$(AR) -rc $@ $^,Creating static library) # libnet files: @@ -56,7 +56,7 @@ LIBNETCFLAGS = $(EXTRA_CFLAGS) $(CFLAGS) $(LIBC_INC) $(LIBNET_INC) \ -DDHCPARCH=0x1F -MMD -MP -MT $@ -MF $(@:%.o=%.d) %.o : $(SLOF_DIR)/lib/libnet/%.c - $(call quiet-command,$(CC) $(LIBNETCFLAGS) -c -o $@ $<,"CC","$(TARGET_DIR)$@") + $(call quiet-command,$(CC) $(LIBNETCFLAGS) -c -o $@ $<,Compiling) libnet.a: $(LIBNETOBJS) - $(call quiet-command,$(AR) -rc $@ $^,"AR","$(TARGET_DIR)$@") + $(call quiet-command,$(AR) -rc $@ $^,Creating static library) diff --git a/pc-bios/s390-ccw/Makefile b/pc-bios/s390-ccw/Makefile index 965e633f43..10e8f5cb63 100644 --- a/pc-bios/s390-ccw/Makefile +++ b/pc-bios/s390-ccw/Makefile @@ -10,8 +10,8 @@ NULL := SPACE := $(NULL) # TARGET_PREFIX := $(patsubst %/,%:$(SPACE),$(TARGET_DIR)) -quiet-@ = $(if $(V),,@) -quiet-command = $(if $(V),$1,$(if $(2),@printf " %-7s %s\n" $2 $3 && $1, @$1)) +quiet-@ = $(if $(V),,@$(if $1,printf "%s\n" "$(TARGET_PREFIX)$1" && )) +quiet-command = $(call quiet-@,$2 $@)$1 VPATH_SUFFIXES = %.c %.h %.S %.m %.mak %.sh %.rc Kconfig% %.json.in set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN) $1))) @@ -22,11 +22,11 @@ QEMU_DGFLAGS = -MMD -MP -MT $@ -MF $(@D)/$(*F).d %.o: %.c $(call quiet-command,$(CC) $(EXTRA_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) \ - -c -o $@ $<,"CC","$(TARGET_DIR)$@") + -c -o $@ $<,Compiling) %.o: %.S $(call quiet-command,$(CCAS) $(EXTRA_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) \ - -c -o $@ $<,"CCAS","$(TARGET_DIR)$@") + -c -o $@ $<,Assembling) .PHONY : all clean build-all distclean @@ -58,10 +58,10 @@ LDFLAGS += -Wl,-pie -nostdlib build-all: s390-ccw.img s390-netboot.img s390-ccw.elf: $(OBJECTS) - $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $(OBJECTS),"BUILD","$(TARGET_DIR)$@") + $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $(OBJECTS),Linking) s390-ccw.img: s390-ccw.elf - $(call quiet-command,$(STRIP) --strip-unneeded $< -o $@,"STRIP","$(TARGET_DIR)$@") + $(call quiet-command,$(STRIP) --strip-unneeded $< -o $@,Stripping $< into) $(OBJECTS): Makefile From patchwork Tue Oct 4 13:01:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612258 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp191288pvb; Tue, 4 Oct 2022 06:59:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5qkRSGPSpn2D5TG3s4QayPSL0bw+a/OVTMoo8IjsJ0RC5KlajiFDOck04PReZnBKsOLulT X-Received: by 2002:a05:620a:15e7:b0:6cb:e3bc:5844 with SMTP id p7-20020a05620a15e700b006cbe3bc5844mr16728140qkm.774.1664891969532; Tue, 04 Oct 2022 06:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664891969; cv=none; d=google.com; s=arc-20160816; b=xk8KkuJU5bMSfI8b+sbwb22tbZ5LhOUc1z3/Jmj0MrTBG1Y7n8dMtUXO9e2G5FA4V9 F9M+dk0KJRwVrrEXUwuTJADuJosMBL1PIQ/XAFLsHya1oVr5UZ34ebgptRKflzzXSFW6 6h+qFkY720W+N9HrxK//fJ/rAaJ9WhIG7eoVZgqIKyThfhom/zDx+Xiu4BRv+NlK3S6b Msrs+GRkvMBJfk+OAnwfXdZ/7Ngveh3naCu+Hp3JOVYEkQuNnqBo5mm6Yt8VdYdUJgef xRyPPqQFHMchPHfwHaIXguLQ1STY2DHygxXxZyGFHl4iql7K8B/mA4NVD5T9q9CJI+vt SPnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3LTggSEZatvPcBvFCXmvKoMFx3yNgp223ZmA4XoxSHQ=; b=P2+qecGcZpeYfthQEZJgclPNGJmOsAoxmXuzw72DSWJkKC9pU4Sz4SHRzyOVhCfXNg 7eIpQDKzne1oTidUHKyxnhnQvF83nGXo0IAXXmizPLKEtMikshfdSnLcwhF1mNLh/cpD egLAiEaiSP0yL+xCChimsk9anJB7PaPNgdVKD5hnDnkFPJrlRkM1CcCUS0mCddz9xBir 01d4UgOjxi2ckfvNKQs0UdczJxck0SAob2mQhH8eg6r/td1tNudy5z8lyvk5rC6yIW69 MXiOI/WI/MCCKt7j2a25Fl9hp0lznU6ekWrcwIvQZDHU5oEDiMPtmSjb8O2h6muBQ/hZ G97w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i1fwKlOp; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a188-20020a3798c5000000b006cea1c17127si4966903qke.713.2022.10.04.06.59.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:59:29 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i1fwKlOp; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:56156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiSH-0003HL-2R for patch@linaro.org; Tue, 04 Oct 2022 09:59:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhq7-0001JT-Up for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:06 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:41964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhq3-0001rI-8Y for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:03 -0400 Received: by mail-wm1-x32e.google.com with SMTP id fn7-20020a05600c688700b003b4fb113b86so7532079wmb.0 for ; Tue, 04 Oct 2022 06:19:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=3LTggSEZatvPcBvFCXmvKoMFx3yNgp223ZmA4XoxSHQ=; b=i1fwKlOpgHlAe/QlLoLxvxCNoSDEJnQQO0CdfdWbm2XYcKvT2Dr1uDTvOH4K5bC3u0 vPMkYl5af4FnpnPyyrv0IXtJD6gS8gmC47GgWY8Mx0+oc+mUfWsT480cElKvqbhUGqcJ 2kj+G+lxE9tO+SwMomNBKAIkc7m2qEdkwp+BMOA9uFqceSQEIHgtm3bFlI/t1hz98V6z OMlSzfko8eM+NhGfppa4iP8TxHdRkjPf+iS962NTgi41dBpK8pC7JEIfAF6u3w/ppg4B QWu3HZ1v983rnAVMd1Bbk0Jaw4Y/+yRaeScu1x2CrHrHN5V8qr7Tk2i8slGiGVQUEdCS 2Imw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=3LTggSEZatvPcBvFCXmvKoMFx3yNgp223ZmA4XoxSHQ=; b=zFyWoHUv99+ZwCvIwKSjXxKtWQg3k7/fJWV6unDgDETheSkzr3BlesgjdtX1o5qD5r M03Tj5SnZqq4rRngdutID1rP5cX16tNiesF22UQj5yF7vHBWsGHaa+YPc3IhXII+LIwf xisQNt+7ytVQHv3ZUHQDa3pqS0YKiT1W11Nkio5lVmVYg56MIJf2V30HwA2vwrysTFpW biIUJtYqCCMUVkCUKwhiIqePrZgyFqarJjagrgOnRLBUChBd6xnBZ2hlfk0oaZwRbxCT 0BBaiDeYf2ssl/pn31NiaOGTfgps3Osd+ShbM0qTLqPAvQmf8DrcHWcnHfXTrJUj0RRm gGVg== X-Gm-Message-State: ACrzQf2+v4JvehIPgOi+Y8hs97ag3+pfEd5KC4JZpHnRUIwWhXX0OIVi qQUgfYweblv7YLnKOlUYgKbvyg== X-Received: by 2002:a05:600c:3515:b0:3b4:a0fa:c4e1 with SMTP id h21-20020a05600c351500b003b4a0fac4e1mr10406242wmq.191.1664889597187; Tue, 04 Oct 2022 06:19:57 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id bw15-20020a0560001f8f00b0022cdeba3f83sm12897189wrb.84.2022.10.04.06.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:19:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id CF0531FFD3; Tue, 4 Oct 2022 14:01:41 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Paolo Bonzini , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , Alexey Kardashevskiy , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Daniel Henrique Barboza , David Gibson , Greg Kurz , qemu-ppc@nongnu.org (open list:Virtual Open Firm...) Subject: [PULL 31/54] pc-bios/vof: Adopt meson style Make output Date: Tue, 4 Oct 2022 14:01:15 +0100 Message-Id: <20221004130138.2299307-32-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32e.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-32-alex.bennee@linaro.org> diff --git a/pc-bios/vof/Makefile b/pc-bios/vof/Makefile index 4e59009e67..d1eb6ced7e 100644 --- a/pc-bios/vof/Makefile +++ b/pc-bios/vof/Makefile @@ -2,19 +2,26 @@ include config.mak VPATH=$(SRC_DIR) all: vof.bin +NULL := +SPACE := $(NULL) # +TARGET_PREFIX := $(patsubst %/,%:$(SPACE),$(TARGET_DIR)) + +quiet-@ = $(if $(V),,@$(if $1,,printf "%s\n" "$(TARGET_PREFIX)$1" && )) +quiet-command = $(call quiet-@,$2 $@)$1 + EXTRA_CFLAGS += -mcpu=power4 %.o: %.S - $(CC) $(EXTRA_CFLAGS) -c -o $@ $< + $(call quiet-command, $(CC) $(EXTRA_CFLAGS) -c -o $@ $<,Assembling) %.o: %.c - $(CC) $(EXTRA_CFLAGS) -c -fno-stack-protector -o $@ $< + $(call quiet-command, $(CC) $(EXTRA_CFLAGS) -c -fno-stack-protector -o $@ $<,Compiling) vof.elf: entry.o main.o ci.o bootmem.o libc.o - $(LD) -nostdlib -e_start -T$(SRC_DIR)/vof.lds -EB -o $@ $^ + $(call quiet-command, $(LD) -nostdlib -e_start -T$(SRC_DIR)/vof.lds -EB -o $@ $^,Linking) %.bin: %.elf - $(OBJCOPY) -O binary -j .text -j .data -j .toc -j .got2 $^ $@ + $(call quiet-command, $(OBJCOPY) -O binary -j .text -j .data -j .toc -j .got2 $^ $@,Extracting raw object) clean: rm -f *.o vof.bin vof.elf *~ From patchwork Tue Oct 4 13:01:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612254 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp189814pvb; Tue, 4 Oct 2022 06:56:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6c3IrqlZm+86J3Tsz7ffHslF4cEu4oRHWz4CakNC7+YFNYXZn6em/IZG3ZQmz5mdGRNYU6 X-Received: by 2002:a05:6214:f6b:b0:4af:9f31:49c8 with SMTP id iy11-20020a0562140f6b00b004af9f3149c8mr19762181qvb.84.1664891813280; Tue, 04 Oct 2022 06:56:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664891813; cv=none; d=google.com; s=arc-20160816; b=AdsZnDE2jK0RdXfO8hd6KPNLdhcLBjGoEnpDchCExvCYVGv8xJX2C0txMcrmxFpLNk +IlKxcf64Go/rVNgNOvGChRCAAKXq7IHOXMuDzAjZtNhUKvkZIMiDZ8HYCX2bEHAu+T4 ajuSLklrSqKlyYs/iBxfLRs5BatlUpf/Vehw8SEcLhepGy4h9r/JaDjv2q9PuKR40kbM E1ParzDbUHKfohzxAGC7bfVrUN8JPJGQ8L+PsH71DSzcyVbX6wk7QgBuqlvG7br3TXyJ mAG3Lxm0ajHYy3o/JDDlIRs6yl6s5Q5FVXvaID4jr31VEc55CJQz+R1MvaUwsImGGQLx UZng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=aKeHgRFwv3oSjMfFr7eWFeJbuWz2pkBpX1773QJGL+I=; b=GQCrpY5KsdYN3u2QOe11YWh7FZfXeTWM5Lpj1twMb2xmaPriqPI8XmMx8KsO/B6fbN HF5w3RJQ+fBKmdq9/n6pMPRjjh71z13Jan1Xr/dfqGbY95q7++K/8AWuNOJoqermw8od yblL1MNHkItEBxFu9BDWq6oy/98X6oxH/sHrPXhPHkMdMyoYRUHRRJrOOo3Wp9r0tkq3 vz7HK87Igb+p7Ps2rtHLFwroyvPZ27SC4JbSWiDBvQk/PskbnpyjhkntIBPFuCFYw/jP C3u/pYNfbbmuwGyzEWy4eXTbAguT/vuKh+nQrKhdeMJmzbPTZ/oZPoFbkJk0GkiBSOt/ KdrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XRV8QPNw; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id g21-20020a05620a109500b006b912c2e3f1si4504809qkk.154.2022.10.04.06.56.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:56:53 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XRV8QPNw; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiPk-0005xY-Pn for patch@linaro.org; Tue, 04 Oct 2022 09:56:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhq5-0001JB-3a for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:05 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:33613) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhq2-0001qh-5x for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:00 -0400 Received: by mail-wr1-x42e.google.com with SMTP id a3so9023416wrt.0 for ; Tue, 04 Oct 2022 06:19:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=aKeHgRFwv3oSjMfFr7eWFeJbuWz2pkBpX1773QJGL+I=; b=XRV8QPNwZuFpcGAnIOFZ93pT4wd6nfGzbsdc5Z28wSsWyQrL3tE9wz2gZjpG1k4Tv2 g8YN6lQHSJIAKyZp/fQVww8oc80YX4xbVfiJMvUk+Jlt+BdjBk+WCboOOYsCpqH4P1VT z662dYmdBdy2mK95XgbzQTx/JPvxfUfYeKlaj7z4SLbO4KuD1u/U1/DtRekvc0cjRQRt RAJGkT0Rellmbfeh0azpRKBb0BpMNef/Wf2/0wTD78/FHSuQot9ISceYJ2P29nlqUiOB A0dOoMjPLTTdT/dEFUmdKjBNpTBqhra8lpf3JDeP7KlrxoDfZbW7EZaKnbtz6dYKvD51 rO8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=aKeHgRFwv3oSjMfFr7eWFeJbuWz2pkBpX1773QJGL+I=; b=6kjvfV7ayhfH+OagQno5XF/LC/51rZ7cUX7FKzuGFvJsmWIR4kShCKFJ1chq8PpBEi 9szaoQOkKeMeqtEyfaOq+70Lq4JRNWGPuBJieFoV8127/03lkPh5vjaelZMfX06QjYF8 eH6ZVz6GzqLzCGTXOF+jyWXkHPQYgAJo0/Q/ZfEPkHos7NROLVvKxE//EYbzwabt6pMM 1n0Riav147W7gJiamCTOLld36uX3hx8EByIsX1TcMoHgXV64r81UD7p95+5rRWHf0MGq 2ig0x3igHWw6w0NohRmKzIISGwe+maKoxA3dasBerb8OB8zBny7oR7NKXuwGmO3tBZOj T9Mg== X-Gm-Message-State: ACrzQf1sShK7AKW42ErgfF5PTrL3/1+jq7ZGwHkHRcxuKgum0Yj1Go1a O3E3wk2mlTLEDtAYrS7u+kUD9A== X-Received: by 2002:a5d:62d2:0:b0:22e:4a7:1ab6 with SMTP id o18-20020a5d62d2000000b0022e04a71ab6mr11684750wrv.334.1664889594626; Tue, 04 Oct 2022 06:19:54 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id g20-20020a05600c4ed400b003b4931eb435sm21382589wmq.26.2022.10.04.06.19.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:19:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 07D661FFD4; Tue, 4 Oct 2022 14:01:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson , Kevin Wolf , Markus Armbruster , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Hanna Reitz , Mark Cave-Ayland , "Dr. David Alan Gilbert" , qemu-block@nongnu.org (open list:Block layer core), qemu-ppc@nongnu.org (open list:New World (mac99)) Subject: [PULL 32/54] monitor: expose monitor_puts to rest of code Date: Tue, 4 Oct 2022 14:01:16 +0100 Message-Id: <20221004130138.2299307-33-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42e.google.com 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=unavailable 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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This helps us construct strings elsewhere before echoing to the monitor. It avoids having to jump through hoops like: monitor_printf(mon, "%s", s->str); It will be useful in following patches but for now convert all existing plain "%s" printfs to use the _puts api. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Reviewed-by: Kevin Wolf Reviewed-by: Markus Armbruster Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220929114231.583801-33-alex.bennee@linaro.org> diff --git a/docs/devel/writing-monitor-commands.rst b/docs/devel/writing-monitor-commands.rst index 4aa2bb904d..2fefedcd98 100644 --- a/docs/devel/writing-monitor-commands.rst +++ b/docs/devel/writing-monitor-commands.rst @@ -716,7 +716,7 @@ message. Here's the implementation of the "info roms" HMP command:: if (hmp_handle_error(mon, err)) { return; } - monitor_printf(mon, "%s", info->human_readable_text); + monitor_puts(mon, info->human_readable_text); } Also, you have to add the function's prototype to the hmp.h file. diff --git a/include/monitor/monitor.h b/include/monitor/monitor.h index a4b40e8391..737e750670 100644 --- a/include/monitor/monitor.h +++ b/include/monitor/monitor.h @@ -31,6 +31,7 @@ void monitor_resume(Monitor *mon); int monitor_get_fd(Monitor *mon, const char *fdname, Error **errp); int monitor_fd_param(Monitor *mon, const char *fdname, Error **errp); +int monitor_puts(Monitor *mon, const char *str); int monitor_vprintf(Monitor *mon, const char *fmt, va_list ap) G_GNUC_PRINTF(2, 0); int monitor_printf(Monitor *mon, const char *fmt, ...) G_GNUC_PRINTF(2, 3); diff --git a/monitor/monitor-internal.h b/monitor/monitor-internal.h index caa2e90ef2..a2cdbbf646 100644 --- a/monitor/monitor-internal.h +++ b/monitor/monitor-internal.h @@ -174,7 +174,6 @@ extern int mon_refcount; extern HMPCommand hmp_cmds[]; -int monitor_puts(Monitor *mon, const char *str); void monitor_data_init(Monitor *mon, bool is_qmp, bool skip_flush, bool use_io_thread); void monitor_data_destroy(Monitor *mon); diff --git a/block/monitor/block-hmp-cmds.c b/block/monitor/block-hmp-cmds.c index bfb3c043a0..939a520d17 100644 --- a/block/monitor/block-hmp-cmds.c +++ b/block/monitor/block-hmp-cmds.c @@ -638,16 +638,16 @@ static void print_block_info(Monitor *mon, BlockInfo *info, assert(!info || !info->has_inserted || info->inserted == inserted); if (info && *info->device) { - monitor_printf(mon, "%s", info->device); + monitor_puts(mon, info->device); if (inserted && inserted->has_node_name) { monitor_printf(mon, " (%s)", inserted->node_name); } } else { assert(info || inserted); - monitor_printf(mon, "%s", - inserted && inserted->has_node_name ? inserted->node_name - : info && info->has_qdev ? info->qdev - : ""); + monitor_puts(mon, + inserted && inserted->has_node_name ? inserted->node_name + : info && info->has_qdev ? info->qdev + : ""); } if (inserted) { diff --git a/hw/misc/mos6522.c b/hw/misc/mos6522.c index f9e646350e..fe38c44426 100644 --- a/hw/misc/mos6522.c +++ b/hw/misc/mos6522.c @@ -595,7 +595,7 @@ void hmp_info_via(Monitor *mon, const QDict *qdict) if (hmp_handle_error(mon, err)) { return; } - monitor_printf(mon, "%s", info->human_readable_text); + monitor_puts(mon, info->human_readable_text); } static const MemoryRegionOps mos6522_ops = { diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c index c6cd6f91dd..f90eea8d01 100644 --- a/monitor/hmp-cmds.c +++ b/monitor/hmp-cmds.c @@ -730,7 +730,7 @@ static void hmp_info_pci_device(Monitor *mon, const PciDeviceInfo *dev) monitor_printf(mon, " "); if (dev->class_info->has_desc) { - monitor_printf(mon, "%s", dev->class_info->desc); + monitor_puts(mon, dev->class_info->desc); } else { monitor_printf(mon, "Class %04" PRId64, dev->class_info->q_class); } @@ -2258,12 +2258,12 @@ static void print_stats_schema_value(Monitor *mon, StatsSchemaValue *value) if (unit && value->base == 10 && value->exponent >= -18 && value->exponent <= 18 && value->exponent % 3 == 0) { - monitor_printf(mon, "%s", si_prefix(value->exponent)); + monitor_puts(mon, si_prefix(value->exponent)); } else if (unit && value->base == 2 && value->exponent >= 0 && value->exponent <= 60 && value->exponent % 10 == 0) { - monitor_printf(mon, "%s", iec_binary_prefix(value->exponent)); + monitor_puts(mon, iec_binary_prefix(value->exponent)); } else if (value->exponent) { /* Use exponential notation and write the unit's English name */ monitor_printf(mon, "* %d^%d%s", @@ -2273,7 +2273,7 @@ static void print_stats_schema_value(Monitor *mon, StatsSchemaValue *value) } if (value->has_unit) { - monitor_printf(mon, "%s", unit ? unit : StatsUnit_str(value->unit)); + monitor_puts(mon, unit ? unit : StatsUnit_str(value->unit)); } /* Print bucket size for linear histograms */ diff --git a/monitor/hmp.c b/monitor/hmp.c index a3375d0341..43fd69f984 100644 --- a/monitor/hmp.c +++ b/monitor/hmp.c @@ -1094,7 +1094,7 @@ static void hmp_info_human_readable_text(Monitor *mon, return; } - monitor_printf(mon, "%s", info->human_readable_text); + monitor_puts(mon, info->human_readable_text); } static void handle_hmp_command_exec(Monitor *mon, diff --git a/target/i386/helper.c b/target/i386/helper.c index fa409e9c44..b954ccda50 100644 --- a/target/i386/helper.c +++ b/target/i386/helper.c @@ -415,7 +415,7 @@ static void do_inject_x86_mce(CPUState *cs, run_on_cpu_data data) if (need_reset) { emit_guest_memory_failure(MEMORY_FAILURE_ACTION_RESET, ar, recursive); - monitor_printf(params->mon, "%s", msg); + monitor_puts(params->mon, msg); qemu_log_mask(CPU_LOG_RESET, "%s\n", msg); qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_RESET); return; From patchwork Tue Oct 4 13:01:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612248 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp185057pvb; Tue, 4 Oct 2022 06:48:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5uKMVBsC0itrzEtIp9axPwKhXbp092v7lXHjaExbw3G3ahfe7uxWGVLLwIkFaHACqAqxnE X-Received: by 2002:a05:6214:ca4:b0:4b1:b08e:9de9 with SMTP id s4-20020a0562140ca400b004b1b08e9de9mr2417567qvs.122.1664891286769; Tue, 04 Oct 2022 06:48:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664891286; cv=none; d=google.com; s=arc-20160816; b=hKji6Nh9baiaRxiA+ttbY+3sAZdRvgjdRjhtocG9hvZPyjWEV2V6WsKx8QebpkAIGi J7YR1PriPzGC+xvVXfjQF36mbPX2iGxWaYI+vaA9AHGEiIwlf0KRQxgmu8B/Ktk0NYtm tlDyEWVlCwKFeU/FaZczuq7x7KxE5KcSt/fcyyRhi7vnNfxFx9hWsPYH1NupHY/A422U 6jVnapBMEsjxHCZq/7RJZN3zaYrWZ3sY4hBh6qDr9VAvyttKNCZI7tCQ7BoyO89VL3+A 2UxT3R23nKUT3MEztU0+G5g1aH47VRN9TLISvu+ZiRH4oZf/Gsz+/ME7xrnpbK9oFc22 oXzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QGFbk8C97GoJjmbyu+s1VozFZFy9/GCuckImbZ7pktg=; b=uCPZMqFJlIxi0VSyqYT/Q9qSgiNqjE+I5Imqq+QFq2W24uLKtngLYli4/a5XOYp8NU 35r6Ei0rMVCwjIZ3nvz/c9KBr11meku5EdsJqeu38YVj2uQ5dwOeiymeknQrmADtsaxm RbLTgualF1k/RreTh4GFOePnmGhCzTomt1Dxsp+oUYMkdmKyGPmfjAVIDcXnfv0CxjjP ERyaxmLyAMWvSNSwMO5EI+789ZCLxuN8Qyo6vlMeJMBrrFS8TiPV4mhXAyIxBqV1VHeq x0h2WYO66BSbAoGoFPAFlh4e87er9k7bFe91dOh8WjqaTb4d9oF5sekd739lOIT536aa RyXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ncc4d5QX; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id fv14-20020a056214240e00b004b17a7ed4a7si985724qvb.263.2022.10.04.06.48.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:48:06 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ncc4d5QX; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiHG-0002Rn-A5 for patch@linaro.org; Tue, 04 Oct 2022 09:48:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhgR-0007YU-Od for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:03 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:45041) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgP-0000AI-RV for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:03 -0400 Received: by mail-wr1-x436.google.com with SMTP id c11so21255406wrp.11 for ; Tue, 04 Oct 2022 06:10:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=QGFbk8C97GoJjmbyu+s1VozFZFy9/GCuckImbZ7pktg=; b=ncc4d5QXJWKqOg5BL0rF7BlNr+3LkhXPKVr+TTfeKnKY2sdBicNW7PQYXCtSIqJyl6 VX37pXfCQV+j2cpjuLsxObUurUFt57nBgM8BBnshmRWYtMyqCbv7+p28evPNHczA0W+p sXeeabMKDBl9+hdnNcXUeQzH8JWVx3xFiva7Qlo197DP155BrIa18ogc7kl/cH2isJQV d+JUVVNZLAjiVYHKQrD10tNMFNKnkn3I3w9aaeQyEJXHtsDg8C82HblBmUKq0ZWc+lt5 OTjvrgT5Vp4kRIoRHQbXa+x6nK+mIJzze1b1wX02ZNPODkqIusBjWVLb9XjM060XyQu5 EztA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=QGFbk8C97GoJjmbyu+s1VozFZFy9/GCuckImbZ7pktg=; b=Ohofe7uZOjKTuJ2u95vsHu8doLeFnADAw5qQNESpdQKMJGrodKnfMTRmqy7P6YOFQB T1p4Nnzsk/dBpwq3K/83SdDR22sgvwRwfz2JUaNvflX/3txveXQefDPvUnUsT2aHf7LE cnrCykrqIe+PhROtXQubFNJ2HpkR8ulyISI9kwrytWm9x2JzPJzWMcYn9Ydlmg0lcs9H PbxD0og71hlyK6gPi8+q3DRVdHYbgBvvf9IzRUK0ieTyWhfk0kIrDbEo8m0SiyvcM+oP uHdcOnS1HZ+p+hWqtuM3tJvLT9aPhppNFTNTDHUtHaYmbyobdIAUT/KWNj316ZMAU0iw 0BSQ== X-Gm-Message-State: ACrzQf0lV+nSmxHF6pUK3rFeJmq310fQvCFxlV9/bbbhj32EqQpF9k8f 0L/L7kfMxXaJHlSpJzb382aBkvP5LZnmig== X-Received: by 2002:adf:fb50:0:b0:22a:e4e9:a6b3 with SMTP id c16-20020adffb50000000b0022ae4e9a6b3mr15887355wrs.467.1664889000407; Tue, 04 Oct 2022 06:10:00 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id l13-20020a5d4bcd000000b00226dba960b4sm12441446wrt.3.2022.10.04.06.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:09:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 1EDAB1FFD5; Tue, 4 Oct 2022 14:01:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson Subject: [PULL 33/54] disas: generalise plugin_printf and use for monitor_disas Date: Tue, 4 Oct 2022 14:01:17 +0100 Message-Id: <20221004130138.2299307-34-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x436.google.com 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, T_PDS_OTHER_BAD_TLD=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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Rather than assembling our output piecemeal lets use the same approach as the plugin disas interface to build the disassembly string before printing it. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Message-Id: <20220929114231.583801-34-alex.bennee@linaro.org> diff --git a/disas.c b/disas.c index e31438f349..f07b6e760b 100644 --- a/disas.c +++ b/disas.c @@ -239,7 +239,7 @@ void target_disas(FILE *out, CPUState *cpu, target_ulong code, } } -static int plugin_printf(FILE *stream, const char *fmt, ...) +static int gstring_printf(FILE *stream, const char *fmt, ...) { /* We abuse the FILE parameter to pass a GString. */ GString *s = (GString *)stream; @@ -270,7 +270,7 @@ char *plugin_disas(CPUState *cpu, uint64_t addr, size_t size) GString *ds = g_string_new(NULL); initialize_debug_target(&s, cpu); - s.info.fprintf_func = plugin_printf; + s.info.fprintf_func = gstring_printf; s.info.stream = (FILE *)ds; /* abuse this slot */ s.info.buffer_vma = addr; s.info.buffer_length = size; @@ -358,15 +358,19 @@ void monitor_disas(Monitor *mon, CPUState *cpu, { int count, i; CPUDebug s; + g_autoptr(GString) ds = g_string_new(""); initialize_debug_target(&s, cpu); - s.info.fprintf_func = qemu_fprintf; + s.info.fprintf_func = gstring_printf; + s.info.stream = (FILE *)ds; /* abuse this slot */ + if (is_physical) { s.info.read_memory_func = physical_read_memory; } s.info.buffer_vma = pc; if (s.info.cap_arch >= 0 && cap_disas_monitor(&s.info, pc, nb_insn)) { + monitor_puts(mon, ds->str); return; } @@ -376,13 +380,16 @@ void monitor_disas(Monitor *mon, CPUState *cpu, return; } - for(i = 0; i < nb_insn; i++) { - monitor_printf(mon, "0x" TARGET_FMT_lx ": ", pc); + for (i = 0; i < nb_insn; i++) { + g_string_append_printf(ds, "0x" TARGET_FMT_lx ": ", pc); count = s.info.print_insn(pc, &s.info); - monitor_printf(mon, "\n"); - if (count < 0) - break; + g_string_append_c(ds, '\n'); + if (count < 0) { + break; + } pc += count; } + + monitor_puts(mon, ds->str); } #endif From patchwork Tue Oct 4 13:01:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612246 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp182741pvb; Tue, 4 Oct 2022 06:44:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4B9E8p+IZjGwTu2krlzC4sRXCD2ei2sW6wl1ksuuk1jZ3ZQASFh0pxZ7HKFoBsvmyceYUU X-Received: by 2002:ac8:5745:0:b0:35c:ca39:cc9f with SMTP id 5-20020ac85745000000b0035cca39cc9fmr19379879qtx.670.1664891049906; Tue, 04 Oct 2022 06:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664891049; cv=none; d=google.com; s=arc-20160816; b=zx11t8jHqDA7hHY/QhnOlbyh7Y7JNO3zWtf3d8INR6G9k4zoRATn2MTLe7OejsZBi6 h+hWrQ7o6oB2KwCRMLQtK1adPu/6ZPC8+/Uq8pt9sBPf7WJmtvu4Myuh1oHpcBc0Yyvw dC8VjDRgMSOLoirhtDD2vCyt8OPE1Syrh4rd45V9IbXGl3HdLvtfwpOXLmzGRJTRCJ9B gWBzC+8xYEEtJEKZBFQ24OBmxExyApah4zC1nbSocgMHqIadvuqGU97lDPbAvidgjlDu RK1R7ixid5N+q/OpEt9LlvbSxzcj/xGsDYiItpMY29eroocmsluhQdveZMrxvAQ0XYL8 1YIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JWHCVViNcRApsXs2Lz0jpQ9zDW3pHhm3wfNG9Nif7M4=; b=imLm1wuy6sLSII3SdKQkLH4SoeE7yWyYmRBgYad2wyd+/H+WSEROVSNmp8Qjz8yUhL Zb9TMNQZtC5/qOh0sZqtEEIlIEk3o1jN5DZX2hl/7n7kd3hFZgyzbkBF8ssN4i80tHPA D0UZfBSFa65p4R4TxsjtrKwChgbiH/c+OPI7Oa/BDi/nW+7bX7qRxWcYDloT3TvzrU9T /pN4S23lldcoXhTKkAGAk8k6XimuvpWeseZNkU07QSGObplz/y0/X0MQaAdDZlQeryoG CYTZUQAF9eIWVsARWX+oQys1b+XTgVZRUMbeEF1Y3iC8fEeLmV6PyGvW8J/2Erp0WH+9 SoJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K82ItZRN; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id fa11-20020a05622a4ccb00b0038756a7922csi701405qtb.255.2022.10.04.06.44.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:44:09 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K82ItZRN; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:56176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiDR-0007mn-Dv for patch@linaro.org; Tue, 04 Oct 2022 09:44:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhgP-0007T8-K5 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:01 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:36406) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgN-000095-IO for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:01 -0400 Received: by mail-wm1-x32f.google.com with SMTP id c3-20020a1c3503000000b003bd21e3dd7aso753069wma.1 for ; Tue, 04 Oct 2022 06:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=JWHCVViNcRApsXs2Lz0jpQ9zDW3pHhm3wfNG9Nif7M4=; b=K82ItZRNgakVbF87rkVPR6LOCJ3Fhf/IgAdbfkYPlOTlRLiwfgxAQpRnDXD0vvmEzi NMY7OvT8gOOKht+lsIJQPW/iA4oIK1ZCHonAWuLQGAovPHE8QKoFEfVhJxep5lh68hF7 UJmu4MmhnTRvwnFfVQjIWIVJI0BMYQ10f/f4ZejnprQIxXFMOBSBeBShfqTZgYCn8GbA lw5ZYAU469SpIn0YNXfAtGg5Z9WN8Cd/7Gm3ytJKLXGkGg4RKfZBmKRrD8FrBtylEZ2V AKuGi2LuBAmqFgCckzbO+2Fg3BE82F17wZpaRucC2pf1hj/b6P2OQRA08iQygQAKD+pY 1oxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=JWHCVViNcRApsXs2Lz0jpQ9zDW3pHhm3wfNG9Nif7M4=; b=g+nj9vmx7Rt+epOVCfHM5F0zsFUT0v2+ryRA4LgOmiHsLu4yuH1RcHZHlncCz/3asz 6DeB17VcnVKiCyuWxTNgJvEFz1ZTtG5ahnumJyygSy+czQ6kRZXKEdhhFTFXD1zHnmIA egcfUb9UPXoASOc1e7pewxLYbdhPWNU9HVJii6XYNtufTn0WZVG4tvoJp/S2dxF5mz1L DOacZEGi272x+28xO7luAHBoFRRs0PncdAE3HDjfoY1f+ovnHkMKwOA5qlOpPcVKFi79 Jjjy+8hm0OdCu75C5210jbSYiT0Ak3mBVMkaM38adNMXwfkx8vRprfQsUFpjdNKi6PdU mBIA== X-Gm-Message-State: ACrzQf1Qemt6aSeeKJj1hOzUzA1OV3eJFGTPcR1nOPoaX6L6+orP/zT9 2LNfSKjdGpfYKufEQ60xjQpvBhcdZj0YRQ== X-Received: by 2002:a05:600c:3511:b0:3b4:bb85:f1e3 with SMTP id h17-20020a05600c351100b003b4bb85f1e3mr10307717wmq.0.1664888998223; Tue, 04 Oct 2022 06:09:58 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id o9-20020a05600c510900b003a5c244fc13sm21402872wms.2.2022.10.04.06.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:09:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 389C61FFD6; Tue, 4 Oct 2022 14:01:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Subject: [PULL 34/54] disas: use result of ->read_memory_func Date: Tue, 4 Oct 2022 14:01:18 +0100 Message-Id: <20221004130138.2299307-35-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32f.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This gets especially confusing if you start plugging in host addresses from a trace and you wonder why the output keeps changing. Report when read_memory_func fails instead of blindly disassembling the buffer contents. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220929114231.583801-35-alex.bennee@linaro.org> diff --git a/disas.c b/disas.c index f07b6e760b..94d3b45042 100644 --- a/disas.c +++ b/disas.c @@ -83,18 +83,18 @@ static int print_insn_objdump(bfd_vma pc, disassemble_info *info, const char *prefix) { int i, n = info->buffer_length; - uint8_t *buf = g_malloc(n); - - info->read_memory_func(pc, buf, n, info); - - for (i = 0; i < n; ++i) { - if (i % 32 == 0) { - info->fprintf_func(info->stream, "\n%s: ", prefix); + g_autofree uint8_t *buf = g_malloc(n); + + if (info->read_memory_func(pc, buf, n, info) == 0) { + for (i = 0; i < n; ++i) { + if (i % 32 == 0) { + info->fprintf_func(info->stream, "\n%s: ", prefix); + } + info->fprintf_func(info->stream, "%02x", buf[i]); } - info->fprintf_func(info->stream, "%02x", buf[i]); + } else { + info->fprintf_func(info->stream, "unable to read memory"); } - - g_free(buf); return n; } diff --git a/disas/capstone.c b/disas/capstone.c index 20bc8f9669..fe3efb0d3c 100644 --- a/disas/capstone.c +++ b/disas/capstone.c @@ -191,37 +191,43 @@ bool cap_disas_target(disassemble_info *info, uint64_t pc, size_t size) size_t tsize = MIN(sizeof(cap_buf) - csize, size); const uint8_t *cbuf = cap_buf; - info->read_memory_func(pc + csize, cap_buf + csize, tsize, info); - csize += tsize; - size -= tsize; + if (info->read_memory_func(pc + csize, cap_buf + csize, tsize, info) == 0) { + csize += tsize; + size -= tsize; - while (cs_disasm_iter(handle, &cbuf, &csize, &pc, insn)) { - cap_dump_insn(info, insn); - } + while (cs_disasm_iter(handle, &cbuf, &csize, &pc, insn)) { + cap_dump_insn(info, insn); + } + + /* If the target memory is not consumed, go back for more... */ + if (size != 0) { + /* + * ... taking care to move any remaining fractional insn + * to the beginning of the buffer. + */ + if (csize != 0) { + memmove(cap_buf, cbuf, csize); + } + continue; + } - /* If the target memory is not consumed, go back for more... */ - if (size != 0) { /* - * ... taking care to move any remaining fractional insn - * to the beginning of the buffer. + * Since the target memory is consumed, we should not have + * a remaining fractional insn. */ if (csize != 0) { - memmove(cap_buf, cbuf, csize); + info->fprintf_func(info->stream, + "Disassembler disagrees with translator " + "over instruction decoding\n" + "Please report this to qemu-devel@nongnu.org\n"); } - continue; - } + break; - /* - * Since the target memory is consumed, we should not have - * a remaining fractional insn. - */ - if (csize != 0) { + } else { info->fprintf_func(info->stream, - "Disassembler disagrees with translator " - "over instruction decoding\n" - "Please report this to qemu-devel@nongnu.org\n"); + "0x%08" PRIx64 ": unable to read memory\n", pc); + break; } - break; } cs_close(&handle); @@ -286,16 +292,23 @@ bool cap_disas_monitor(disassemble_info *info, uint64_t pc, int count) /* Make certain that we can make progress. */ assert(tsize != 0); - info->read_memory_func(pc + csize, cap_buf + csize, tsize, info); - csize += tsize; - - if (cs_disasm_iter(handle, &cbuf, &csize, &pc, insn)) { - cap_dump_insn(info, insn); - if (--count <= 0) { - break; + if (info->read_memory_func(pc + csize, cap_buf + csize, + tsize, info) == 0) + { + csize += tsize; + + if (cs_disasm_iter(handle, &cbuf, &csize, &pc, insn)) { + cap_dump_insn(info, insn); + if (--count <= 0) { + break; + } } + memmove(cap_buf, cbuf, csize); + } else { + info->fprintf_func(info->stream, + "0x%08" PRIx64 ": unable to read memory\n", pc); + break; } - memmove(cap_buf, cbuf, csize); } cs_close(&handle); From patchwork Tue Oct 4 13:01:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612242 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp180685pvb; Tue, 4 Oct 2022 06:41:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7RuwTxLxUQ9Q9npyUJMxqBCTdJovP+XKB+ltxoOx4zuVG61vZ8jUk4mgbfrhylz3zaxy3x X-Received: by 2002:a05:620a:1489:b0:6cc:43ae:4353 with SMTP id w9-20020a05620a148900b006cc43ae4353mr16208233qkj.173.1664890874887; Tue, 04 Oct 2022 06:41:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664890874; cv=none; d=google.com; s=arc-20160816; b=Ct/5ylkS7+f5S9EimRDKxXxlUsEZrIL06aEShVJzjJhZy4jWQ2YSSElH2bAx4FXX78 DsB/4KCb0APy93xnV+KyPdhn4g07pTGBFfTpS2BEnq0/wQQ3cjnEJIubHp+tKaxSpXj/ n6T3Crr3ggrhV6gOi9JJcbEDDHnGvwIaefSPQlJ6COvsE5lwbSqYUEsUayW9I6RUVR4f FjUrWsT5Ho+bC2a69fcSEjzGXroePAd199fB16zhFuw8E3NqPMmTrCteXtlKDxwniQGT D5V+q1Lxy/ch8Fp/WnQSSpYflqap1woxjZvOT1a5+czpAifY0BCquM+2RqySbgRq0/Dw Ye5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cg1QwHqN+jCY5zkl3QujLvRrL1CwHp+I/MfC8up7J2c=; b=L5tDGKRIGYDLAWUdOQlarkYtpHxLFD5wMK59SOwzhLEaNLVr/EO1OPYW2Va68bTBFk 81m8ZRp5Tyzt/mieOJQH3HaJ2DkrFFG2OfVJd0Tn67a8n38ZkdL6LNdo7gDZmwfy+8uv K4PRcoX5Ygy6HXpsOcXP44j7jVxjSVEX5u4xAn4s6vTs8f9mM4ysaKDuB4TnNJE0xdVH nvhhdUEcF9kMpr1k8TMVDnrC7xxLFTEA2lu9jGqF2Y1h7FfaPKwWkHZO23n79RqeKCxr e39hrCx5o1QEP+i68rWmw/GFVcJZxiwTyhJZDk3oZBqlSfG1DrDTgg1nr7caDbl9ibKA KqkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jFK5fDtt; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id i23-20020ae9ee17000000b006ceb48ef8aesi4967455qkg.500.2022.10.04.06.41.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:41:14 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jFK5fDtt; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:57890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiAc-0001tU-C3 for patch@linaro.org; Tue, 04 Oct 2022 09:41:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhgN-0007NY-5r for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:09:59 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:33782) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgK-00008Z-Su for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:09:58 -0400 Received: by mail-wm1-x32f.google.com with SMTP id ay7-20020a05600c1e0700b003b49861bf48so834144wmb.0 for ; Tue, 04 Oct 2022 06:09:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=cg1QwHqN+jCY5zkl3QujLvRrL1CwHp+I/MfC8up7J2c=; b=jFK5fDtt4HC88zQvZFxWGESmwECbu1vu0NdcFWecU5Hj/BlRYs2pnE/zJcxja93s2E WD+J2vsHZgKq9KtZ8mEUZuJRra064WZAm/pJkd/fkMftkR+0Jg9FV9JThGcE48ZnSBcv P7CrrlzWN9ejlzscR/B/N0zIKFcFr5Kkd+I8M0QHbNC/YLBm2M3XWzi9scYM7Awj2l6s +eV7yhmVC4/4q/aJ3uk1gEvNkAoUY2iKSm5kMKpPCrokmbRnbLiVYK1Igz80ids5YHNH gK95w7sYaWS3j5RsyN0Fi08oj2mRmcIqkAgNK/g3WA+hNWfg8OPWwQRzNH7m45syr+He YaSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=cg1QwHqN+jCY5zkl3QujLvRrL1CwHp+I/MfC8up7J2c=; b=lIkwAswCdILNj/RDh3mFE+rRSyANzSdzLim96/xMSJ4bj8w35V/xg7G3R0yOywbS1G TX0hwVG2h6ghyv50ycJzor/dtLioxJgjOUUDQzz5gHK7CmI9ZIbm46YOKfBob8S3eHR/ 6WjxpDKfK9ldQefDefOa/Ff/jJtY9uvEI5ch63RLxuxDlA7zIcvvtMT9x5Ng0TAMY5q7 hC3oc+DJ24zz3Q/xowjEOep8yIAwGrt8z4kiKCjynQrxoiZPEHZqWdxS6KTLrO0mVIjF ROEUuify84mg3b3NbPAiFKwtv/c/GAYdDfIbCQC7FqMc99b9lkAYwlIvfjONp4TeqBEg wYUw== X-Gm-Message-State: ACrzQf2Td4cPzVJUgDHKD/N9Xe1xJkWngz7TpZh8XzJK762DNqbFWP2X OuxvpOUi3p3VP3NRg0XPj6z74g== X-Received: by 2002:a05:600c:4e8b:b0:3b4:c8ce:be87 with SMTP id f11-20020a05600c4e8b00b003b4c8cebe87mr10692031wmq.157.1664888994556; Tue, 04 Oct 2022 06:09:54 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id a5-20020adfeec5000000b0022e2c38f8basm10051013wrp.14.2022.10.04.06.09.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:09:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 527911FFD7; Tue, 4 Oct 2022 14:01:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Alexandre Iooss , Robert Henry , Aaron Lindsay , Mahmoud Mandour Subject: [PULL 35/54] plugins: extend execlog to filter matches Date: Tue, 4 Oct 2022 14:01:19 +0100 Message-Id: <20221004130138.2299307-36-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32f.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Sometimes the whole execlog is just two much so add the ability to filter by instruction opcode or address. [AJB: this shows for example qemu-system-aarch64 -display none -serial mon:stdio \ -M virt -cpu max \ -semihosting-config enable=on \ -kernel ./tests/tcg/aarch64-softmmu/memory-sve \ -plugin ./contrib/plugins/libexeclog.so,ifilter=st1w,afilter=0x40001808 -d plugin -D plugin.out the st1w SVE instruction is not instrumenting its stores.] Signed-off-by: Alex Bennée Reviewed-by: Alexandre Iooss Cc: Robert Henry Cc: Aaron Lindsay Message-Id: <20220929114231.583801-36-alex.bennee@linaro.org> diff --git a/docs/devel/tcg-plugins.rst b/docs/devel/tcg-plugins.rst index a7cc44aa20..a503d44cee 100644 --- a/docs/devel/tcg-plugins.rst +++ b/docs/devel/tcg-plugins.rst @@ -346,7 +346,7 @@ The execlog tool traces executed instructions with memory access. It can be used for debugging and security analysis purposes. Please be aware that this will generate a lot of output. -The plugin takes no argument:: +The plugin needs default argument:: qemu-system-arm $(QEMU_ARGS) \ -plugin ./contrib/plugins/libexeclog.so -d plugin @@ -364,6 +364,13 @@ which will output an execution trace following this structure:: 0, 0xd34, 0xf9c8f000, "bl #0x10c8" 0, 0x10c8, 0xfff96c43, "ldr r3, [r0, #0x44]", load, 0x200000e4, RAM +the output can be filtered to only track certain instructions or +addresses using the `ifilter` or `afilter` options. You can stack the +arguments if required:: + + qemu-system-arm $(QEMU_ARGS) \ + -plugin ./contrib/plugins/libexeclog.so,ifilter=st1w,afilter=0x40001808 -d plugin + - contrib/plugins/cache.c Cache modelling plugin that measures the performance of a given L1 cache diff --git a/contrib/plugins/execlog.c b/contrib/plugins/execlog.c index a5275dcc15..e659ac9cbb 100644 --- a/contrib/plugins/execlog.c +++ b/contrib/plugins/execlog.c @@ -20,6 +20,9 @@ QEMU_PLUGIN_EXPORT int qemu_plugin_version = QEMU_PLUGIN_VERSION; /* Store last executed instruction on each vCPU as a GString */ GArray *last_exec; +static GPtrArray *imatches; +static GArray *amatches; + /** * Add memory read or write information to current instruction log */ @@ -85,12 +88,13 @@ static void vcpu_insn_exec(unsigned int cpu_index, void *udata) static void vcpu_tb_trans(qemu_plugin_id_t id, struct qemu_plugin_tb *tb) { struct qemu_plugin_insn *insn; - uint64_t insn_vaddr; - uint32_t insn_opcode; - char *insn_disas; + bool skip = (imatches || amatches) ? true : false; size_t n = qemu_plugin_tb_n_insns(tb); for (size_t i = 0; i < n; i++) { + char *insn_disas; + uint64_t insn_vaddr; + /* * `insn` is shared between translations in QEMU, copy needed data here. * `output` is never freed as it might be used multiple times during @@ -99,20 +103,52 @@ static void vcpu_tb_trans(qemu_plugin_id_t id, struct qemu_plugin_tb *tb) * a limitation for CISC architectures. */ insn = qemu_plugin_tb_get_insn(tb, i); - insn_vaddr = qemu_plugin_insn_vaddr(insn); - insn_opcode = *((uint32_t *)qemu_plugin_insn_data(insn)); insn_disas = qemu_plugin_insn_disas(insn); - char *output = g_strdup_printf("0x%"PRIx64", 0x%"PRIx32", \"%s\"", - insn_vaddr, insn_opcode, insn_disas); + insn_vaddr = qemu_plugin_insn_vaddr(insn); + + /* + * If we are filtering we better check out if we have any + * hits. The skip "latches" so we can track memory accesses + * after the instruction we care about. + */ + if (skip && imatches) { + int j; + for (j = 0; j < imatches->len && skip; j++) { + char *m = g_ptr_array_index(imatches, j); + if (g_str_has_prefix(insn_disas, m)) { + skip = false; + } + } + } + + if (skip && amatches) { + int j; + for (j = 0; j < amatches->len && skip; j++) { + uint64_t v = g_array_index(amatches, uint64_t, j); + if (v == insn_vaddr) { + skip = false; + } + } + } - /* Register callback on memory read or write */ - qemu_plugin_register_vcpu_mem_cb(insn, vcpu_mem, - QEMU_PLUGIN_CB_NO_REGS, - QEMU_PLUGIN_MEM_RW, NULL); + if (skip) { + g_free(insn_disas); + } else { + uint32_t insn_opcode; + insn_opcode = *((uint32_t *)qemu_plugin_insn_data(insn)); + char *output = g_strdup_printf("0x%"PRIx64", 0x%"PRIx32", \"%s\"", + insn_vaddr, insn_opcode, insn_disas); + + /* Register callback on memory read or write */ + qemu_plugin_register_vcpu_mem_cb(insn, vcpu_mem, + QEMU_PLUGIN_CB_NO_REGS, + QEMU_PLUGIN_MEM_RW, NULL); + + /* Register callback on instruction */ + qemu_plugin_register_vcpu_insn_exec_cb(insn, vcpu_insn_exec, + QEMU_PLUGIN_CB_NO_REGS, output); + } - /* Register callback on instruction */ - qemu_plugin_register_vcpu_insn_exec_cb(insn, vcpu_insn_exec, - QEMU_PLUGIN_CB_NO_REGS, output); } } @@ -132,6 +168,25 @@ static void plugin_exit(qemu_plugin_id_t id, void *p) } } +/* Add a match to the array of matches */ +static void parse_insn_match(char *match) +{ + if (!imatches) { + imatches = g_ptr_array_new(); + } + g_ptr_array_add(imatches, match); +} + +static void parse_vaddr_match(char *match) +{ + uint64_t v = g_ascii_strtoull(match, NULL, 16); + + if (!amatches) { + amatches = g_array_new(false, true, sizeof(uint64_t)); + } + g_array_append_val(amatches, v); +} + /** * Install the plugin */ @@ -145,6 +200,19 @@ QEMU_PLUGIN_EXPORT int qemu_plugin_install(qemu_plugin_id_t id, */ last_exec = g_array_new(FALSE, FALSE, sizeof(GString *)); + for (int i = 0; i < argc; i++) { + char *opt = argv[i]; + g_autofree char **tokens = g_strsplit(opt, "=", 2); + if (g_strcmp0(tokens[0], "ifilter") == 0) { + parse_insn_match(tokens[1]); + } else if (g_strcmp0(tokens[0], "afilter") == 0) { + parse_vaddr_match(tokens[1]); + } else { + fprintf(stderr, "option parsing failed: %s\n", opt); + return -1; + } + } + /* Register translation block and exit callbacks */ qemu_plugin_register_vcpu_tb_trans_cb(id, vcpu_tb_trans); qemu_plugin_register_atexit_cb(id, plugin_exit, NULL); From patchwork Tue Oct 4 13:01:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612244 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp181755pvb; Tue, 4 Oct 2022 06:42:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM65+Au3+iYMxv3abNN48XV2SXUkpnVHUbQmCls0pdQFfBpfx1TaZUX+ovi5/mKosEVi5Cbu X-Received: by 2002:ad4:5dcf:0:b0:4b1:aa37:f4c7 with SMTP id m15-20020ad45dcf000000b004b1aa37f4c7mr3923547qvh.13.1664890969093; Tue, 04 Oct 2022 06:42:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664890969; cv=none; d=google.com; s=arc-20160816; b=XOlYt8eRW3hNj02raKuzkB1jWDu2wzvt9K87uuiFFQWIUmHDBRYMyNlR8SJDIX+4pR 9EDiTICWB+GYPl3lGJBI7/9MSqP3oufhfCmNaE/VFmWE4+DV01uL/DNLFpiF5wW/5kxg hvptA0tl7flXSTEUwlqh6DlnJdgsjg1cbIHTmzRDe+0vO2PorK9XYK9HmY/tpoWiWC9J RmxWTaSKxMhvzd9OL3vgvsdq6DMJ5Pqsbxc8K/YTq8syfRgidvSNoO8PV785wQNSvZRl C3e4IBMjxHHSRrenMbG8PVFRCpXDgTBtHD3MSeiO5NoZcqWRU+yqAjisLy0EL6+mwTUu 5ZVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jSmfjv0ctja6HwiXXo3PB6e8oy0gMZiBORhXoR2vclY=; b=bq4tx3ViLa9USDsISUaH8knXF3oKW32LDC8hJ32ov5YDpKtvHf62a0J3HnB09Dd/ly qOHqaHVWjwywtxx13sH4zCYEWYCAV3gyJAwkpIBfjDZDdofGmfuXR4PnF/4VW12uZ6y+ 09J9LOlEKyIQha1oprEUdq7Q2BJK/y2mYUzicDPdP44U+ocSM15K04MO4eKTRxwun0Wp OzkmlmECnokOUunqfoWwlnlVyfNYwRuj+Q63dLKKibjQ8rYpJr5W+qzztOrZKmuMuKsn mcIEff7+c6A3Lk849gn+nJBEdmFtzblO95QB1/AaOBkGqSBo94G2MOygauBjV4dpRrFD t3Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=scMcTcXF; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bl36-20020a05620a1aa400b006cbbc3ea96fsi119952qkb.265.2022.10.04.06.42.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:42:49 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=scMcTcXF; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:57666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiC8-00055A-IN for patch@linaro.org; Tue, 04 Oct 2022 09:42:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhgO-0007Q2-Ds for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:00 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:55888) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgM-00008g-P7 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:00 -0400 Received: by mail-wm1-x334.google.com with SMTP id t4so8835027wmj.5 for ; Tue, 04 Oct 2022 06:09:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=jSmfjv0ctja6HwiXXo3PB6e8oy0gMZiBORhXoR2vclY=; b=scMcTcXFZW+0RHO5twtfPbureADnmoqR1EReSXJH64RUAC2ogM45OX82f0nasZePAg JIcmxq8GLF0dhyOyM0WQhDAKwAMSmATu7GEUkpy6JlL7sway6UvR5K90AtKrMZZ0PWAZ jmJBhAXxp32IIErAq6oWLgpo7qDSuhS6iU0TQVDsD7ZH5mhXPRAxy2helH8FlPDebQtn ZxY5M3B07TJjVbx3olbEq3pF0aXrHqfCh9mHTYmrfvyzeqJVftADWT/A9UIy1zaluCK0 BMW1uDP7nCOYGonpFn+ya+7WQRGwUsgyvdfCXsOIIyAIXMdTQei+GhMjLzLitKCO92er 11jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=jSmfjv0ctja6HwiXXo3PB6e8oy0gMZiBORhXoR2vclY=; b=2TT/p9I0mdEbgJHk4LBDBoKjWLq6Rnopj4rAt/8TK1nzfXeTonDPrtOLpWJOK5G+iX 6SbZ4nBgpRBjSMq6Kx1YasNjYBifaLZYG/o5SQOR1CeCG48tRhK9HoRFBNfJiAkmxTA/ UmInW4BuuNeykyc0Q9NZKx6THg5HlKfqoxG2m8wV5Q7GCrzgQ5yvyPSb7C9Q6xbmfa3v ff8jCQilJppZNCTDJUK6Z1EyQkQE8mQuFjnrGTvrxRQvu2cE6/SnJxmDv4gImyNqIYJt wxifUMoxrMGE/TbOlZ3H2v5bcUUIjW1H6sCKBHj6b8GLPofTiTRx3F7yRphXoYhYCULM SVAw== X-Gm-Message-State: ACrzQf0gtg0Amia5p/7zNsYFhZJvrAvRGYSAY5dZn9gIpUg9l5utEcH2 y6ZtXk2NfA6cqJzL4Ig+rmBA8g== X-Received: by 2002:a7b:c8d6:0:b0:3b4:868b:afc3 with SMTP id f22-20020a7bc8d6000000b003b4868bafc3mr9917718wml.66.1664888996025; Tue, 04 Oct 2022 06:09:56 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id 12-20020a05600c240c00b003b4764442f0sm14523827wmp.11.2022.10.04.06.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:09:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 67A981FFD8; Tue, 4 Oct 2022 14:01:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, Richard Henderson , Damien Hedde , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Alexandre Iooss , Mahmoud Mandour Subject: [PULL 36/54] plugins: Assert mmu_idx in range before use in qemu_plugin_get_hwaddr Date: Tue, 4 Oct 2022 14:01:20 +0100 Message-Id: <20221004130138.2299307-37-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x334.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Coverity reports out-of-bound accesses here. This should be a false positive due to how the index is decoded from MemOpIdx. Fixes: Coverity CID 1487201 Signed-off-by: Richard Henderson Reviewed-by: Damien Hedde Message-Id: <20220401190233.329360-1-richard.henderson@linaro.org> Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220929114231.583801-37-alex.bennee@linaro.org> diff --git a/plugins/api.c b/plugins/api.c index 7bf71b189d..2078b16edb 100644 --- a/plugins/api.c +++ b/plugins/api.c @@ -289,6 +289,8 @@ struct qemu_plugin_hwaddr *qemu_plugin_get_hwaddr(qemu_plugin_meminfo_t info, enum qemu_plugin_mem_rw rw = get_plugin_meminfo_rw(info); hwaddr_info.is_store = (rw & QEMU_PLUGIN_MEM_W) != 0; + assert(mmu_idx < NB_MMU_MODES); + if (!tlb_plugin_lookup(cpu, vaddr, mmu_idx, hwaddr_info.is_store, &hwaddr_info)) { error_report("invalid use of qemu_plugin_get_hwaddr"); From patchwork Tue Oct 4 13:01:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612259 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp192745pvb; Tue, 4 Oct 2022 07:01:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM49fPg70E+5xmpuDTnwmUDHlO/WNuGHPI7tqv0lQyJ8InTZ23KKbHneprtMMH9qfONv6r22 X-Received: by 2002:ad4:5945:0:b0:4b1:71fa:4723 with SMTP id eo5-20020ad45945000000b004b171fa4723mr13511112qvb.24.1664892086744; Tue, 04 Oct 2022 07:01:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664892086; cv=none; d=google.com; s=arc-20160816; b=X/NgCBYjYiRC2PKUTmtNmRiyiv0Cro6zih2935+M6ll0L+5lOBVeac4mtO6e0JlEIe SftkLkZqEdOFYVaYxT50hOrOWe0IVk9Y38ehoS1ETV7X544k6MOa+v4B+qH+azUmwa1z RLrGzYb0brBJdSM72hlDFjWJcacXIVa8x0uCRxX1nerXWfUZa/Gp3hLD9KSumuefLScU 6/0Yl8EbzmJzg5146fWRgfY0eIA7mYOL2rK76nwp6snk/nrO37Fc0LAxjf3h2u5uLZIB 43KGKqre3kLih5UzEtbhnTR0IbuiIVyHWPGvp9XJNooQ6z3yFxDX/5/Bkd57QNO3wb/a LjOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+EAMPNccITJT6MPq/SX1010khU+nXYZGC3lTu1OYiqA=; b=zrxNiohIciSpQVOrapEady4oEYvvrPcm3WIpvH7lKroc0HZ6yvtiVUiyaEaXNk3vP6 FYnCpZjvg+iRkkrRYCo/U2xrFa54HCyHldDw75CGiTcrpaekQcXtLIu1MV06xKwLL60x r6HBw1MJCIXuQcvrQ9Q/Gj/QqwmeVbKefqNeyt8vqElCShu+FhJlisUTiKFO0xJdgnGe GCIPMNUdYCFDciiCQpBkgre6c/3trIHBrdu7JWQQnuXXScLNkHMR6Ya0EmJPzIZayqvd ICOVWw2U+dGlJKeMZ2IkAlAymhjIwXSn7KMQrZQraSGEvO6XbINm4Kmqm/Bhv17oey2Q zNig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h7T5CIpt; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id p2-20020ac87402000000b0035cecfddeb2si4527773qtq.557.2022.10.04.07.01.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 07:01:26 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h7T5CIpt; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:36522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiU9-0005YJ-Vo for patch@linaro.org; Tue, 04 Oct 2022 10:01:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhqB-0001Lr-52 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:08 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:43774) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhq6-0001sD-Kl for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:05 -0400 Received: by mail-wr1-x433.google.com with SMTP id n12so1703696wrp.10 for ; Tue, 04 Oct 2022 06:20:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=+EAMPNccITJT6MPq/SX1010khU+nXYZGC3lTu1OYiqA=; b=h7T5CIptIHcQJPhYsS1IrQ7pWxNJ4a/uUfSTQJgZS2YjArZWgcxaLzasTpbUq2vzsJ xdxxAPZ4rOBe3DQb4kU7sgLRkvX19I3Xn26zje5IyHLcgdHzJDBalv1tmD27s2xiFErt PCtioQw/6o1QmXENHc6QjjTmMJHx9vixtv8CBWp7xxlAh+02rUaVeWysH4f16aG3sFHX PFRsp2ad0dqObaqwBrvdAl2xYazy9wD4+tRWiOC5UgbG8lNq6rtPLMXrBKOcwKczTLtj 2kYtoTM06xm157pdEjW5VgRxJUlDPbjikoSh6X9YLSpxMXXp2bwtHHE7BM9rHyCcJy2z 6v1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=+EAMPNccITJT6MPq/SX1010khU+nXYZGC3lTu1OYiqA=; b=Q/qfXZX5+0HFdoABqipzrsq8j3e5GRq1kcrw6q6GHb7PEIa8ykxIfy13r/dRrbNB1d h2hswF+TdTll8hrfeiRIUWdtsrvQWWbCHaUSDs3RNDbNl0FTBT30F1DYHNGYqisOdXF0 L9aBcCfXO3dcRgkch0bR4EYZBX4sp0537aoO8M2qP8P3QpbktJy/ZDg1iO/qLqxeRT1X w/VUnqHWnNE/2iW2zjw1xchx09J+yxxABR1A1iDlss4sSEWfd20QSCvWWEZz0wFPsCnV apUKhoK346EXi8FCGgEpCAacolc+ZO7aPTCZJOk/scVTNDeVrP4406SPiIFaG7myGBZf W64A== X-Gm-Message-State: ACrzQf235P1ylkrmI+pokHXq0lPFwP52ZkH9SY8xvmHIT4RJCX2aXs83 x7mLQWjLgqHMsuxa+43Bo3VBpA== X-Received: by 2002:adf:fb05:0:b0:228:6463:b15d with SMTP id c5-20020adffb05000000b002286463b15dmr16395546wrr.534.1664889599471; Tue, 04 Oct 2022 06:19:59 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id r18-20020a05600c35d200b003a84375d0d1sm20615327wmq.44.2022.10.04.06.19.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:19:55 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 7F2C71FFD9; Tue, 4 Oct 2022 14:01:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Alexandre Iooss , Mahmoud Mandour Subject: [PULL 37/54] docs/devel: clean-up qemu invocations in tcg-plugins Date: Tue, 4 Oct 2022 14:01:21 +0100 Message-Id: <20221004130138.2299307-38-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x433.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We currently have the final binaries in the root of the build dir so the build prefix is superfluous. Additionally add a shell prompt to be more in line with the rest of the code. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220929114231.583801-38-alex.bennee@linaro.org> diff --git a/docs/devel/tcg-plugins.rst b/docs/devel/tcg-plugins.rst index a503d44cee..a6fdde01f8 100644 --- a/docs/devel/tcg-plugins.rst +++ b/docs/devel/tcg-plugins.rst @@ -172,7 +172,7 @@ slightly faster (but not thread safe) counters. Example:: - ./aarch64-linux-user/qemu-aarch64 \ + $ qemu-aarch64 \ -plugin contrib/plugins/libhotblocks.so -d plugin \ ./tests/tcg/aarch64-linux-user/sha1 SHA1=15dd99a1991e0b3826fede3deffc1feba42278e6 @@ -186,7 +186,7 @@ Example:: Similar to hotblocks but this time tracks memory accesses:: - ./aarch64-linux-user/qemu-aarch64 \ + $ qemu-aarch64 \ -plugin contrib/plugins/libhotpages.so -d plugin \ ./tests/tcg/aarch64-linux-user/sha1 SHA1=15dd99a1991e0b3826fede3deffc1feba42278e6 @@ -220,7 +220,7 @@ counted. You can give a value to the ``count`` argument for a class of instructions to break it down fully, so for example to see all the system registers accesses:: - ./aarch64-softmmu/qemu-system-aarch64 $(QEMU_ARGS) \ + $ qemu-system-aarch64 $(QEMU_ARGS) \ -append "root=/dev/sda2 systemd.unit=benchmark.service" \ -smp 4 -plugin ./contrib/plugins/libhowvec.so,count=sreg -d plugin @@ -288,10 +288,10 @@ for the plugin is a path for the socket the two instances will communicate over:: - ./sparc-softmmu/qemu-system-sparc -monitor none -parallel none \ + $ qemu-system-sparc -monitor none -parallel none \ -net none -M SS-20 -m 256 -kernel day11/zImage.elf \ -plugin ./contrib/plugins/liblockstep.so,sockpath=lockstep-sparc.sock \ - -d plugin,nochain + -d plugin,nochain which will eventually report:: @@ -348,7 +348,7 @@ Please be aware that this will generate a lot of output. The plugin needs default argument:: - qemu-system-arm $(QEMU_ARGS) \ + $ qemu-system-arm $(QEMU_ARGS) \ -plugin ./contrib/plugins/libexeclog.so -d plugin which will output an execution trace following this structure:: @@ -365,10 +365,10 @@ which will output an execution trace following this structure:: 0, 0x10c8, 0xfff96c43, "ldr r3, [r0, #0x44]", load, 0x200000e4, RAM the output can be filtered to only track certain instructions or -addresses using the `ifilter` or `afilter` options. You can stack the +addresses using the ``ifilter`` or ``afilter`` options. You can stack the arguments if required:: - qemu-system-arm $(QEMU_ARGS) \ + $ qemu-system-arm $(QEMU_ARGS) \ -plugin ./contrib/plugins/libexeclog.so,ifilter=st1w,afilter=0x40001808 -d plugin - contrib/plugins/cache.c @@ -377,7 +377,7 @@ Cache modelling plugin that measures the performance of a given L1 cache configuration, and optionally a unified L2 per-core cache when a given working set is run:: - qemu-x86_64 -plugin ./contrib/plugins/libcache.so \ + $ qemu-x86_64 -plugin ./contrib/plugins/libcache.so \ -d plugin -D cache.log ./tests/tcg/x86_64-linux-user/float_convs will report the following:: From patchwork Tue Oct 4 13:01:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612240 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp180194pvb; Tue, 4 Oct 2022 06:40:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7+NHozO3GhhNsWk77RK4xYle70g2DKM/liDWXPL/GOKqGpDtqEHvzkZYTUF1xnpTBdVNKP X-Received: by 2002:a05:6214:29e9:b0:4b1:8d19:a2e8 with SMTP id jv9-20020a05621429e900b004b18d19a2e8mr7439610qvb.46.1664890822850; Tue, 04 Oct 2022 06:40:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664890822; cv=none; d=google.com; s=arc-20160816; b=FY1yYKFIsy36OX8vLrV5PYmbqInH+fAsZ5V00nzPRDbyfWcPTW0YYHc9Sy1a2dms8y e635vE83B+cPxvIUVV/bWYUkrIoE13q2AnTBy/QMeYud4/3vIyJcwAf5G3HxFr8X1UkF d3M5AhT2VBfezVoSf0SQk8vW0lJ0emTBKNPkbIAQG7qLe1MJ2dE1L1JaGgyJYAtFKtPm aDVcYy8WyFTGH5xnZQJRfY2Qi9yvA6UiKqm8ZZf5SljfGagL/mxroJGx7gycVNCIa+l4 ZrsgXB2FjfCfMXoBMwWlOK/FnIyCkMde3dNfmRW4a8qxtUG5KrhdhviJnSRtnAXJsLrX UJ9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fhoAi/xjuDoN5VZ/rqThN4w2DfKiDIs3NBYh2o+mArw=; b=Dw/fA5a7MhrXWKRcJFVicgHcRThDeLlZ30j6YT0Z+3LSh8pSsgZ01DiW+l/IDTMnPd XXWcSQPWpQUSVbCNnvOONn6yxKTtSl0stEzxL4vqIcLomZZYTnE0QeKy4DXbLmmk5IOR naTCDC+tWrBccF7jnjiJ9Y8nqCW8hj0+Xlzs25rJpQ4gIGS7h2nQi5GkzJ+poE6V4/8C yjnOARLXdsBdTkvT1bPfEto/6y6ORpK5D/4teLWwc9i1tILWtETeew1fj1r10gI4nV+2 7sRaFS1NqfgbME424NJ0FkAyJpLfjNfqQmHO09XSt+PU4Q+LBnt4h15SJFEm8u/QNzD8 0w2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n4rhT87w; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u41-20020a05622a19a900b0035ba6adf7d7si5658482qtc.307.2022.10.04.06.40.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:40:22 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n4rhT87w; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:51298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofi9l-0007q1-S1 for patch@linaro.org; Tue, 04 Oct 2022 09:40:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54796) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhgN-0007NW-6z for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:09:59 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:37561) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgJ-00008P-ON for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:09:58 -0400 Received: by mail-wr1-x42e.google.com with SMTP id bq9so21256172wrb.4 for ; Tue, 04 Oct 2022 06:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=fhoAi/xjuDoN5VZ/rqThN4w2DfKiDIs3NBYh2o+mArw=; b=n4rhT87wP1uUGOIK3z0zbJAnigrr8SZCtlcoGCuIfeqAPmWXHHNEoDR04Blwvj440J pJS/Be3xw9y+ssJsjMcupKA3m9s5QcBqZghwITsom3G64HkWOq0VNQ8jcHRh+FvSGKEy GNyLXMjhGkvHcdUdTY+Mc0ZHNWActa5L+Te2Bl1he/uXEga+6wEN6T2gJc30YqhlKrTG 0MAzFtU5SJgJRFJzOvqeIy6ZSemZoVPeGRwgmTj04vYSJcK6sYBYwS6TaT86+OYriRyb k+W/4kjq2e4qnT1Yn5mKQr2IiVex3+12aX/v1PwgX1WTLyQJ7GZtOkk+5OdklV4mKtDu /XkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=fhoAi/xjuDoN5VZ/rqThN4w2DfKiDIs3NBYh2o+mArw=; b=sjH1yFfAKjA2lYl52Kx31rXaLQtNCbEwrjXLhktyCMDIz65zuRyWe/qB23ZLWVEd1+ 9nDTKv/MjzbJljXqT8ES3O4k7VkISg0HQ1W80Iy0qyDDU3hg+OPstYOk5+ImhHlqHOBU D7rMPKdZEmcHvXixaQVub3bADVatiuaSLd2WQ7TDOwhuM6JLYXTvmHoJmlTU+pVL4EiR 7Ds0Ze9cNzyD/GwJp87CLqVEaoUlaCOGBs0Q4yyTL6GV4LMXqoyvS7a7lii7t2ub4S+f 0WXbAzZneUTeYgS1vL7VN4PeAEtQMOw/foicPtJsfgaiCXtRV6jPpz3Li24R8YQOIXgs zWrQ== X-Gm-Message-State: ACrzQf2rzmazH7t6wkSpe62WZzecyPcXxU3oBi+x4rP8i6xBxA6IOLjk iWNgZarLvV4ZXF7lEPCGJSYEsg== X-Received: by 2002:adf:f001:0:b0:22e:4f85:3abc with SMTP id j1-20020adff001000000b0022e4f853abcmr1908878wro.107.1664888993590; Tue, 04 Oct 2022 06:09:53 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id f13-20020a5d568d000000b0022584c82c80sm12446271wrv.19.2022.10.04.06.09.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:09:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9736B1FFDA; Tue, 4 Oct 2022 14:01:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Alexandre Iooss , Mahmoud Mandour Subject: [PULL 38/54] docs/devel: move API to end of tcg-plugins.rst Date: Tue, 4 Oct 2022 14:01:22 +0100 Message-Id: <20221004130138.2299307-39-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42e.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The API documentation is quite dry and doesn't flow nicely with the rest of the document. Move it to its own section at the bottom along with a little leader text to remind people to update it. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220929114231.583801-39-alex.bennee@linaro.org> diff --git a/docs/devel/tcg-plugins.rst b/docs/devel/tcg-plugins.rst index a6fdde01f8..8b40b2a606 100644 --- a/docs/devel/tcg-plugins.rst +++ b/docs/devel/tcg-plugins.rst @@ -110,11 +110,6 @@ details are opaque to plugins. The plugin is able to query select details of instructions and system configuration only through the exported *qemu_plugin* functions. -API -~~~ - -.. kernel-doc:: include/qemu/qemu-plugin.h - Internals --------- @@ -448,3 +443,13 @@ The plugin has a number of arguments, all of them are optional: associativity of the L2 cache, respectively. Setting any of the L2 configuration arguments implies ``l2=on``. (default: N = 2097152 (2MB), B = 64, A = 16) + +API +--- + +The following API is generated from the inline documentation in +``include/qemu/qemu-plugin.h``. Please ensure any updates to the API +include the full kernel-doc annotations. + +.. kernel-doc:: include/qemu/qemu-plugin.h + From patchwork Tue Oct 4 13:01:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612264 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp200162pvb; Tue, 4 Oct 2022 07:09:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4gJXKQ2q7i8D72hpYIrct7IRXxUNxRXtsmri1Xlrx8r1bhN3YUUP+koPlfFBIRu9VetCB2 X-Received: by 2002:a05:620a:a17:b0:6cb:e23e:9268 with SMTP id i23-20020a05620a0a1700b006cbe23e9268mr17363170qka.333.1664892591899; Tue, 04 Oct 2022 07:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664892591; cv=none; d=google.com; s=arc-20160816; b=PaoC2bue7hgfm1JPz6lQMb8Sh9HMP09eC1nS7jE0DF8oHqjVecRkqz1R+Cr9h3QcPz 4/Oy9/7ZokHLvIoNyag5nqZS+GGxPmPlH2MlyAIYvYky1DhodmTO7JvOsosn1UVQsvg7 kXw3D0mHg0iSLKksdx+9Than3qW/vZElmz1I13MAdMwz0pNDJ4zNkYx/YoxSwjUgbH79 EZJUVC/pJmOc5VhUzPfh9WxQ0xJPNwVPfnsdzW7Cb7vVzyVD39BAMz0Id6TkYf/zGVBg m2ZGD8hER6XOsEhobLnDn6JQz5lpwbHydVsnvIoVnv7DoXxCWtd5Ak/FgRQmD7pT/vNY reog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9LqzuxSgRUEWhI49Vb5gMhdtkHKyysd2sMCsQOX6w2Q=; b=IX6n/VnoRJailbxtnR5B/uF5ks043cNA9hQXHePgYeG25yovjvvrfcV9eRGbg4yWz3 ZLdEkIYKGt8w1ZQV0yTy6M847Q+uPNqQMHZqkfdbvC9vsZIePOY3IQCecFFLSNtYAXCi 74+naroHI6cJV/hyVEl6mjvaIi8Ga5hBAL/I3NIEsOlblgs2PN9y/2X02kygZXQTxvMJ KsJxMfNto9fm2XfOGm71Aw8YYyv+4mb+BT/5lz2IAonzJhE6MbU5/HOu/VLqErOzFnnA 9SL/B+QMu3FiVRTyjltB87J9t4PmiotGtQGGiHZsfbHorzRtCHnP3y6r6++o5sSXmlj0 gZLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lIHIeBrq; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z20-20020a05620a08d400b006ce7e30377bsi4636350qkz.182.2022.10.04.07.09.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 07:09:51 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lIHIeBrq; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:40130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oficJ-0006Ha-45 for patch@linaro.org; Tue, 04 Oct 2022 10:09:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhq3-0001J1-Ht for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:03 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:41925) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhq0-0001pm-RI for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:19:58 -0400 Received: by mail-wr1-x42b.google.com with SMTP id bu30so1403122wrb.8 for ; Tue, 04 Oct 2022 06:19:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=9LqzuxSgRUEWhI49Vb5gMhdtkHKyysd2sMCsQOX6w2Q=; b=lIHIeBrqv7USjW7i7efOXs46rVW/DvGIO3QBl8zayH1LDJ5nDGGXRuXN6f5UaKvWgj FCnPP66IotfsUSFKPn6paCvbGXFktCoIxOZcCssD0Q+RI1NFVvVrsXrRo5ZG08brvoXY YjXOF+eulpN52DIZQ05W8vOqi0z8cyFOZB1OLQATpQktPQje4ljR5EEfulE1FIhTL63s 1UHsm63Sohlnlbcg4PbGZ46lmbVVKnFiAe9xZTLh1XdnZMXuj4AlQRo2xK4TzyBpPn4o zEaAZqEyg861eUdL3j2y5a2haWfPl2qXdMTgeHXA+wGPEOtR5LrcSfP8udCZ72GV4XtR PAiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=9LqzuxSgRUEWhI49Vb5gMhdtkHKyysd2sMCsQOX6w2Q=; b=vzjqXL7+uZNVozkBrWgCNr4Cbm93iAFPN3kLj9YzHIygm+pROW/0a4RFnozenlcsZD DQNGYNagESSv+D1nAZWhx7NYvcRx1+ot2jVc7RNu3IX3Q7D5dPswZ50jh5cWM57c9Zov 8L0o+ic/Rc1LsWmP1vhLixdqlOXGq9b0Kchm12+V4igDOdCphfMoEYqdB6yKFYFMBA/c q23UmqfqrPILrHpvAAvtucH7gXoQrdeG0puOQ13q9M0XVZC9PGxi3pUd93JOnTgTqxY8 4HA7KEqaVbtDYb6aKmOxregU+AjWf574fyMbRGNpi0siMppOV1cUssp2p3g+pn/9gXYb w9sw== X-Gm-Message-State: ACrzQf3pzLaJI4RlfRhY91wZiGRByN8Gzq96pt4dVbp5pKCe5pCBLbYw kH0Y1+7W8qpjG0bQpqIH30B0WQ== X-Received: by 2002:a5d:5944:0:b0:22e:3c67:75de with SMTP id e4-20020a5d5944000000b0022e3c6775demr6636044wri.5.1664889596059; Tue, 04 Oct 2022 06:19:56 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id o20-20020a05600c339400b003a5c999cd1asm17742276wmp.14.2022.10.04.06.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:19:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id AD3961FFDB; Tue, 4 Oct 2022 14:01:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Alexandre Iooss , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Mahmoud Mandour Subject: [PULL 39/54] contrib/plugins: reset skip when matching in execlog Date: Tue, 4 Oct 2022 14:01:23 +0100 Message-Id: <20221004130138.2299307-40-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42b.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The purpose of the matches was to only track the execution of instructions we care about. Without resetting skip to the value at the start of the block we end up dumping all instructions after the match with the consequent load on the instrumentation. Signed-off-by: Alex Bennée Cc: Alexandre Iooss Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220929114231.583801-40-alex.bennee@linaro.org> diff --git a/contrib/plugins/execlog.c b/contrib/plugins/execlog.c index e659ac9cbb..1b3bb7ebba 100644 --- a/contrib/plugins/execlog.c +++ b/contrib/plugins/execlog.c @@ -88,7 +88,7 @@ static void vcpu_insn_exec(unsigned int cpu_index, void *udata) static void vcpu_tb_trans(qemu_plugin_id_t id, struct qemu_plugin_tb *tb) { struct qemu_plugin_insn *insn; - bool skip = (imatches || amatches) ? true : false; + bool skip = (imatches || amatches); size_t n = qemu_plugin_tb_n_insns(tb); for (size_t i = 0; i < n; i++) { @@ -147,6 +147,9 @@ static void vcpu_tb_trans(qemu_plugin_id_t id, struct qemu_plugin_tb *tb) /* Register callback on instruction */ qemu_plugin_register_vcpu_insn_exec_cb(insn, vcpu_insn_exec, QEMU_PLUGIN_CB_NO_REGS, output); + + /* reset skip */ + skip = (imatches || amatches); } } From patchwork Tue Oct 4 13:01:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612255 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp190095pvb; Tue, 4 Oct 2022 06:57:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6NqsTkNHkTs9JyFyDTROMWaWDL0qHfOoKiXmAlL+Ybpdn4y8/E0wLeHUt1B6ZOW9XFsAER X-Received: by 2002:a05:6214:caf:b0:4b1:7904:5425 with SMTP id s15-20020a0562140caf00b004b179045425mr12859013qvs.32.1664891847420; Tue, 04 Oct 2022 06:57:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664891847; cv=none; d=google.com; s=arc-20160816; b=EOkuC+nJaYhjoLo+lFV3wb54mvonKvWsGsa3ayvrY9MUpbs8rkbYRBtQw9oW7RlM3E sYCATpEzBzY24r3KqgXzVKscc+cfOGyhJxxPPaaClSAsl7LSOGFiV55iZDejxDdzdo29 ymk+efEvyRROFKgJONax9L7iaxoEIMg8uXD1WYTFSO5vqKHOEn5yCfsVc/DVH/oVbUnu Y8l7tYX9P//48JIxIny4owAZXd780B0QVLS1IsKYNfigrvcQM4Gi+LUf9B3GE885qkFx Cb0l6U5Xv1oNtPVj3C7YKtW7nAicd8r4116+9pdtjGayy9FyUxooMiwGNkqbcl8Y3Swt rA1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Gc5efp4TKI9Un8YLuLzBs+j1jFkZeAySokvshtzhWKI=; b=Q/objlJLW7qiLFoXXZuy+rVSemYPcVhHslA9zwkJlzO9B/ypdiffj4Jgzig3hi6zMI H6XWTiDoW0uaLV9uvTu/5FgYYCTx2CBSejgMsncZA8TAPNkcdyU+9zHle3fGi05h9MT8 gZqqdSbz3LcCVdoTP134eUwShKKvq+uWQAe6QRa53/puu1XSbMYLzWym2Cp/2RLHFL3a l1+uCJxv1FQhNPBpf4GneakHPI+zUtI8kzNaYWTnC3BnfuScProG7ONvZYah33ksMWmg 2Nwfd0oJUxTJwrxMvRuaG1HuCNpKMyG2YzD4C7JIskxAYJSOTqulyBZaIenZZf/IerMf o0cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZDmmF2EG; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id j25-20020ac85519000000b0035ca95c3b44si4563617qtq.505.2022.10.04.06.57.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:57:27 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZDmmF2EG; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:52388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiQI-0007Fn-V8 for patch@linaro.org; Tue, 04 Oct 2022 09:57:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhgW-0007ml-4n for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:08 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:41783) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgT-0000Hc-IN for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:07 -0400 Received: by mail-wr1-x432.google.com with SMTP id bu30so1360299wrb.8 for ; Tue, 04 Oct 2022 06:10:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=Gc5efp4TKI9Un8YLuLzBs+j1jFkZeAySokvshtzhWKI=; b=ZDmmF2EG5SuxME74vWpDuUCYL7PoVEkha7ulqN4MJtmiuKUnn7AlBPt6iF8PFAU9t6 aDKiviydgBeFqQrtb7yWapuqh546zZ41j+u5G9OKXhqDkT37Jb5zfAw4JbEcDVD27m7L hY1EMRX977q37gEfbwlV32jyyRT09hrDy6/liQ7u67GsRnXRGe9YInQvY/7gB/xTgPnT SP03Q4NvaUUzUY6sM0cobo3OuQvAi4Nzaf/vtgYIsgYHjGyLEGaKRbtDsTN+mOLWPSAn WVd0Wz68OaSdmCOabrmJwPeEnii4mCI1YHF4zSlhKcBgJPEGC/bYMlwtdW/6u2tGo/SE G26g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=Gc5efp4TKI9Un8YLuLzBs+j1jFkZeAySokvshtzhWKI=; b=7Ay0rD33pQat7UFU068DDAfW85Asp1PRn20T9JQnKTLHdqc6JIYeWeZcbQImCcHvwF /AwgyYGOt8cbxyiWj9eiDL3Q+UaO4r13o1aP4oX+Jh9Ec+bIAaWW2clFoBj2DU8VQmiP He2Q0/DYGg7W47XXP+KEJeoFLv11Y2lcl88ZY4B2slOQLN6JfdiqAmj/kLho4RhuboAg 8Pl13UXB7gbnw8Tns+UxLyQKjZStzT1cUVTqLJE1ldYH0MbtxT6XCwObMbJ1pc7wJagC zXygRi/UpwuuU/6CZeKt0gvhCRzEVq03hqgFvMIF7yDeGzol2PGp59JITQGFHUEhEMYo b5eg== X-Gm-Message-State: ACrzQf2k+/YhqLaZLGUgi/nZ4oaAm1Od2bhPKTJQPJU7AzTUzpZeuoah zXpOvoDncvxGRVV0jaH8Q2hV+adqOrlvDQ== X-Received: by 2002:adf:db03:0:b0:22a:dd80:4b45 with SMTP id s3-20020adfdb03000000b0022add804b45mr15674036wri.111.1664889003990; Tue, 04 Oct 2022 06:10:03 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id be7-20020a05600c1e8700b003b476bb2624sm14140278wmb.6.2022.10.04.06.09.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:10:02 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C43371FFDC; Tue, 4 Oct 2022 14:01:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Alexandre Iooss , Mahmoud Mandour Subject: [PULL 40/54] docs/devel: document the test plugins Date: Tue, 4 Oct 2022 14:01:24 +0100 Message-Id: <20221004130138.2299307-41-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Although the test plugins are fairly basic they are still useful for some things so we should document their existence. Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-41-alex.bennee@linaro.org> diff --git a/docs/devel/tcg-plugins.rst b/docs/devel/tcg-plugins.rst index 8b40b2a606..9740a70406 100644 --- a/docs/devel/tcg-plugins.rst +++ b/docs/devel/tcg-plugins.rst @@ -145,12 +145,141 @@ Example Plugins There are a number of plugins included with QEMU and you are encouraged to contribute your own plugins plugins upstream. There is a -``contrib/plugins`` directory where they can go. +``contrib/plugins`` directory where they can go. There are also some +basic plugins that are used to test and exercise the API during the +``make check-tcg`` target in ``tests\plugins``. -- tests/plugins +- tests/plugins/empty.c -These are some basic plugins that are used to test and exercise the -API during the ``make check-tcg`` target. +Purely a test plugin for measuring the overhead of the plugins system +itself. Does no instrumentation. + +- tests/plugins/bb.c + +A very basic plugin which will measure execution in course terms as +each basic block is executed. By default the results are shown once +execution finishes:: + + $ qemu-aarch64 -plugin tests/plugin/libbb.so \ + -d plugin ./tests/tcg/aarch64-linux-user/sha1 + SHA1=15dd99a1991e0b3826fede3deffc1feba42278e6 + bb's: 2277338, insns: 158483046 + +Behaviour can be tweaked with the following arguments: + + * inline=true|false + + Use faster inline addition of a single counter. Not per-cpu and not + thread safe. + + * idle=true|false + + Dump the current execution stats whenever the guest vCPU idles + +- tests/plugins/insn.c + +This is a basic instruction level instrumentation which can count the +number of instructions executed on each core/thread:: + + $ qemu-aarch64 -plugin tests/plugin/libinsn.so \ + -d plugin ./tests/tcg/aarch64-linux-user/threadcount + Created 10 threads + Done + cpu 0 insns: 46765 + cpu 1 insns: 3694 + cpu 2 insns: 3694 + cpu 3 insns: 2994 + cpu 4 insns: 1497 + cpu 5 insns: 1497 + cpu 6 insns: 1497 + cpu 7 insns: 1497 + total insns: 63135 + +Behaviour can be tweaked with the following arguments: + + * inline=true|false + + Use faster inline addition of a single counter. Not per-cpu and not + thread safe. + + * sizes=true|false + + Give a summary of the instruction sizes for the execution + + * match= + + Only instrument instructions matching the string prefix. Will show + some basic stats including how many instructions have executed since + the last execution. For example:: + + $ qemu-aarch64 -plugin tests/plugin/libinsn.so,match=bl \ + -d plugin ./tests/tcg/aarch64-linux-user/sha512-vector + ... + 0x40069c, 'bl #0x4002b0', 10 hits, 1093 match hits, Δ+1257 since last match, 98 avg insns/match + 0x4006ac, 'bl #0x403690', 10 hits, 1094 match hits, Δ+47 since last match, 98 avg insns/match + 0x4037fc, 'bl #0x4002b0', 18 hits, 1095 match hits, Δ+22 since last match, 98 avg insns/match + 0x400720, 'bl #0x403690', 10 hits, 1096 match hits, Δ+58 since last match, 98 avg insns/match + 0x4037fc, 'bl #0x4002b0', 19 hits, 1097 match hits, Δ+22 since last match, 98 avg insns/match + 0x400730, 'bl #0x403690', 10 hits, 1098 match hits, Δ+33 since last match, 98 avg insns/match + 0x4037ac, 'bl #0x4002b0', 12 hits, 1099 match hits, Δ+20 since last match, 98 avg insns/match + ... + +For more detailed execution tracing see the ``execlog`` plugin for +other options. + +- tests/plugins/mem.c + +Basic instruction level memory instrumentation:: + + $ qemu-aarch64 -plugin tests/plugin/libmem.so,inline=true \ + -d plugin ./tests/tcg/aarch64-linux-user/sha1 + SHA1=15dd99a1991e0b3826fede3deffc1feba42278e6 + inline mem accesses: 79525013 + +Behaviour can be tweaked with the following arguments: + + * inline=true|false + + Use faster inline addition of a single counter. Not per-cpu and not + thread safe. + + * callback=true|false + + Use callbacks on each memory instrumentation. + + * hwaddr=true|false + + Count IO accesses (only for system emulation) + +- tests/plugins/syscall.c + +A basic syscall tracing plugin. This only works for user-mode. By +default it will give a summary of syscall stats at the end of the +run:: + + $ qemu-aarch64 -plugin tests/plugin/libsyscall \ + -d plugin ./tests/tcg/aarch64-linux-user/threadcount + Created 10 threads + Done + syscall no. calls errors + 226 12 0 + 99 11 11 + 115 11 0 + 222 11 0 + 93 10 0 + 220 10 0 + 233 10 0 + 215 8 0 + 214 4 0 + 134 2 0 + 64 2 0 + 96 1 0 + 94 1 0 + 80 1 0 + 261 1 0 + 78 1 0 + 160 1 0 + 135 1 0 - contrib/plugins/hotblocks.c From patchwork Tue Oct 4 13:01:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612260 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp197548pvb; Tue, 4 Oct 2022 07:06:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7JIWbsc1sdztgDqr0Pyptty6lVSyGu6hdEy4TB13x3qSfP8Mq92hsExiXwrDY+bY2z0nlW X-Received: by 2002:a05:622a:487:b0:35d:53eb:ce87 with SMTP id p7-20020a05622a048700b0035d53ebce87mr19730387qtx.212.1664892381059; Tue, 04 Oct 2022 07:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664892381; cv=none; d=google.com; s=arc-20160816; b=WhjCY5MOkQQDfOKNhWXokknueU3glbk7a5IYZOobixAhvoZS4GOcamXzW+ujYUlCH2 DBTFEIMR/PsHj42j6hJavpCqDQqkJ0nQbkVCK2yRmVh3aw+kLL2RMpuVDakcor78q7g4 rK12FnprpAHnAWNVuScvv2dFJLO5SOq4Zw/lA05Epa0M6Uj/+kxMV+h/589uUd68u2oZ XiGEa4aIDPt23dJV69R+2HYhgpJk1MxQp7zzFX0KmTac6VIUaEEAAae0i7GMGpEBisS7 6ZKCI1685zgT2DHHtnKYfyDW5zxvHgE0J5nQQLGtjEdJWWLFYG9t7ZNfH+7bc3OX1jNw 8ZiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=yGSkbMoPofI9Br/KBzjNKYqnINCzi4oVJhDzB+0baZo=; b=h2c38b5BPnNHLCTB6swVkbzEEe41V5AFq2mwDyGiUFa6RxX9X6CfFSbTYhZcKxMkNU 0VFgXh+rjHRkeZ+eaHEp2K/9q2x3LIv1pPTThcoOgArCc/yPnk18VfzhrBlNG60hnkYx IeGk3T0ZkQ+L81BG37JTtwBULRODHxd3vehoXFW54V6w817wJq5OT6bzOpN/5OYkTxmC L00EEpOcFPM1FfKgKgnG9Oq93NGvq6DzShj5+ioxjtODHuuWXv1jRGGvhHTXvMooh5pw flfvBe0IhQmk+W2JByXl+9Q5JfG1WxjPkowjXXz8HFlf7bqpX0H0cSoA+oCEOnhnljhI UV6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=adnTEUGe; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id fo9-20020ad45f09000000b004a195757f9dsi932346qvb.491.2022.10.04.07.06.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 07:06:21 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=adnTEUGe; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:50780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiYu-0000IW-E3 for patch@linaro.org; Tue, 04 Oct 2022 10:06:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhq0-0001Hk-29 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:19:56 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:41925) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhpx-0001pm-Qp for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:19:55 -0400 Received: by mail-wr1-x42b.google.com with SMTP id bu30so1402865wrb.8 for ; Tue, 04 Oct 2022 06:19:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=yGSkbMoPofI9Br/KBzjNKYqnINCzi4oVJhDzB+0baZo=; b=adnTEUGeqU2ImWVa/ItQoKk//DIlMZ7ZgUAXSIbj6oVpW2iq++voRWo+o7YnHF0JqF weEsYbe7Egjb9BAAfClCDsbsj8aA1NkiNm5eG+c82g7ahRe0w29k6t3phbTarbnpo1yH EOdI56CHN0WCOPwpSgjiuDwQ9tp+JoxCRIxo4S2pdH4pB1M8R65vudCRfCLtPCQ60lxu bOfogEVNMxXd1VQ6Dqg0EOXTVyyWviHrUOgOxBGxc93OHgbMZGqJQLrUufdQpSNp4eBc yeYB4TU666l2kJzdzlYK7T2BQAVNveCFgqBv/I5kAFHPk/OvDzXuYUe2d1zOhQhSy06v w4Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=yGSkbMoPofI9Br/KBzjNKYqnINCzi4oVJhDzB+0baZo=; b=Kuyv/s4u3otzmyL0BPq+QQKQS+DajPjmjYqm2zqeAfTx2kQynwlPnzcfHyuiGzREyX i/kIe+xJ0IZO734sZYdjX5wWCS1ZxQC6WeIzYONgJ2woNORKLVqmw2X8y1Dz83Q7woUi bZKCYyMx7z582JlyGs2+bEype02tc9oARJqdy8uIrecDu8l03S5PoGIz1gwgqp7KR4cX AwfIwU7ybxBJ53S8Z5DcQgkw9RluYuIsrx9GfyDR3NiRVGlgcGUmdtm7dQgLzUhHCoFb /cpDM8fOwA+dVjEfTyvk/M68S0B0FKaDvmHVWUdW2aCsG6P/Sp/pVgRJs/ZYMeaM05Pg t/ZQ== X-Gm-Message-State: ACrzQf3e3hNurSxNTNi/Z43lgnEolxLDaj0/GTZwnLqtcT0whHd5xRSw lx+qsz9vG+uVb62rfnb5NIc/Rw== X-Received: by 2002:a05:6000:2c5:b0:22b:c77:7690 with SMTP id o5-20020a05600002c500b0022b0c777690mr16160593wry.563.1664889592015; Tue, 04 Oct 2022 06:19:52 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id f13-20020adfe90d000000b0022e57e66824sm818833wrm.99.2022.10.04.06.19.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:19:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id DA6BC1FFBC; Tue, 4 Oct 2022 14:01:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson Subject: [PULL 41/54] semihosting: update link to spec Date: Tue, 4 Oct 2022 14:01:25 +0100 Message-Id: <20221004130138.2299307-42-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42b.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The old link has moved but it seems the document is now hosted on Arm's github along with a license update to CC-BY-SA-4.0. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Message-Id: <20220929114231.583801-42-alex.bennee@linaro.org> diff --git a/semihosting/arm-compat-semi.c b/semihosting/arm-compat-semi.c index e741674238..bfea9e9337 100644 --- a/semihosting/arm-compat-semi.c +++ b/semihosting/arm-compat-semi.c @@ -24,7 +24,7 @@ * * ARM Semihosting is documented in: * Semihosting for AArch32 and AArch64 Release 2.0 - * https://static.docs.arm.com/100863/0200/semihosting.pdf + * https://github.com/ARM-software/abi-aa/blob/main/semihosting/semihosting.rst * * RISC-V Semihosting is documented in: * RISC-V Semihosting From patchwork Tue Oct 4 13:01:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612250 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp187428pvb; Tue, 4 Oct 2022 06:52:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7s4/rLIzNJXlVV6IuyHdXzkX01Hot9fmweKh7KBVCu/B/nD7FY1/SF0nGzjiphZicPaabJ X-Received: by 2002:a05:6214:2b0f:b0:4af:b379:256 with SMTP id jx15-20020a0562142b0f00b004afb3790256mr17735887qvb.117.1664891541390; Tue, 04 Oct 2022 06:52:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664891541; cv=none; d=google.com; s=arc-20160816; b=VeTd8qk5yzFQ9xJIN1gHreru1RV1Rg9dPDZflKcJr/KReDXIdhVDGxGAV4xkYbQ3Kb fwEAXQ/OCCKNjOt5tqXAfYoA02P//v0vMRqx65eHfnvmeKv178VvI/Lfzr0P3lrQaVdB ndO0Jtmqro6TsN8q9UQXhLhgBEgXhLsouVasL1JBg71LXUaA55mOTAfgwq7h52FF4Uqu dKjqxKLMG71LnWuNSImyOgrjbyNRuvxWWw2yfcJakDYNGlDU10ldWVDBkazP9JWT06Bd EdmaGG6m2UGIX49jGIYy23SwyHiW+zhVGFfQP7paRqyaF/PcSSlovGQpMwht7khQB9Ou ALHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IiROcdgqykUU3sm/aV8gw0RCaDZ8buQu6BrAfYeGbsk=; b=OuWXebWvvjV7OVe2NxtPR9kRiWqJfDFZcA5HFfSeZacPF+sIHACt8sVWdq5o26z6hR sOn/7YfyTSvfIE0UXBFQbNTReIMlbNPjaVqaGir8V98D7u0XRCaBGoTdoKbkCR4zlu34 cOSnkUpKgVZDBIwvW2KzmhauHLppnp4+LX1xQ8kUSV0/tKbix3hPQLegytaEXumTk/ov EBgazRFhLs+NvK+sV9YBU/gqGXh8npcGCC0cb1boZbtCDidwG00VuxEbBRR3tTm8S+f5 8SQkUCBwdeoFPbJ5aMjTcXzIhgGFnTBFcw7RuKfSXGx2eJWqcl0AMMU12l2JeRWgswGP fFUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RiA8jllb; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s202-20020a3745d3000000b006ce718a5cfasi4811830qka.721.2022.10.04.06.52.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:52:21 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RiA8jllb; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:39478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiLM-0008Vx-K6 for patch@linaro.org; Tue, 04 Oct 2022 09:52:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhgU-0007iY-UM for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:07 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:46987) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgS-0000B6-OD for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:06 -0400 Received: by mail-wr1-x430.google.com with SMTP id bk15so21238181wrb.13 for ; Tue, 04 Oct 2022 06:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=IiROcdgqykUU3sm/aV8gw0RCaDZ8buQu6BrAfYeGbsk=; b=RiA8jllboB5tecWk9tBvjWpZE+uVEdSc0XJdpzFIKOWCc3lS6lDaxeQOy6uPsYyieG 5tEyqHCci7umC0KcKC/UIbHlRrpLkqA+AtKYzVkYR+I7W11pBbcR+lpDMlfgUNuaBnus 942yg+Oca1MEP+aeE4595MqpTB9cbyBRGzR8lQ1tqXFcq2/gtsCrwJh3AK4ncjsFcNZh XbZy3N/rmKsJSSph9m++DRIb+Z2rA6ZqmNREHlZIXNbvNNvMIv9Yr01ic5vImwmsGpmW /GsHYfqUAITKqaGAYhMaQkbBCpKk/zXiExjZy0660O+hwiwO7lxrUWu8+rBo19kC3qTp YgvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=IiROcdgqykUU3sm/aV8gw0RCaDZ8buQu6BrAfYeGbsk=; b=kv209SI7FIVmiRQMxFC9o9CiMwQXb0S4pRWNfarSTNvM6I76RrxeG1JZB/3+r5JuXJ F6Zz0wkxJ0oL9DBm7cK1fPJQ10ivmSQ98C/aX4E2QlLUibbSxACqatMc+xn5zKNWldjX fxMhsIf4ixOjuWI+EjG1/CqJgUQLIs7uZ1jaiR2cuwf7JR1WtkrdZQiFuKGmkwpp+vEu cJ0oWrZbM5rWJmX2ElJhEJ7fv98MfJXeLh7Wtdc71+geB+Wzb54HOMJYuzYDbHQROmXW eb0xnjyGiMIUulNdoLmFzBvQ/NnVNHxiJsNXmD2E2k4yd4nhlJ+o2yw358gh1nPQ+4Sg iB3w== X-Gm-Message-State: ACrzQf34IcCUkZpDXSAdnVPAS+iu/CIke4iKHpKIcvNfKGMQLt15yicx lNhvxOOL6KQ5MvhqPrZgrcSAJNYOxNMTOQ== X-Received: by 2002:a05:6000:18c7:b0:22e:5503:9c46 with SMTP id w7-20020a05600018c700b0022e55039c46mr1344062wrq.668.1664889002881; Tue, 04 Oct 2022 06:10:02 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id ay26-20020a05600c1e1a00b003b4868eb6bbsm19282333wmb.23.2022.10.04.06.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:10:00 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 0B38A1FFDD; Tue, 4 Oct 2022 14:01:43 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Subject: [PULL 42/54] gdbstub: move into its own sub directory Date: Tue, 4 Oct 2022 14:01:26 +0100 Message-Id: <20221004130138.2299307-43-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x430.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is in preparation of future refactoring as well as cleaning up the source tree. Aside from the minor tweaks to meson and trace.h this is pure code motion. Reviewed-by: Richard Henderson Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-43-alex.bennee@linaro.org> diff --git a/meson.build b/meson.build index ac5ef05c21..73646558db 100644 --- a/meson.build +++ b/meson.build @@ -2837,6 +2837,7 @@ trace_events_subdirs = [ 'qom', 'monitor', 'util', + 'gdbstub', ] if have_linux_user trace_events_subdirs += [ 'linux-user' ] @@ -2960,6 +2961,7 @@ subdir('authz') subdir('crypto') subdir('ui') subdir('hw') +subdir('gdbstub') if enable_modules @@ -3037,7 +3039,7 @@ common_ss.add(files('cpus-common.c')) subdir('softmmu') common_ss.add(capstone) -specific_ss.add(files('cpu.c', 'disas.c', 'gdbstub.c'), capstone) +specific_ss.add(files('cpu.c', 'disas.c'), capstone) # Work around a gcc bug/misfeature wherein constant propagation looks # through an alias: diff --git a/gdbstub/trace.h b/gdbstub/trace.h new file mode 100644 index 0000000000..dee87b1238 --- /dev/null +++ b/gdbstub/trace.h @@ -0,0 +1 @@ +#include "trace/trace-gdbstub.h" diff --git a/gdbstub.c b/gdbstub/gdbstub.c similarity index 99% rename from gdbstub.c rename to gdbstub/gdbstub.c index cf869b10e3..7d8fe475b3 100644 --- a/gdbstub.c +++ b/gdbstub/gdbstub.c @@ -29,7 +29,7 @@ #include "qemu/ctype.h" #include "qemu/cutils.h" #include "qemu/module.h" -#include "trace/trace-root.h" +#include "trace.h" #include "exec/gdbstub.h" #ifdef CONFIG_USER_ONLY #include "qemu.h" diff --git a/MAINTAINERS b/MAINTAINERS index 789172b2a8..e1530b51a2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2677,7 +2677,7 @@ GDB stub M: Alex Bennée R: Philippe Mathieu-Daudé S: Maintained -F: gdbstub* +F: gdbstub/* F: include/exec/gdbstub.h F: gdb-xml/ F: tests/tcg/multiarch/gdbstub/ diff --git a/gdbstub/meson.build b/gdbstub/meson.build new file mode 100644 index 0000000000..6d4ae2d03c --- /dev/null +++ b/gdbstub/meson.build @@ -0,0 +1 @@ +specific_ss.add(files('gdbstub.c')) diff --git a/gdbstub/trace-events b/gdbstub/trace-events new file mode 100644 index 0000000000..03f0c303bf --- /dev/null +++ b/gdbstub/trace-events @@ -0,0 +1,29 @@ +# See docs/devel/tracing.rst for syntax documentation. + +# gdbstub.c +gdbstub_op_start(const char *device) "Starting gdbstub using device %s" +gdbstub_op_exiting(uint8_t code) "notifying exit with code=0x%02x" +gdbstub_op_continue(void) "Continuing all CPUs" +gdbstub_op_continue_cpu(int cpu_index) "Continuing CPU %d" +gdbstub_op_stepping(int cpu_index) "Stepping CPU %d" +gdbstub_op_extra_info(const char *info) "Thread extra info: %s" +gdbstub_hit_watchpoint(const char *type, int cpu_gdb_index, uint64_t vaddr) "Watchpoint hit, type=\"%s\" cpu=%d, vaddr=0x%" PRIx64 "" +gdbstub_hit_internal_error(void) "RUN_STATE_INTERNAL_ERROR" +gdbstub_hit_break(void) "RUN_STATE_DEBUG" +gdbstub_hit_paused(void) "RUN_STATE_PAUSED" +gdbstub_hit_shutdown(void) "RUN_STATE_SHUTDOWN" +gdbstub_hit_io_error(void) "RUN_STATE_IO_ERROR" +gdbstub_hit_watchdog(void) "RUN_STATE_WATCHDOG" +gdbstub_hit_unknown(int state) "Unknown run state=0x%x" +gdbstub_io_reply(const char *message) "Sent: %s" +gdbstub_io_binaryreply(size_t ofs, const char *line) "0x%04zx: %s" +gdbstub_io_command(const char *command) "Received: %s" +gdbstub_io_got_ack(void) "Got ACK" +gdbstub_io_got_unexpected(uint8_t ch) "Got 0x%02x when expecting ACK/NACK" +gdbstub_err_got_nack(void) "Got NACK, retransmitting" +gdbstub_err_garbage(uint8_t ch) "received garbage between packets: 0x%02x" +gdbstub_err_overrun(void) "command buffer overrun, dropping command" +gdbstub_err_invalid_repeat(uint8_t ch) "got invalid RLE count: 0x%02x" +gdbstub_err_invalid_rle(void) "got invalid RLE sequence" +gdbstub_err_checksum_invalid(uint8_t ch) "got invalid command checksum digit: 0x%02x" +gdbstub_err_checksum_incorrect(uint8_t expected, uint8_t got) "got command packet with incorrect checksum, expected=0x%02x, received=0x%02x" diff --git a/trace-events b/trace-events index bc71006675..035f3d570d 100644 --- a/trace-events +++ b/trace-events @@ -46,34 +46,6 @@ ram_block_discard_range(const char *rbname, void *hva, size_t length, bool need_ memory_notdirty_write_access(uint64_t vaddr, uint64_t ram_addr, unsigned size) "0x%" PRIx64 " ram_addr 0x%" PRIx64 " size %u" memory_notdirty_set_dirty(uint64_t vaddr) "0x%" PRIx64 -# gdbstub.c -gdbstub_op_start(const char *device) "Starting gdbstub using device %s" -gdbstub_op_exiting(uint8_t code) "notifying exit with code=0x%02x" -gdbstub_op_continue(void) "Continuing all CPUs" -gdbstub_op_continue_cpu(int cpu_index) "Continuing CPU %d" -gdbstub_op_stepping(int cpu_index) "Stepping CPU %d" -gdbstub_op_extra_info(const char *info) "Thread extra info: %s" -gdbstub_hit_watchpoint(const char *type, int cpu_gdb_index, uint64_t vaddr) "Watchpoint hit, type=\"%s\" cpu=%d, vaddr=0x%" PRIx64 "" -gdbstub_hit_internal_error(void) "RUN_STATE_INTERNAL_ERROR" -gdbstub_hit_break(void) "RUN_STATE_DEBUG" -gdbstub_hit_paused(void) "RUN_STATE_PAUSED" -gdbstub_hit_shutdown(void) "RUN_STATE_SHUTDOWN" -gdbstub_hit_io_error(void) "RUN_STATE_IO_ERROR" -gdbstub_hit_watchdog(void) "RUN_STATE_WATCHDOG" -gdbstub_hit_unknown(int state) "Unknown run state=0x%x" -gdbstub_io_reply(const char *message) "Sent: %s" -gdbstub_io_binaryreply(size_t ofs, const char *line) "0x%04zx: %s" -gdbstub_io_command(const char *command) "Received: %s" -gdbstub_io_got_ack(void) "Got ACK" -gdbstub_io_got_unexpected(uint8_t ch) "Got 0x%02x when expecting ACK/NACK" -gdbstub_err_got_nack(void) "Got NACK, retransmitting" -gdbstub_err_garbage(uint8_t ch) "received garbage between packets: 0x%02x" -gdbstub_err_overrun(void) "command buffer overrun, dropping command" -gdbstub_err_invalid_repeat(uint8_t ch) "got invalid RLE count: 0x%02x" -gdbstub_err_invalid_rle(void) "got invalid RLE sequence" -gdbstub_err_checksum_invalid(uint8_t ch) "got invalid command checksum digit: 0x%02x" -gdbstub_err_checksum_incorrect(uint8_t expected, uint8_t got) "got command packet with incorrect checksum, expected=0x%02x, received=0x%02x" - # job.c job_state_transition(void *job, int ret, const char *legal, const char *s0, const char *s1) "job %p (ret: %d) attempting %s transition (%s-->%s)" job_apply_verb(void *job, const char *state, const char *verb, const char *legal) "job %p in state %s; applying verb %s (%s)" From patchwork Tue Oct 4 13:01:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612265 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp200512pvb; Tue, 4 Oct 2022 07:10:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6gjrMh1aBmhrUD4q8N4cV9gxo9qaGRafMLndFwf8UKgDHufV90JZ+uDEXvsCocUaId75q3 X-Received: by 2002:a05:620a:4441:b0:6ce:4048:caef with SMTP id w1-20020a05620a444100b006ce4048caefmr16957802qkp.438.1664892621058; Tue, 04 Oct 2022 07:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664892621; cv=none; d=google.com; s=arc-20160816; b=xTFriAH3ppN9KwyY4ai8RHSjNjAYCs8QDE6XP53VILZfCoxj1a9mAhWZMB/yN2dIPm UNjfE5duI6sAWk0vjQxW4R49y0YYufIrbn0ocAM2VJJPTdWG7nqvXK0P/JTdcUtoE6HK yR/FIhFTBkUdrueofBWSEtraWuuwZG+soFzaOLDvNPvVbluDZhpZXpdXzFvoZIPoMzbH edy+EJv04I2F5papIanTYI+j9U9ir9uhHn+OmeULq32dlJnjeYGoTCVUfbUC7zYiga8U ZUL3oYv4Oab42zEc5Ubbxjj6HpnXSoJjC0fxYqlGD0CBkCjDM0zdwqh05IHUh6svSm5V T7qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MgJTGDBpQjQGrnVMnG5+sJMGIGyBv0ba2UQsV9L2XME=; b=BLJWc9S15Zssr/3aPaCJ/jxJIdCNYUVe1GfaU2BEgSI2/++vqr21w6GL8tp2TRt7Pw f7/ZSCD1oT6xBn4usTgGZJCe0afpbDwyw+eGBBbVDQzNyA7QPYXZqWdAaS7K2Ju4vUxG 0B+WD8ERfWTYFa9w37S17BAMSIGUXjfIkoautbzGWa+eIT7nTL6VvtNf/ZqG7Zq+xM7i Pc5JTN8kKb2hrQ51pdlVy7vKNEyO3nA2JhWJCiJ60f4baAJKFxsyTC1lVlVVWGV6FWdr pNFOBk/rH5ApvEgQv8p9HQx04H2oE3I//XUoy9pqs1V3NadSH5hLXigQOlYv0Do1suG6 DtEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HQA8Xocs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z188-20020a3797c5000000b006ce1c2e9b85si4787281qkd.478.2022.10.04.07.10.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 07:10:21 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HQA8Xocs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:42252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oficm-0006pC-G7 for patch@linaro.org; Tue, 04 Oct 2022 10:10:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhqX-0001Nx-Gk for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:30 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:35584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhq7-0001sq-OI for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:09 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 130-20020a1c0288000000b003b494ffc00bso10291519wmc.0 for ; Tue, 04 Oct 2022 06:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=MgJTGDBpQjQGrnVMnG5+sJMGIGyBv0ba2UQsV9L2XME=; b=HQA8XocsV0dRxud33n0KjAkB+ITX2AQ8MzxWFQZnYnjffdkDAPrLXEMoPdKVHL+D4t rbjFIskRE02a063tYssEZ5Mnzh10ULdqkMdkDfQsEjGrrKQUGnYSUUHAtemogWClOHn/ e6Q88Q4x6fYQ8R+fwR2rFyQbmW892UQZkxSxKHw8awkp+IUsX5q6NlP2Gxr4/wL81ppS b9rsqfpFYtUOAxP5T3pIUjfvE1Cn6QZ5vDvTjln1PziXTn5zaIg6xip2LtfjhwGBZzO9 ONX5qzNBUg4hSfEyPi/RM7K01sPPHqEu4KAJYySKGpjECP5V6TOlmxwbXEWCeDqt2IUt T4Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=MgJTGDBpQjQGrnVMnG5+sJMGIGyBv0ba2UQsV9L2XME=; b=waIgJMag8M4P5vS4UOZ0pwAFBHPVE8LuD1VGIbZBB5WbUd6G8ni+Ac5O40Vsswopjw dKWXelzOv/3hIrvTTMLBlOLo/j8JdftmslRqIGLKeqymc5GJymKrecPeibijahVp4Fna vzOaOL8QTxTES/CQSAfkMqUXXLWekxa0h2tnoYlvc1CpD6H0pwqvITJy4Up61c1nnUW1 kmDShnO3oc728dWyI8057IjvBfPH47s968kAC8ArLRhushAt5khbnk39PahZxKTFZRY8 2q6n7Sdh9c7lpJswmY38itkK3Ax8PZxVNPw67L5GL24/7U5097uhDfSFCI7k0/EPTkul osMA== X-Gm-Message-State: ACrzQf1pmCEiiwqcrI0JrvPBmXX38jK+edhlCrx5gju3SmsOWPfz5+wz 0+xW1x9LdvDOQ0Mi23wsfet/0Q== X-Received: by 2002:a05:600c:1c1f:b0:3b4:8330:5a46 with SMTP id j31-20020a05600c1c1f00b003b483305a46mr10355125wms.45.1664889601304; Tue, 04 Oct 2022 06:20:01 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id c63-20020a1c3542000000b003a6a3595edasm14802503wma.27.2022.10.04.06.19.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:19:58 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2DB851FFDE; Tue, 4 Oct 2022 14:01:43 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Mads Ynddal , Paolo Bonzini , kvm@vger.kernel.org (open list:Overall KVM CPUs) Subject: [PULL 43/54] gdbstub: move sstep flags probing into AccelClass Date: Tue, 4 Oct 2022 14:01:27 +0100 Message-Id: <20221004130138.2299307-44-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32a.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The support of single-stepping is very much dependent on support from the accelerator we are using. To avoid special casing in gdbstub move the probing out to an AccelClass function so future accelerators can put their code there. Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée Reviewed-by: Mads Ynddal Message-Id: <20220929114231.583801-44-alex.bennee@linaro.org> diff --git a/include/qemu/accel.h b/include/qemu/accel.h index be56da1b99..ce4747634a 100644 --- a/include/qemu/accel.h +++ b/include/qemu/accel.h @@ -43,6 +43,10 @@ typedef struct AccelClass { bool (*has_memory)(MachineState *ms, AddressSpace *as, hwaddr start_addr, hwaddr size); #endif + + /* gdbstub related hooks */ + int (*gdbstub_supported_sstep_flags)(void); + bool *allowed; /* * Array of global properties that would be applied when specific @@ -92,4 +96,12 @@ void accel_cpu_instance_init(CPUState *cpu); */ bool accel_cpu_realizefn(CPUState *cpu, Error **errp); +/** + * accel_supported_gdbstub_sstep_flags: + * + * Returns the supported single step modes for the configured + * accelerator. + */ +int accel_supported_gdbstub_sstep_flags(void); + #endif /* QEMU_ACCEL_H */ diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h index efd6dee818..a20ad51aad 100644 --- a/include/sysemu/kvm.h +++ b/include/sysemu/kvm.h @@ -47,7 +47,6 @@ extern bool kvm_direct_msi_allowed; extern bool kvm_ioeventfd_any_length_allowed; extern bool kvm_msi_use_devid; extern bool kvm_has_guest_debug; -extern int kvm_sstep_flags; #define kvm_enabled() (kvm_allowed) /** @@ -174,12 +173,6 @@ extern int kvm_sstep_flags; */ #define kvm_supports_guest_debug() (kvm_has_guest_debug) -/* - * kvm_supported_sstep_flags - * Returns: SSTEP_* flags that KVM supports for guest debug - */ -#define kvm_get_supported_sstep_flags() (kvm_sstep_flags) - #else #define kvm_enabled() (0) @@ -198,7 +191,6 @@ extern int kvm_sstep_flags; #define kvm_ioeventfd_any_length_enabled() (false) #define kvm_msi_devid_required() (false) #define kvm_supports_guest_debug() (false) -#define kvm_get_supported_sstep_flags() (0) #endif /* CONFIG_KVM_IS_POSSIBLE */ diff --git a/accel/accel-common.c b/accel/accel-common.c index 50035bda55..df72cc989a 100644 --- a/accel/accel-common.c +++ b/accel/accel-common.c @@ -129,6 +129,16 @@ bool accel_cpu_realizefn(CPUState *cpu, Error **errp) return true; } +int accel_supported_gdbstub_sstep_flags(void) +{ + AccelState *accel = current_accel(); + AccelClass *acc = ACCEL_GET_CLASS(accel); + if (acc->gdbstub_supported_sstep_flags) { + return acc->gdbstub_supported_sstep_flags(); + } + return 0; +} + static const TypeInfo accel_cpu_type = { .name = TYPE_ACCEL_CPU, .parent = TYPE_OBJECT, diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index 5acab1767f..c55938453a 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -175,7 +175,7 @@ bool kvm_direct_msi_allowed; bool kvm_ioeventfd_any_length_allowed; bool kvm_msi_use_devid; bool kvm_has_guest_debug; -int kvm_sstep_flags; +static int kvm_sstep_flags; static bool kvm_immediate_exit; static hwaddr kvm_max_slot_size = ~0; @@ -3712,6 +3712,17 @@ static void kvm_accel_instance_init(Object *obj) s->kvm_dirty_ring_size = 0; } +/** + * kvm_gdbstub_sstep_flags(): + * + * Returns: SSTEP_* flags that KVM supports for guest debug. The + * support is probed during kvm_init() + */ +static int kvm_gdbstub_sstep_flags(void) +{ + return kvm_sstep_flags; +} + static void kvm_accel_class_init(ObjectClass *oc, void *data) { AccelClass *ac = ACCEL_CLASS(oc); @@ -3719,6 +3730,7 @@ static void kvm_accel_class_init(ObjectClass *oc, void *data) ac->init_machine = kvm_init; ac->has_memory = kvm_accel_has_memory; ac->allowed = &kvm_allowed; + ac->gdbstub_supported_sstep_flags = kvm_gdbstub_sstep_flags; object_class_property_add(oc, "kernel-irqchip", "on|off|split", NULL, kvm_set_kernel_irqchip, diff --git a/accel/tcg/tcg-all.c b/accel/tcg/tcg-all.c index 47952eecd7..30b503fb22 100644 --- a/accel/tcg/tcg-all.c +++ b/accel/tcg/tcg-all.c @@ -25,6 +25,7 @@ #include "qemu/osdep.h" #include "sysemu/tcg.h" +#include "sysemu/replay.h" #include "sysemu/cpu-timers.h" #include "tcg/tcg.h" #include "qapi/error.h" @@ -207,12 +208,28 @@ static void tcg_set_splitwx(Object *obj, bool value, Error **errp) s->splitwx_enabled = value; } +static int tcg_gdbstub_supported_sstep_flags(void) +{ + /* + * In replay mode all events will come from the log and can't be + * suppressed otherwise we would break determinism. However as those + * events are tied to the number of executed instructions we won't see + * them occurring every time we single step. + */ + if (replay_mode != REPLAY_MODE_NONE) { + return SSTEP_ENABLE; + } else { + return SSTEP_ENABLE | SSTEP_NOIRQ | SSTEP_NOTIMER; + } +} + static void tcg_accel_class_init(ObjectClass *oc, void *data) { AccelClass *ac = ACCEL_CLASS(oc); ac->name = "tcg"; ac->init_machine = tcg_init_machine; ac->allowed = &tcg_allowed; + ac->gdbstub_supported_sstep_flags = tcg_gdbstub_supported_sstep_flags; object_class_property_add_str(oc, "thread", tcg_get_thread, diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c index 7d8fe475b3..a0755e6505 100644 --- a/gdbstub/gdbstub.c +++ b/gdbstub/gdbstub.c @@ -383,27 +383,13 @@ static void init_gdbserver_state(void) gdbserver_state.last_packet = g_byte_array_sized_new(MAX_PACKET_LENGTH + 4); /* - * In replay mode all events will come from the log and can't be - * suppressed otherwise we would break determinism. However as those - * events are tied to the number of executed instructions we won't see - * them occurring every time we single step. - */ - if (replay_mode != REPLAY_MODE_NONE) { - gdbserver_state.supported_sstep_flags = SSTEP_ENABLE; - } else if (kvm_enabled()) { - gdbserver_state.supported_sstep_flags = kvm_get_supported_sstep_flags(); - } else { - gdbserver_state.supported_sstep_flags = - SSTEP_ENABLE | SSTEP_NOIRQ | SSTEP_NOTIMER; - } - - /* - * By default use no IRQs and no timers while single stepping so as to - * make single stepping like an ICE HW step. + * What single-step modes are supported is accelerator dependent. + * By default try to use no IRQs and no timers while single + * stepping so as to make single stepping like a typical ICE HW step. */ + gdbserver_state.supported_sstep_flags = accel_supported_gdbstub_sstep_flags(); gdbserver_state.sstep_flags = SSTEP_ENABLE | SSTEP_NOIRQ | SSTEP_NOTIMER; gdbserver_state.sstep_flags &= gdbserver_state.supported_sstep_flags; - } #ifndef CONFIG_USER_ONLY From patchwork Tue Oct 4 13:01:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612241 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp180405pvb; Tue, 4 Oct 2022 06:40:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4FEegkcJIt0A3yPaZyVcuSDgKU6oD6veTeXrlKi6TpltmKUrayHx5hLDlfGI9bZdCo2vRu X-Received: by 2002:ac8:5953:0:b0:35b:ab1a:ff09 with SMTP id 19-20020ac85953000000b0035bab1aff09mr19386939qtz.144.1664890844766; Tue, 04 Oct 2022 06:40:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664890844; cv=none; d=google.com; s=arc-20160816; b=OB1bY11AE+EvE4KZA/ITHvvotGBnH7njHNTIZjNemX24oLa1d58GHVF7Qx+pp48HH+ 197+0+WoPQ9iqOQeZD3kKVmu27EGaLjjdpyjEUuWKXXn2PrUcFyMwwodcuSjwutznxiY fqyVRfrWtIdzzw2u8haOAOSwN6yOXlvlMJYfq8RJV+13K8HAdG7kPxLM7IxRt/r4XslM qwZoICYDn069AjIyylz+gdSMb2i9AcaNIHRAOtFKXtGGAvo9C+S75W3qcwAgg98wjx0m HKBRPGph5MsC6plYeqdHRaHrqxGLhacSVhSwFq9fBH8eQJ1ixpOdFoQKlQhqZxBPvVb1 4Evw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Q7EMprv1d/UKlDE4EbUZKoIpWTov/qYbHrxCfHpDRyM=; b=OCPI5ECFsrSxelddtSTg25MnHQYZE21VSI2cRC8GKPwJqYrpvlvamdKpZUm9GhDWuV PIYD+s9JOb2d9EpdleCohgWDxwboVjk6NUAhMAu6YYLedKQq1jsW9P+1E3mqE7uQy6nb qh8t8yrAlUH0yYMWUgKyXyId/aWT2KKJZ5jDW3bSRO5q8mzTinV0FDjneZggaGIqzc+L 15wWzUjnbaM0oezmycJRCasVtwFxPI533xqbTL0A6Ia8LR0pDtMErrc+37lDLz+rR7Gt BrfmeW+im15N4uJkuOxHFVXm8Pp3uGg2FAyivJR0CiW20T6o9QLaMYkUdDPz3UU1lxPm qc3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lOWsaf8P; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id r4-20020a0562140c4400b004aa9f544bbesi995062qvj.390.2022.10.04.06.40.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:40:44 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lOWsaf8P; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:60672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiA8-0000UY-7o for patch@linaro.org; Tue, 04 Oct 2022 09:40:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhgR-0007XY-FK for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:03 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:55273) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgO-00009T-AM for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:03 -0400 Received: by mail-wm1-x333.google.com with SMTP id iv17so8852895wmb.4 for ; Tue, 04 Oct 2022 06:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=Q7EMprv1d/UKlDE4EbUZKoIpWTov/qYbHrxCfHpDRyM=; b=lOWsaf8Py8+dkRwjAoKQJDwO6CR4ZmgRSCbHPW2Amd6DZ45WjYBjKG3B9utMorytbm dRgo7EkjytdBaOhKQJ4QZIyEeDQyb0RjhEAPNomuTUPLuwlz1rwRWU4K41E/5Rf6pCWF iq8qSnp+NvlHo3o53Ot7ewew5SzEc8in6/gYNE8KFhnzAlSGNiIo1k7dkSGWJ+0pWXK4 d/S9blerki/2Bv9h51+iFzEisGGUBiBNJti+K7Zvv2+IyyoUpm3tPmuRBFIK9Eti5B8v aVC+raqr9xJPsEMHMrXxYsW1gQYuRrsqXSrI7p4hgBcbUqClL7ftvP/EcWrIAINO6NIz gXZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=Q7EMprv1d/UKlDE4EbUZKoIpWTov/qYbHrxCfHpDRyM=; b=I5Hhk8XKrdVIsGZ7fZaj1guMXMPYKFRR6kMcDUYHaRLmYzYA7Rs0S1axpvhoo0hWBs J4+hxj4x1AEe7G/YkFAEa5/zdNypDUdfHB5I0h9cKb9ucDLt8CyIWMlqoc4YZpJEzSuR hsKtDSOz1E3GLpdGxrZIrF4g1ZTATMm+uMJfVUvJG2pZQ39mGML1U3woFSzNR5MNNoZv drJkQZ1UR6RilVWIXfdTG0AEZ6ovpSZlKp05RB1p5VuW7VbkUxh6idOsaiKfA1t6Qhxr s2BWZXqcd3GefFU8wPvMMlzvb+1nuLoe7D38yWRNep/S1/wSAB7a5KhfqaeDP/ieHiV6 Ug8g== X-Gm-Message-State: ACrzQf1f/pLCe/+/gOCEkUwYwL1Ou6GKbCBKB9wD1QTj4ay+XM5Ljijd WI1cW0ZgQ7tKo98rTF2vfpNO9w== X-Received: by 2002:a05:600c:4c96:b0:3b5:52d6:1573 with SMTP id g22-20020a05600c4c9600b003b552d61573mr10426238wmp.9.1664888998659; Tue, 04 Oct 2022 06:09:58 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id iv16-20020a05600c549000b003b4c40378casm21277626wmb.39.2022.10.04.06.09.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:09:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 65A561FFDF; Tue, 4 Oct 2022 14:01:43 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson , Mads Ynddal , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , kvm@vger.kernel.org (open list:Overall KVM CPUs) Subject: [PULL 44/54] gdbstub: move breakpoint logic to accel ops Date: Tue, 4 Oct 2022 14:01:28 +0100 Message-Id: <20221004130138.2299307-45-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x333.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" As HW virtualization requires specific support to handle breakpoints lets push out special casing out of the core gdbstub code and into AccelOpsClass. This will make it easier to add other accelerator support and reduces some of the stub shenanigans. Reviewed-by: Richard Henderson Signed-off-by: Alex Bennée Reviewed-by: Mads Ynddal Message-Id: <20220929114231.583801-45-alex.bennee@linaro.org> diff --git a/accel/kvm/kvm-cpus.h b/accel/kvm/kvm-cpus.h index bf0bd1bee4..33e435d62b 100644 --- a/accel/kvm/kvm-cpus.h +++ b/accel/kvm/kvm-cpus.h @@ -18,5 +18,8 @@ void kvm_destroy_vcpu(CPUState *cpu); void kvm_cpu_synchronize_post_reset(CPUState *cpu); void kvm_cpu_synchronize_post_init(CPUState *cpu); void kvm_cpu_synchronize_pre_loadvm(CPUState *cpu); +int kvm_insert_breakpoint(CPUState *cpu, int type, hwaddr addr, hwaddr len); +int kvm_remove_breakpoint(CPUState *cpu, int type, hwaddr addr, hwaddr len); +void kvm_remove_all_breakpoints(CPUState *cpu); #endif /* KVM_CPUS_H */ diff --git a/gdbstub/internals.h b/gdbstub/internals.h new file mode 100644 index 0000000000..41e2e72dbf --- /dev/null +++ b/gdbstub/internals.h @@ -0,0 +1,16 @@ +/* + * gdbstub internals + * + * Copyright (c) 2022 Linaro Ltd + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#ifndef _INTERNALS_H_ +#define _INTERNALS_H_ + +int gdb_breakpoint_insert(CPUState *cs, int type, hwaddr addr, hwaddr len); +int gdb_breakpoint_remove(CPUState *cs, int type, hwaddr addr, hwaddr len); +void gdb_breakpoint_remove_all(CPUState *cs); + +#endif /* _INTERNALS_H_ */ diff --git a/include/sysemu/accel-ops.h b/include/sysemu/accel-ops.h index a0572ea87a..86794ac273 100644 --- a/include/sysemu/accel-ops.h +++ b/include/sysemu/accel-ops.h @@ -10,6 +10,7 @@ #ifndef ACCEL_OPS_H #define ACCEL_OPS_H +#include "exec/hwaddr.h" #include "qom/object.h" #define ACCEL_OPS_SUFFIX "-ops" @@ -44,6 +45,11 @@ struct AccelOpsClass { int64_t (*get_virtual_clock)(void); int64_t (*get_elapsed_ticks)(void); + + /* gdbstub hooks */ + int (*insert_breakpoint)(CPUState *cpu, int type, hwaddr addr, hwaddr len); + int (*remove_breakpoint)(CPUState *cpu, int type, hwaddr addr, hwaddr len); + void (*remove_all_breakpoints)(CPUState *cpu); }; #endif /* ACCEL_OPS_H */ diff --git a/include/sysemu/cpus.h b/include/sysemu/cpus.h index b5c87d48b3..1bace3379b 100644 --- a/include/sysemu/cpus.h +++ b/include/sysemu/cpus.h @@ -7,6 +7,9 @@ /* register accel-specific operations */ void cpus_register_accel(const AccelOpsClass *i); +/* return registers ops */ +const AccelOpsClass *cpus_get_accel(void); + /* accel/dummy-cpus.c */ /* Create a dummy vcpu for AccelOpsClass->create_vcpu_thread */ diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h index a20ad51aad..21d3f1d01e 100644 --- a/include/sysemu/kvm.h +++ b/include/sysemu/kvm.h @@ -254,11 +254,6 @@ int kvm_on_sigbus(int code, void *addr); void kvm_flush_coalesced_mmio_buffer(void); -int kvm_insert_breakpoint(CPUState *cpu, target_ulong addr, - target_ulong len, int type); -int kvm_remove_breakpoint(CPUState *cpu, target_ulong addr, - target_ulong len, int type); -void kvm_remove_all_breakpoints(CPUState *cpu); int kvm_update_guest_debug(CPUState *cpu, unsigned long reinject_trap); /* internal API */ diff --git a/accel/kvm/kvm-accel-ops.c b/accel/kvm/kvm-accel-ops.c index c4244a23c6..5c0e37514c 100644 --- a/accel/kvm/kvm-accel-ops.c +++ b/accel/kvm/kvm-accel-ops.c @@ -16,12 +16,14 @@ #include "qemu/osdep.h" #include "qemu/error-report.h" #include "qemu/main-loop.h" +#include "sysemu/kvm.h" #include "sysemu/kvm_int.h" #include "sysemu/runstate.h" #include "sysemu/cpus.h" #include "qemu/guest-random.h" #include "qapi/error.h" +#include #include "kvm-cpus.h" static void *kvm_vcpu_thread_fn(void *arg) @@ -95,6 +97,12 @@ static void kvm_accel_ops_class_init(ObjectClass *oc, void *data) ops->synchronize_post_init = kvm_cpu_synchronize_post_init; ops->synchronize_state = kvm_cpu_synchronize_state; ops->synchronize_pre_loadvm = kvm_cpu_synchronize_pre_loadvm; + +#ifdef KVM_CAP_SET_GUEST_DEBUG + ops->insert_breakpoint = kvm_insert_breakpoint; + ops->remove_breakpoint = kvm_remove_breakpoint; + ops->remove_all_breakpoints = kvm_remove_all_breakpoints; +#endif } static const TypeInfo kvm_accel_ops_type = { diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index c55938453a..b8c734fe3a 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -3287,8 +3287,7 @@ int kvm_update_guest_debug(CPUState *cpu, unsigned long reinject_trap) return data.err; } -int kvm_insert_breakpoint(CPUState *cpu, target_ulong addr, - target_ulong len, int type) +int kvm_insert_breakpoint(CPUState *cpu, int type, hwaddr addr, hwaddr len) { struct kvm_sw_breakpoint *bp; int err; @@ -3326,8 +3325,7 @@ int kvm_insert_breakpoint(CPUState *cpu, target_ulong addr, return 0; } -int kvm_remove_breakpoint(CPUState *cpu, target_ulong addr, - target_ulong len, int type) +int kvm_remove_breakpoint(CPUState *cpu, int type, hwaddr addr, hwaddr len) { struct kvm_sw_breakpoint *bp; int err; @@ -3393,26 +3391,10 @@ void kvm_remove_all_breakpoints(CPUState *cpu) #else /* !KVM_CAP_SET_GUEST_DEBUG */ -int kvm_update_guest_debug(CPUState *cpu, unsigned long reinject_trap) +static int kvm_update_guest_debug(CPUState *cpu, unsigned long reinject_trap) { return -EINVAL; } - -int kvm_insert_breakpoint(CPUState *cpu, target_ulong addr, - target_ulong len, int type) -{ - return -EINVAL; -} - -int kvm_remove_breakpoint(CPUState *cpu, target_ulong addr, - target_ulong len, int type) -{ - return -EINVAL; -} - -void kvm_remove_all_breakpoints(CPUState *cpu) -{ -} #endif /* !KVM_CAP_SET_GUEST_DEBUG */ static int kvm_set_signal_mask(CPUState *cpu, const sigset_t *sigset) diff --git a/accel/stubs/kvm-stub.c b/accel/stubs/kvm-stub.c index 2ac5f9c036..2d79333143 100644 --- a/accel/stubs/kvm-stub.c +++ b/accel/stubs/kvm-stub.c @@ -51,22 +51,6 @@ int kvm_update_guest_debug(CPUState *cpu, unsigned long reinject_trap) return -ENOSYS; } -int kvm_insert_breakpoint(CPUState *cpu, target_ulong addr, - target_ulong len, int type) -{ - return -EINVAL; -} - -int kvm_remove_breakpoint(CPUState *cpu, target_ulong addr, - target_ulong len, int type) -{ - return -EINVAL; -} - -void kvm_remove_all_breakpoints(CPUState *cpu) -{ -} - int kvm_on_sigbus_vcpu(CPUState *cpu, int code, void *addr) { return 1; diff --git a/accel/tcg/tcg-accel-ops.c b/accel/tcg/tcg-accel-ops.c index 786d90c08f..965c2ad581 100644 --- a/accel/tcg/tcg-accel-ops.c +++ b/accel/tcg/tcg-accel-ops.c @@ -32,6 +32,8 @@ #include "qemu/main-loop.h" #include "qemu/guest-random.h" #include "exec/exec-all.h" +#include "exec/hwaddr.h" +#include "exec/gdbstub.h" #include "tcg-accel-ops.h" #include "tcg-accel-ops-mttcg.h" @@ -91,6 +93,92 @@ void tcg_handle_interrupt(CPUState *cpu, int mask) } } +/* Translate GDB watchpoint type to a flags value for cpu_watchpoint_* */ +static inline int xlat_gdb_type(CPUState *cpu, int gdbtype) +{ + static const int xlat[] = { + [GDB_WATCHPOINT_WRITE] = BP_GDB | BP_MEM_WRITE, + [GDB_WATCHPOINT_READ] = BP_GDB | BP_MEM_READ, + [GDB_WATCHPOINT_ACCESS] = BP_GDB | BP_MEM_ACCESS, + }; + + CPUClass *cc = CPU_GET_CLASS(cpu); + int cputype = xlat[gdbtype]; + + if (cc->gdb_stop_before_watchpoint) { + cputype |= BP_STOP_BEFORE_ACCESS; + } + return cputype; +} + +static int tcg_insert_breakpoint(CPUState *cs, int type, hwaddr addr, hwaddr len) +{ + CPUState *cpu; + int err = 0; + + switch (type) { + case GDB_BREAKPOINT_SW: + case GDB_BREAKPOINT_HW: + CPU_FOREACH(cpu) { + err = cpu_breakpoint_insert(cpu, addr, BP_GDB, NULL); + if (err) { + break; + } + } + return err; + case GDB_WATCHPOINT_WRITE: + case GDB_WATCHPOINT_READ: + case GDB_WATCHPOINT_ACCESS: + CPU_FOREACH(cpu) { + err = cpu_watchpoint_insert(cpu, addr, len, + xlat_gdb_type(cpu, type), NULL); + if (err) { + break; + } + } + return err; + default: + return -ENOSYS; + } +} + +static int tcg_remove_breakpoint(CPUState *cs, int type, hwaddr addr, hwaddr len) +{ + CPUState *cpu; + int err = 0; + + switch (type) { + case GDB_BREAKPOINT_SW: + case GDB_BREAKPOINT_HW: + CPU_FOREACH(cpu) { + err = cpu_breakpoint_remove(cpu, addr, BP_GDB); + if (err) { + break; + } + } + return err; + case GDB_WATCHPOINT_WRITE: + case GDB_WATCHPOINT_READ: + case GDB_WATCHPOINT_ACCESS: + CPU_FOREACH(cpu) { + err = cpu_watchpoint_remove(cpu, addr, len, + xlat_gdb_type(cpu, type)); + if (err) { + break; + } + } + return err; + default: + return -ENOSYS; + } +} + +static inline void tcg_remove_all_breakpoints(CPUState *cpu) +{ + cpu_breakpoint_remove_all(cpu, BP_GDB); + cpu_watchpoint_remove_all(cpu, BP_GDB); +} + static void tcg_accel_ops_init(AccelOpsClass *ops) { if (qemu_tcg_mttcg_enabled()) { @@ -109,6 +197,10 @@ static void tcg_accel_ops_init(AccelOpsClass *ops) ops->handle_interrupt = tcg_handle_interrupt; } } + + ops->insert_breakpoint = tcg_insert_breakpoint; + ops->remove_breakpoint = tcg_remove_breakpoint; + ops->remove_all_breakpoints = tcg_remove_all_breakpoints; } static void tcg_accel_ops_class_init(ObjectClass *oc, void *data) diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c index a0755e6505..ff9f3f9586 100644 --- a/gdbstub/gdbstub.c +++ b/gdbstub/gdbstub.c @@ -49,8 +49,11 @@ #include "sysemu/runstate.h" #include "semihosting/semihost.h" #include "exec/exec-all.h" +#include "exec/hwaddr.h" #include "sysemu/replay.h" +#include "internals.h" + #ifdef CONFIG_USER_ONLY #define GDB_ATTACHED "0" #else @@ -1012,130 +1015,16 @@ void gdb_register_coprocessor(CPUState *cpu, } } -#ifndef CONFIG_USER_ONLY -/* Translate GDB watchpoint type to a flags value for cpu_watchpoint_* */ -static inline int xlat_gdb_type(CPUState *cpu, int gdbtype) -{ - static const int xlat[] = { - [GDB_WATCHPOINT_WRITE] = BP_GDB | BP_MEM_WRITE, - [GDB_WATCHPOINT_READ] = BP_GDB | BP_MEM_READ, - [GDB_WATCHPOINT_ACCESS] = BP_GDB | BP_MEM_ACCESS, - }; - - CPUClass *cc = CPU_GET_CLASS(cpu); - int cputype = xlat[gdbtype]; - - if (cc->gdb_stop_before_watchpoint) { - cputype |= BP_STOP_BEFORE_ACCESS; - } - return cputype; -} -#endif - -static int gdb_breakpoint_insert(int type, target_ulong addr, target_ulong len) -{ - CPUState *cpu; - int err = 0; - - if (kvm_enabled()) { - return kvm_insert_breakpoint(gdbserver_state.c_cpu, addr, len, type); - } - - switch (type) { - case GDB_BREAKPOINT_SW: - case GDB_BREAKPOINT_HW: - CPU_FOREACH(cpu) { - err = cpu_breakpoint_insert(cpu, addr, BP_GDB, NULL); - if (err) { - break; - } - } - return err; -#ifndef CONFIG_USER_ONLY - case GDB_WATCHPOINT_WRITE: - case GDB_WATCHPOINT_READ: - case GDB_WATCHPOINT_ACCESS: - CPU_FOREACH(cpu) { - err = cpu_watchpoint_insert(cpu, addr, len, - xlat_gdb_type(cpu, type), NULL); - if (err) { - break; - } - } - return err; -#endif - default: - return -ENOSYS; - } -} - -static int gdb_breakpoint_remove(int type, target_ulong addr, target_ulong len) -{ - CPUState *cpu; - int err = 0; - - if (kvm_enabled()) { - return kvm_remove_breakpoint(gdbserver_state.c_cpu, addr, len, type); - } - - switch (type) { - case GDB_BREAKPOINT_SW: - case GDB_BREAKPOINT_HW: - CPU_FOREACH(cpu) { - err = cpu_breakpoint_remove(cpu, addr, BP_GDB); - if (err) { - break; - } - } - return err; -#ifndef CONFIG_USER_ONLY - case GDB_WATCHPOINT_WRITE: - case GDB_WATCHPOINT_READ: - case GDB_WATCHPOINT_ACCESS: - CPU_FOREACH(cpu) { - err = cpu_watchpoint_remove(cpu, addr, len, - xlat_gdb_type(cpu, type)); - if (err) - break; - } - return err; -#endif - default: - return -ENOSYS; - } -} - -static inline void gdb_cpu_breakpoint_remove_all(CPUState *cpu) -{ - cpu_breakpoint_remove_all(cpu, BP_GDB); -#ifndef CONFIG_USER_ONLY - cpu_watchpoint_remove_all(cpu, BP_GDB); -#endif -} - static void gdb_process_breakpoint_remove_all(GDBProcess *p) { CPUState *cpu = get_first_cpu_in_process(p); while (cpu) { - gdb_cpu_breakpoint_remove_all(cpu); + gdb_breakpoint_remove_all(cpu); cpu = gdb_next_cpu_in_process(cpu); } } -static void gdb_breakpoint_remove_all(void) -{ - CPUState *cpu; - - if (kvm_enabled()) { - kvm_remove_all_breakpoints(gdbserver_state.c_cpu); - return; - } - - CPU_FOREACH(cpu) { - gdb_cpu_breakpoint_remove_all(cpu); - } -} static void gdb_set_cpu_pc(target_ulong pc) { @@ -1667,7 +1556,8 @@ static void handle_insert_bp(GArray *params, void *user_ctx) return; } - res = gdb_breakpoint_insert(get_param(params, 0)->val_ul, + res = gdb_breakpoint_insert(gdbserver_state.c_cpu, + get_param(params, 0)->val_ul, get_param(params, 1)->val_ull, get_param(params, 2)->val_ull); if (res >= 0) { @@ -1690,7 +1580,8 @@ static void handle_remove_bp(GArray *params, void *user_ctx) return; } - res = gdb_breakpoint_remove(get_param(params, 0)->val_ul, + res = gdb_breakpoint_remove(gdbserver_state.c_cpu, + get_param(params, 0)->val_ul, get_param(params, 1)->val_ull, get_param(params, 2)->val_ull); if (res >= 0) { @@ -2541,7 +2432,7 @@ static void handle_target_halt(GArray *params, void *user_ctx) * because gdb is doing an initial connect and the state * should be cleaned up. */ - gdb_breakpoint_remove_all(); + gdb_breakpoint_remove_all(gdbserver_state.c_cpu); } static int gdb_handle_packet(const char *line_buf) diff --git a/gdbstub/softmmu.c b/gdbstub/softmmu.c new file mode 100644 index 0000000000..4e73890379 --- /dev/null +++ b/gdbstub/softmmu.c @@ -0,0 +1,42 @@ +/* + * gdb server stub - softmmu specific bits + * + * Debug integration depends on support from the individual + * accelerators so most of this involves calling the ops helpers. + * + * Copyright (c) 2022 Linaro Ltd + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "qemu/osdep.h" +#include "exec/gdbstub.h" +#include "exec/hwaddr.h" +#include "sysemu/cpus.h" +#include "internals.h" + +int gdb_breakpoint_insert(CPUState *cs, int type, hwaddr addr, hwaddr len) +{ + const AccelOpsClass *ops = cpus_get_accel(); + if (ops->insert_breakpoint) { + return ops->insert_breakpoint(cs, type, addr, len); + } + return -ENOSYS; +} + +int gdb_breakpoint_remove(CPUState *cs, int type, hwaddr addr, hwaddr len) +{ + const AccelOpsClass *ops = cpus_get_accel(); + if (ops->remove_breakpoint) { + return ops->remove_breakpoint(cs, type, addr, len); + } + return -ENOSYS; +} + +void gdb_breakpoint_remove_all(CPUState *cs) +{ + const AccelOpsClass *ops = cpus_get_accel(); + if (ops->remove_all_breakpoints) { + ops->remove_all_breakpoints(cs); + } +} diff --git a/gdbstub/user.c b/gdbstub/user.c new file mode 100644 index 0000000000..42652b28a7 --- /dev/null +++ b/gdbstub/user.c @@ -0,0 +1,62 @@ +/* + * gdbstub user-mode helper routines. + * + * We know for user-mode we are using TCG so we can call stuff directly. + * + * Copyright (c) 2022 Linaro Ltd + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "qemu/osdep.h" +#include "exec/hwaddr.h" +#include "exec/gdbstub.h" +#include "hw/core/cpu.h" +#include "internals.h" + +int gdb_breakpoint_insert(CPUState *cs, int type, hwaddr addr, hwaddr len) +{ + CPUState *cpu; + int err = 0; + + switch (type) { + case GDB_BREAKPOINT_SW: + case GDB_BREAKPOINT_HW: + CPU_FOREACH(cpu) { + err = cpu_breakpoint_insert(cpu, addr, BP_GDB, NULL); + if (err) { + break; + } + } + return err; + default: + /* user-mode doesn't support watchpoints */ + return -ENOSYS; + } +} + +int gdb_breakpoint_remove(CPUState *cs, int type, hwaddr addr, hwaddr len) +{ + CPUState *cpu; + int err = 0; + + switch (type) { + case GDB_BREAKPOINT_SW: + case GDB_BREAKPOINT_HW: + CPU_FOREACH(cpu) { + err = cpu_breakpoint_remove(cpu, addr, BP_GDB); + if (err) { + break; + } + } + return err; + default: + /* user-mode doesn't support watchpoints */ + return -ENOSYS; + } +} + +void gdb_breakpoint_remove_all(CPUState *cs) +{ + cpu_breakpoint_remove_all(cs, BP_GDB); +} diff --git a/softmmu/cpus.c b/softmmu/cpus.c index 23b30484b2..61b27ff59d 100644 --- a/softmmu/cpus.c +++ b/softmmu/cpus.c @@ -617,6 +617,13 @@ void cpus_register_accel(const AccelOpsClass *ops) cpus_accel = ops; } +const AccelOpsClass *cpus_get_accel(void) +{ + /* broken if we call this early */ + assert(cpus_accel); + return cpus_accel; +} + void qemu_init_vcpu(CPUState *cpu) { MachineState *ms = MACHINE(qdev_get_machine()); diff --git a/gdbstub/meson.build b/gdbstub/meson.build index 6d4ae2d03c..fc895a2c39 100644 --- a/gdbstub/meson.build +++ b/gdbstub/meson.build @@ -1 +1,9 @@ +# +# The main gdbstub still relies on per-build definitions of various +# types. The bits pushed to softmmu/user.c try to use guest agnostic +# types such as hwaddr. +# + specific_ss.add(files('gdbstub.c')) +softmmu_ss.add(files('softmmu.c')) +user_ss.add(files('user.c')) From patchwork Tue Oct 4 13:01:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612231 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp171736pvb; Tue, 4 Oct 2022 06:27:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5kUbbNHqsNz1YHBDDaKWlq6xAFQ2RVnguALphR2WVIG24eOklXqYI/X6jnJngaBeMftvML X-Received: by 2002:a05:620a:4046:b0:6e1:14b0:86fd with SMTP id i6-20020a05620a404600b006e114b086fdmr576604qko.536.1664890022291; Tue, 04 Oct 2022 06:27:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664890022; cv=none; d=google.com; s=arc-20160816; b=vX6zWiKqbJfWa91lSiYF8uPcJqVAxi/NpjrfSNdi1DJPLltfM65AFFPmKukcGY7UuF 1xfdJ1kUEFOahf+ao/3bK7XjOQqG1jEaohWZNri6lQQyygtJR8s3POZPYMIYLlDsXkjj p4ZhUCmSduUM2q7w3VjFdfu8LOlFtnccUjiHQ8Kc/D9glPXT1/qK3DYW4YkWI5HqXvg+ kxwbsNzCuSq/e2eSKHLt85yUjbfsFabDcMpPIRyR79G0QsM0jcsj72b2z1buedjy4Kgu fbaKt0HfoGhaPJOzo9R6srCbWL+w6dcv6EI+Ol7Z3FJCHZkTjz0QXBFTiUlMoglFmGlF IDgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=C1NyWOfmsPZQD10r7UbPdctd03es5mAxTm6eeJpepGU=; b=acUQu8ItfkTPxYeEId6kWYCRgvebWqDiMfxaFuaRMpkHImVOUUktqgs7oVLKieGwhh vBuCCUwrEJQCDk6lpjEXkwnw45zLFobvbB3gHKT+05avLMyIIaLnucZIgBZfGyL6OACZ Mhs7g5cwtGrprJX2yBwBy5XRvKGHgmfO9kH+jW89+O51DYOK90xmD700USeQAfrkSxjN NneQOs8hE+r2xYwEESeBI2gjJjoDwzUdWaSI8fV35jZ6lFxhAwxGITXlygC++c9AxJYx 2KNuVRLzAGS+fAkVh6X3UmgK/F8mbVBvMEqGi9Xi7DaO1Jk0GgByjh/JxGhLPxRyvzPr MiKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gPYP2Pph; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q8-20020a056214194800b004b181af6156si991154qvk.208.2022.10.04.06.27.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:27:02 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gPYP2Pph; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:54216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofhwr-0008Dx-QM for patch@linaro.org; Tue, 04 Oct 2022 09:27:01 -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 1ofhgN-0007NV-7X for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:09:59 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:45989) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgK-00008R-Op for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:09:58 -0400 Received: by mail-wr1-x436.google.com with SMTP id a10so8903151wrm.12 for ; Tue, 04 Oct 2022 06:09:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=C1NyWOfmsPZQD10r7UbPdctd03es5mAxTm6eeJpepGU=; b=gPYP2PphyxFCnruzFlPldrHhv49mwao1pKlrmzA4ShnYKCDnoGKF0kI1xvj6FxGc80 +5Cnu0OToTBkSLvLa3sqPA71ybvfAuAPekFostEJf9mnuklUYwBB6HbTap6FnjCCijb2 V97qAHtZXwfQZqy/Euf65bPN6dN2P1K/Mabx+UxTsat/1Fzo/BNQT2qzw6X+kn/hV7N8 vIwfyXCnjAkrzc37ZPNl1N+VXZUAxcCrO8Tz6yhSRk/FpU4EHCZc7xhomsLO/qc24L7d hjMArAAXTs5HOWfM6QojHvtfABWSPmH/rHogfmTRKvH0Hi8jq2b4A/0rtSaX/qVK5aTu st7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=C1NyWOfmsPZQD10r7UbPdctd03es5mAxTm6eeJpepGU=; b=H+pRMkeby5YNGb024VHhs67cpVvI8VPOt5S6q9oPkB4GZ3x6kynZfE67v42Ux5ZeyW 4LOhn35nM+iiUP6Y18Fv8oRb6I/3dInwefJ1PRevAYVQFmFrsyKBdrr4XqkAj0WQqO42 CN7y0hWyeSs5WEj41mh4qQa7h1bQuw6bCAqWjNqTSNPV082p/WONOj3xtnbjP35fMrmX p9VDvnkFD25fcsfvczSiO2UXKETK7wwLvJU81W+Y5tyDNujlP0p7FeXzS7ofTc+CdnuU DUcwvAK0J0IghZTxsjSkKt/mOuEpxoi6I+APT8z2Eqear33r3Ijln/5eAGrfWYuMlaBs 7Amg== X-Gm-Message-State: ACrzQf0atXTdEMGBtPuiutNrHbAWMiXZ7e8xV5VqEproRI40pchlR8SD 2VqUmnIzodLmIm2zmAOkVyWwUA== X-Received: by 2002:a5d:6d8e:0:b0:22a:4831:e0e with SMTP id l14-20020a5d6d8e000000b0022a48310e0emr15296668wrs.442.1664888993995; Tue, 04 Oct 2022 06:09:53 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id l4-20020a7bc444000000b003b339438733sm14273999wmi.19.2022.10.04.06.09.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:09:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 958DF1FFE0; Tue, 4 Oct 2022 14:01:43 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Mads Ynddal , Paolo Bonzini , Richard Henderson , kvm@vger.kernel.org (open list:Overall KVM CPUs) Subject: [PULL 45/54] gdbstub: move guest debug support check to ops Date: Tue, 4 Oct 2022 14:01:29 +0100 Message-Id: <20221004130138.2299307-46-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x436.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This removes the final hard coding of kvm_enabled() in gdbstub and moves the check to an AccelOps. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée Reviewed-by: Mads Ynddal Message-Id: <20220929114231.583801-46-alex.bennee@linaro.org> diff --git a/accel/kvm/kvm-cpus.h b/accel/kvm/kvm-cpus.h index 33e435d62b..fd63fe6a59 100644 --- a/accel/kvm/kvm-cpus.h +++ b/accel/kvm/kvm-cpus.h @@ -18,6 +18,7 @@ void kvm_destroy_vcpu(CPUState *cpu); void kvm_cpu_synchronize_post_reset(CPUState *cpu); void kvm_cpu_synchronize_post_init(CPUState *cpu); void kvm_cpu_synchronize_pre_loadvm(CPUState *cpu); +bool kvm_supports_guest_debug(void); int kvm_insert_breakpoint(CPUState *cpu, int type, hwaddr addr, hwaddr len); int kvm_remove_breakpoint(CPUState *cpu, int type, hwaddr addr, hwaddr len); void kvm_remove_all_breakpoints(CPUState *cpu); diff --git a/gdbstub/internals.h b/gdbstub/internals.h index 41e2e72dbf..eabb0341d1 100644 --- a/gdbstub/internals.h +++ b/gdbstub/internals.h @@ -9,6 +9,7 @@ #ifndef _INTERNALS_H_ #define _INTERNALS_H_ +bool gdb_supports_guest_debug(void); int gdb_breakpoint_insert(CPUState *cs, int type, hwaddr addr, hwaddr len); int gdb_breakpoint_remove(CPUState *cs, int type, hwaddr addr, hwaddr len); void gdb_breakpoint_remove_all(CPUState *cs); diff --git a/include/sysemu/accel-ops.h b/include/sysemu/accel-ops.h index 86794ac273..8cc7996def 100644 --- a/include/sysemu/accel-ops.h +++ b/include/sysemu/accel-ops.h @@ -47,6 +47,7 @@ struct AccelOpsClass { int64_t (*get_elapsed_ticks)(void); /* gdbstub hooks */ + bool (*supports_guest_debug)(void); int (*insert_breakpoint)(CPUState *cpu, int type, hwaddr addr, hwaddr len); int (*remove_breakpoint)(CPUState *cpu, int type, hwaddr addr, hwaddr len); void (*remove_all_breakpoints)(CPUState *cpu); diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h index 21d3f1d01e..6e1bd01725 100644 --- a/include/sysemu/kvm.h +++ b/include/sysemu/kvm.h @@ -46,7 +46,6 @@ extern bool kvm_readonly_mem_allowed; extern bool kvm_direct_msi_allowed; extern bool kvm_ioeventfd_any_length_allowed; extern bool kvm_msi_use_devid; -extern bool kvm_has_guest_debug; #define kvm_enabled() (kvm_allowed) /** @@ -168,11 +167,6 @@ extern bool kvm_has_guest_debug; */ #define kvm_msi_devid_required() (kvm_msi_use_devid) -/* - * Does KVM support guest debugging - */ -#define kvm_supports_guest_debug() (kvm_has_guest_debug) - #else #define kvm_enabled() (0) @@ -190,7 +184,6 @@ extern bool kvm_has_guest_debug; #define kvm_direct_msi_enabled() (false) #define kvm_ioeventfd_any_length_enabled() (false) #define kvm_msi_devid_required() (false) -#define kvm_supports_guest_debug() (false) #endif /* CONFIG_KVM_IS_POSSIBLE */ diff --git a/accel/kvm/kvm-accel-ops.c b/accel/kvm/kvm-accel-ops.c index 5c0e37514c..fbf4fe3497 100644 --- a/accel/kvm/kvm-accel-ops.c +++ b/accel/kvm/kvm-accel-ops.c @@ -99,6 +99,7 @@ static void kvm_accel_ops_class_init(ObjectClass *oc, void *data) ops->synchronize_pre_loadvm = kvm_cpu_synchronize_pre_loadvm; #ifdef KVM_CAP_SET_GUEST_DEBUG + ops->supports_guest_debug = kvm_supports_guest_debug; ops->insert_breakpoint = kvm_insert_breakpoint; ops->remove_breakpoint = kvm_remove_breakpoint; ops->remove_all_breakpoints = kvm_remove_all_breakpoints; diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index b8c734fe3a..6ebff6e5a6 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -3287,6 +3287,12 @@ int kvm_update_guest_debug(CPUState *cpu, unsigned long reinject_trap) return data.err; } +bool kvm_supports_guest_debug(void) +{ + /* probed during kvm_init() */ + return kvm_has_guest_debug; +} + int kvm_insert_breakpoint(CPUState *cpu, int type, hwaddr addr, hwaddr len) { struct kvm_sw_breakpoint *bp; diff --git a/accel/tcg/tcg-accel-ops.c b/accel/tcg/tcg-accel-ops.c index 965c2ad581..19cbf1db3a 100644 --- a/accel/tcg/tcg-accel-ops.c +++ b/accel/tcg/tcg-accel-ops.c @@ -93,6 +93,11 @@ void tcg_handle_interrupt(CPUState *cpu, int mask) } } +static bool tcg_supports_guest_debug(void) +{ + return true; +} + /* Translate GDB watchpoint type to a flags value for cpu_watchpoint_* */ static inline int xlat_gdb_type(CPUState *cpu, int gdbtype) { @@ -198,6 +203,7 @@ static void tcg_accel_ops_init(AccelOpsClass *ops) } } + ops->supports_guest_debug = tcg_supports_guest_debug; ops->insert_breakpoint = tcg_insert_breakpoint; ops->remove_breakpoint = tcg_remove_breakpoint; ops->remove_all_breakpoints = tcg_remove_all_breakpoints; diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c index ff9f3f9586..be88ca0d71 100644 --- a/gdbstub/gdbstub.c +++ b/gdbstub/gdbstub.c @@ -45,7 +45,6 @@ #include "qemu/sockets.h" #include "sysemu/hw_accel.h" -#include "sysemu/kvm.h" #include "sysemu/runstate.h" #include "semihosting/semihost.h" #include "exec/exec-all.h" @@ -3447,8 +3446,8 @@ int gdbserver_start(const char *device) return -1; } - if (kvm_enabled() && !kvm_supports_guest_debug()) { - error_report("gdbstub: KVM doesn't support guest debugging"); + if (!gdb_supports_guest_debug()) { + error_report("gdbstub: current accelerator doesn't support guest debugging"); return -1; } diff --git a/gdbstub/softmmu.c b/gdbstub/softmmu.c index 4e73890379..f208c6cf15 100644 --- a/gdbstub/softmmu.c +++ b/gdbstub/softmmu.c @@ -15,6 +15,15 @@ #include "sysemu/cpus.h" #include "internals.h" +bool gdb_supports_guest_debug(void) +{ + const AccelOpsClass *ops = cpus_get_accel(); + if (ops->supports_guest_debug) { + return ops->supports_guest_debug(); + } + return false; +} + int gdb_breakpoint_insert(CPUState *cs, int type, hwaddr addr, hwaddr len) { const AccelOpsClass *ops = cpus_get_accel(); diff --git a/gdbstub/user.c b/gdbstub/user.c index 42652b28a7..033e5fdd71 100644 --- a/gdbstub/user.c +++ b/gdbstub/user.c @@ -14,6 +14,12 @@ #include "hw/core/cpu.h" #include "internals.h" +bool gdb_supports_guest_debug(void) +{ + /* user-mode == TCG == supported */ + return true; +} + int gdb_breakpoint_insert(CPUState *cs, int type, hwaddr addr, hwaddr len) { CPUState *cpu; From patchwork Tue Oct 4 13:01:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612269 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp206116pvb; Tue, 4 Oct 2022 07:18:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4YB0f3exah2+grNslbgVCAyDobZLfwZuToufwpe1GzsIgaEDGe34Tm0PDOnQt43STTVnjV X-Received: by 2002:a05:6214:21a9:b0:4ac:afb4:1cf3 with SMTP id t9-20020a05621421a900b004acafb41cf3mr19637589qvc.93.1664893105437; Tue, 04 Oct 2022 07:18:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664893105; cv=none; d=google.com; s=arc-20160816; b=lWeBE8EtotOatdPHy3LbbPtzhfdIm3cmQ5/D2rgMR+wNYKQpF8oogDBTgD4r6eFvp3 D8wLoE+GWo2j0BljpKQfi6nilAY4cs2BaaGnXsz/dj8bgNK1KrDL4z39VmRk2s0GS4S2 e+A1fZl6lP3pDXfWV9MTFlVBO8Md8vClhs2+5EvxWynvS9nYhe4qJVBfDxJQCd61ROlx n5kzDnQuGoX2t4hnyFk1MaNxlYDD4D4/Mvm1UmZ7I7tlQKKROPRJqQCiGv2jFx3AkDVj 60CwNy5hqw7A3qAjG9aKDB2CVOQNPBKbGhAK5W4rT0OCYmsYC09vAcliCkOFqwdXrMbx nbkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=b0sEFTUmJhxsrwZtNY2dwzSSYrDaPd1jMbAkb2SEAj0=; b=NVBYMYuWzSQlDpZj5JltU4NdcJo189Q2stQTjK//0JJJl4ApBhTKmlgBN38anD6UoB m/hYIbMLduUUb6H9iKEFOZkz6cdY89qOaEg3U0Cu/QI90tLBGtlYMhyYbZiGa9zU9NLP TqEdUatXk5or9rurdzxC3ZSuWuGg1hMqdNHg127+7mDA3HP/elW33nbQItQ/Ohxsd2bb 6Gstn5Iy+wG7gwTh1BkKf4AVhD+xcDlDrnO/oNU2lrO4JpjsmbCplFXTdufUAMv3EEki lad/3VxzoZA0LzevaDqOfGU2a7/o0lWb5KRcllbwQqB6+SPRvKfVeBXmgdp6IB1d8e3S W6eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vIu7p2D4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d12-20020ac8060c000000b00340bca2089bsi4628058qth.543.2022.10.04.07.18.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 07:18:25 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vIu7p2D4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:36068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofika-0001iB-SF for patch@linaro.org; Tue, 04 Oct 2022 10:18:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhq7-0001JP-Ty for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:06 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:45617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhq3-0001pn-7B for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:02 -0400 Received: by mail-wr1-x435.google.com with SMTP id a10so8947329wrm.12 for ; Tue, 04 Oct 2022 06:19:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=b0sEFTUmJhxsrwZtNY2dwzSSYrDaPd1jMbAkb2SEAj0=; b=vIu7p2D4/PA+O48mA3YTJjk3rwfNYUqK0kafegq6m8TaT3o7XQFOyP0Tinz7SLTV1y 0lQjyHkjAJKcnrULbAEMUhB1W3vHkz5YlSyHjHGMrykMNSTZULApTT3cRPTIPslkajAt H3CS15n8h6ORbA05inrC5PEnPEDk5bsD+1nFQW5h/nq88j19yeyk1Qt98LWLScg8RLje z8XKqXfvT77rSY92NxULi8wq+BqrQ7GAhZyysyhCBJh1zMcPOX+B00Ii298DZ09WgQal IC12YbM/cv1vh+jkTkB8pkaZc9s3BYknWgmEw84jn1BNTfNKPgb81zUenqLxoNXuhM8e UiTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=b0sEFTUmJhxsrwZtNY2dwzSSYrDaPd1jMbAkb2SEAj0=; b=v2t3Kmv+JccywGzMFv9BfQb2aV1fSPQt2l4iXQKzT6KIMl+wGau56UT0ibecHhGFK3 wTMwc7snoCKrnBNBNllxjPhdOlSZdctUwtBfAmvSmeJkFlNy1HpyjMVkgNXvufAhx08U mJW01N6NoH3qutMQqqjp7ZCxFKOLdmaPTWEI6eQma2rsRDYCHs4jhNJh2fZBAfYrCq73 /HFVt3HcUnRA7MCTdU/ICBQJtWbM/hH7Fl9WYKhBp24y/GfEGUUiPliLMqFjqKUHKZQW e1LaYbRQutBheAnsNcyho1N53yXkYJp87OnoRKsbQsYIvynfpPNKXQyylsPzD84j4r2a nw3Q== X-Gm-Message-State: ACrzQf2iNu7CvqOBFSNOAzOcYorV3IeKO8OF3dB1EMfhInN9+8a85Spy L++23QKgdX6msNSIlzFE2304Kg== X-Received: by 2002:a5d:47c2:0:b0:22e:4911:6925 with SMTP id o2-20020a5d47c2000000b0022e49116925mr3277651wrc.403.1664889596606; Tue, 04 Oct 2022 06:19:56 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id a22-20020a05600c349600b003b33de17577sm14808748wmq.13.2022.10.04.06.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:19:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B07E61FFE1; Tue, 4 Oct 2022 14:01:43 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Paolo Bonzini , kvm@vger.kernel.org (open list:Overall KVM CPUs) Subject: [PULL 46/54] accel/kvm: move kvm_update_guest_debug to inline stub Date: Tue, 4 Oct 2022 14:01:30 +0100 Message-Id: <20221004130138.2299307-47-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x435.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Alex Bennée Message-Id: <20220929114231.583801-47-alex.bennee@linaro.org> diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h index 6e1bd01725..790d35ef78 100644 --- a/include/sysemu/kvm.h +++ b/include/sysemu/kvm.h @@ -247,7 +247,23 @@ int kvm_on_sigbus(int code, void *addr); void kvm_flush_coalesced_mmio_buffer(void); +/** + * kvm_update_guest_debug(): ensure KVM debug structures updated + * @cs: the CPUState for this cpu + * @reinject_trap: KVM trap injection control + * + * There are usually per-arch specifics which will be handled by + * calling down to kvm_arch_update_guest_debug after the generic + * fields have been set. + */ +#ifdef KVM_CAP_SET_GUEST_DEBUG int kvm_update_guest_debug(CPUState *cpu, unsigned long reinject_trap); +#else +static inline int kvm_update_guest_debug(CPUState *cpu, unsigned long reinject_trap) +{ + return -EINVAL; +} +#endif /* internal API */ diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index 6ebff6e5a6..423fb1936f 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -3395,12 +3395,6 @@ void kvm_remove_all_breakpoints(CPUState *cpu) } } -#else /* !KVM_CAP_SET_GUEST_DEBUG */ - -static int kvm_update_guest_debug(CPUState *cpu, unsigned long reinject_trap) -{ - return -EINVAL; -} #endif /* !KVM_CAP_SET_GUEST_DEBUG */ static int kvm_set_signal_mask(CPUState *cpu, const sigset_t *sigset) diff --git a/accel/stubs/kvm-stub.c b/accel/stubs/kvm-stub.c index 2d79333143..5d2dd8f351 100644 --- a/accel/stubs/kvm-stub.c +++ b/accel/stubs/kvm-stub.c @@ -46,11 +46,6 @@ int kvm_has_many_ioeventfds(void) return 0; } -int kvm_update_guest_debug(CPUState *cpu, unsigned long reinject_trap) -{ - return -ENOSYS; -} - int kvm_on_sigbus_vcpu(CPUState *cpu, int code, void *addr) { return 1; From patchwork Tue Oct 4 13:01:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612270 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp209387pvb; Tue, 4 Oct 2022 07:23:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5UFwPQDDzrzVqDAcNvZVHWcLdPYgijwyg7qn1dV91hasvCak5N+jJDeik6Pbw+cqH4qyX2 X-Received: by 2002:a05:6214:769:b0:4ac:a40a:a5d7 with SMTP id f9-20020a056214076900b004aca40aa5d7mr19724693qvz.39.1664893417154; Tue, 04 Oct 2022 07:23:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664893417; cv=none; d=google.com; s=arc-20160816; b=V/Ipll7WqIfUzO7pNIxLpVuWGFWwZFgJmkkvPb8eTBzy3/HBlrke4JKlAc+QCMFE10 +c7qRfO+Yb0PXMAU6fsmEyNLENQOaw83i/3A2HxFnJvwK/DGeOxe16RuacP31/0R4/e9 ypixsHBuwbnAJBe69Pb3MVElAsEjl/S8LBvyiuktEwEt0dpc4Bg5cs4GjKYnbLDI+M4T eW8EUhoU3HSDr3Etm3BlyeCBoDB6SJ1z+cMgDbQW92Ky3GvBsNPGpXHYJ32u2tk/8A2Q ZU49TX7BN6hquJbBDdTXwMs6PJrxEFh7C7/eEPrT9lTzwrxZK+NEwWwJbhHaoyP4oV4t 6MKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xfYgIheO7osrtJ2jz1JkzH21idzxGZlWkdFddTP0iFI=; b=z/59nOUcXQqYk65RP7iGiRt0rUG6kpH7U99ijd9KjbtwEetwDJJzYJsANaNHOUzD/w 3BsU9QQF7IKF2D+nSvRqJrexYbPhQHQWuyuRGWJfbSSx8+KMmrXr65NKP5mPUmHruaA7 sFtuCJcjL04CxsViNaRD14SUj7VCnS717Ve7ynwC/WvJcRMl+ZdrV/VwHZecBRG/WFrO yhSRF6i3Y5oD4NImwUDrkTegw9CPdYJB8wCna2Y1G/0Y+TWY7acQRCzU1K2iptWhKZ5z Mqlzk02XjImdA+peiqrTjDpOc6UPG0/SwnIIBtsBNZa0QobaBmEareS47qdTpi88kchy G7Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gcOhvlMW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id gg3-20020a056214252300b004aaaad81dffsi1052635qvb.199.2022.10.04.07.23.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 07:23:37 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gcOhvlMW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:57364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofipc-00082K-Gn for patch@linaro.org; Tue, 04 Oct 2022 10:23:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhq9-0001JV-68 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:06 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:44793) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhq5-0001rN-Sp for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:04 -0400 Received: by mail-wm1-x335.google.com with SMTP id p36-20020a05600c1da400b003bd24ccae2eso827980wms.3 for ; Tue, 04 Oct 2022 06:19:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=xfYgIheO7osrtJ2jz1JkzH21idzxGZlWkdFddTP0iFI=; b=gcOhvlMWtqFcKZlRPN0/EZnKveuiqBVUkFOhRPOBr3w2yrIaSzj/ZW7oA/GGW2SGDB zFSid+aAfcC/6vPX2FIPDAyZTKMOe4TKxpug97lRPeWOvoCpqFCGOiqAA77quf3XZC8E clGUf97UUkezQQSPjC/cUSKP0dCp5mOfE4noEzhZahOpTMImOzm+2c6wEekKrnZh5EsH ZvB6mK0N/8zr+SpNQnd4gTHIOTrjWKej8Yr4+aYCEEu8dVNnOOaNmvNUy5UBzQmGWp5g CnrqF8YJWdjhYnI+3MJPMOkDT6GJMerO+SnPEN/Wlrta1hUR6NLjvuMn5QmWp0YvqmCt OwQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=xfYgIheO7osrtJ2jz1JkzH21idzxGZlWkdFddTP0iFI=; b=BQwu5o1Ys8HpDkZ4igXFDNE6TTmSQkn762xXEc/Vb3psbsB1fBDUcXxo4lCzr7hQf0 /4GP/nu21uRi/FFhTHgqgDOaz1yOmUHYMktVsfvyr6M04o4rUJJIqCV2hFw5vvAXMBQu paoEW7e36xW1TCr1N0tQXex/p+6TMaT0dNCBVUL64luGx5tvSxgoqelHP4RkBBl33L3c NWmviDtmNHJOxVfPwCrQA9l2TUX+3p5NWAoEhIDe7F6yjoGC+00JslMK+XJBtH2y6e/t 1PbaMc56oFzDEjhtMpE7b6JRo7XKsNeU/4uxahcPz0iA8nPmDPqsl1TI4ItM77TAwgxI q8Vw== X-Gm-Message-State: ACrzQf2PzelOSfSoW7z50SWYopMF5V7dQOdMYHzsaTO6W+eqvC+VY4jf TrMXq5cTsd5x8g3QYymhC6IrRJytMkj04Q== X-Received: by 2002:a05:600c:1906:b0:3b4:c979:e686 with SMTP id j6-20020a05600c190600b003b4c979e686mr10502372wmq.107.1664889597684; Tue, 04 Oct 2022 06:19:57 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id az26-20020adfe19a000000b0022cd59331b2sm12561402wrb.95.2022.10.04.06.19.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:19:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C64471FFBE; Tue, 4 Oct 2022 14:01:43 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Song Gao Subject: [PULL 47/54] contrib/gitdm: add mapping for Loongson Technology Date: Tue, 4 Oct 2022 14:01:31 +0100 Message-Id: <20221004130138.2299307-48-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x335.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Please confirm you are happy with this mapping. Signed-off-by: Alex Bennée Acked-by: Song Gao Message-Id: <20220929114231.583801-48-alex.bennee@linaro.org> diff --git a/contrib/gitdm/domain-map b/contrib/gitdm/domain-map index 2800d9f986..434ef53afc 100644 --- a/contrib/gitdm/domain-map +++ b/contrib/gitdm/domain-map @@ -19,6 +19,7 @@ ibm.com IBM igalia.com Igalia intel.com Intel linaro.org Linaro +loongson.cn Loongson Technology lwn.net LWN microsoft.com Microsoft mvista.com MontaVista From patchwork Tue Oct 4 13:01:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612261 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp198080pvb; Tue, 4 Oct 2022 07:06:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM43y7xCxR5bIjkCcLu0tn6y6Y8atF40Vu//6rC1k3u2EJMAl00Vq6QVzMS6ES71OOH92o6w X-Received: by 2002:a05:6214:c2d:b0:4ac:9892:2a73 with SMTP id a13-20020a0562140c2d00b004ac98922a73mr19829801qvd.30.1664892419309; Tue, 04 Oct 2022 07:06:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664892419; cv=none; d=google.com; s=arc-20160816; b=PD1C6m7QIQ26hs+ritBwRwTLmkie3pQOmFqix9EWclS4VqmMvazjia3qR8QmEV9hBo X7o6uUJ4gpREo6PQWtyx2cL10yzEMd/CV0t/MiwSdlYswsbrlL7PJjZnyid/bvsIOi2z hQY6+HPfIMWcwOCzAqOupE0e4nZ+YvKEAah+paHAesRElJFeJQxHwQEqLCQk8sXAr2Mg EOS7ZapNydSGvTdzPeAFzWFVv3rdy6eW64TLkeXeH69Ffhb5XHX4TR02W6gTZ5nlF7zK 5JvoZAhoBlkHigzmZq8zuxwBziMK0ycDPRzhRH/ke6Vb/h7ZbTsBJNhnn315pmnw8JdD R8kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zUf9fzZkXh5cu60bmTDrP95OL++X52bXG+2ep3dVX1g=; b=D+JpclaqpacUSHKc2keJQbqa1DwXD17PF/c2yET60MIhSfKzybWGufP/UG3CHaGi9G Xkh8FMUkNtDFsKfOcZ7PUNyo9m7ib/0qGDgdnzk1qtEYl7+I4e39iLlhEFSVr4NJFLZO TaRI70BalkAMj8o8FdYGI0X33meO1sEBProCgKcxp3gFYPIuveYQnmcOTJLYkq9XV4W3 QvzuHqKxRHEHiPpuutLepQGPvvjMQJ0OEv4yOENGcRettJMchw0LF05B+y0tKT35AaoL sFFsU+F3qlIM7w3UwpWcV89hqqPPVQesGPmfWcOTNTghaDxL18YZxxgsIp8euHaIM8Hf NMlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kqFeYsxw; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f11-20020a056214076b00b00496c357b5efsi966678qvz.326.2022.10.04.07.06.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 07:06:59 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kqFeYsxw; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:42872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiZW-0000yr-Nd for patch@linaro.org; Tue, 04 Oct 2022 10:06:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhqB-0001Ls-RX for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:08 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:54009) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhq3-0001q6-8c for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:20:07 -0400 Received: by mail-wm1-x331.google.com with SMTP id e18so8862276wmq.3 for ; Tue, 04 Oct 2022 06:19:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=zUf9fzZkXh5cu60bmTDrP95OL++X52bXG+2ep3dVX1g=; b=kqFeYsxwWp7YQ+mxxRu7iMJHrEzNBNfbwWYi4toTQEZbI1kbx0wIrTWld6PHJ3WJ+i PBeRcuy3GS/X2PitXisI2oEvs+21F0GraCDwFg5JESs/RAH5ZXCFtK4trdT0UCObUR86 OAaaieP9M7xjQpTPPiaE1Y5PO+fgwiqSNwPk35olhUtzOaQ+Ysl5MKXpvKZQfpPiVdE2 GbTkTQXttvhI7Eb/XsvBnImP5o22Ouf7cZ2AAYH1E2JbCfGo9uKzfGoBYosKXIePBxdo OZf84pmxVUWp4ZZms+rRcXf/NEhqFIW1F1vTAFGtomIcfmKukNDZz61VkbliMno52t0h A11g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=zUf9fzZkXh5cu60bmTDrP95OL++X52bXG+2ep3dVX1g=; b=e2MXls8fMQ1OfugvKSqj3xkZrZJdOoNs4KAt5zOP4/gZaUZB0CYSSR8+JYTvsPRC+5 iLjga/MgPnMPHdARLnOIi8VJDXI6Wg8C9hXkOWyZH697SkUjg4Ysp01nd+UJ2XBSbzi1 eg7BBGS9LcGuzJvZECsoSFJUSo6HC2skCuxcm02X6v+fCbw9g5VROY2LB81/wuNU3L0O j8RMlSK6rq6i3kY1liQT19xifTS8FKT2ICfTVf5h4fR0Vv116GmspVKmAToM5b3YMNJR mSg4AHUY8Ocm+OQ38wrD0HhwuUJ0OXfnv5kx997afS6pB8R+tDOzLLzlkZoeVnsXtia7 V+2A== X-Gm-Message-State: ACrzQf0HLyb8th7v9iCQJILmTiC3zXduwclBPYQgpXzjh8F1hDEwRIKo yePVEtZ0/uXTayhb35Z0XX+3YQ== X-Received: by 2002:a05:600c:1d28:b0:3b4:91f4:897d with SMTP id l40-20020a05600c1d2800b003b491f4897dmr10147910wms.137.1664889598114; Tue, 04 Oct 2022 06:19:58 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id m38-20020a05600c3b2600b003b4ff30e566sm4133411wms.3.2022.10.04.06.19.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:19:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E072E1FFE2; Tue, 4 Oct 2022 14:01:43 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Paul Brook Subject: [PULL 48/54] contrib/gitdm: add Paul to individual contributors Date: Tue, 4 Oct 2022 14:01:32 +0100 Message-Id: <20221004130138.2299307-49-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Also map his old codesourcery address to his canonical address. Signed-off-by: Alex Bennée Cc: Paul Brook Message-Id: <20220929114231.583801-49-alex.bennee@linaro.org> diff --git a/.mailmap b/.mailmap index 8c326709cf..1f7319b70b 100644 --- a/.mailmap +++ b/.mailmap @@ -65,6 +65,7 @@ James Hogan Leif Lindholm Leif Lindholm Radoslaw Biernacki +Paul Brook Paul Burton Paul Burton Paul Burton diff --git a/contrib/gitdm/group-map-individuals b/contrib/gitdm/group-map-individuals index f816aa8770..6322b3476d 100644 --- a/contrib/gitdm/group-map-individuals +++ b/contrib/gitdm/group-map-individuals @@ -34,3 +34,4 @@ bmeng.cn@gmail.com liq3ea@gmail.com chetan4windows@gmail.com akihiko.odaki@gmail.com +paul@nowt.org From patchwork Tue Oct 4 13:01:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612245 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp182047pvb; Tue, 4 Oct 2022 06:43:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5AEUiJavJQc7yzwblNZCOTdMQtrEsL4HSj30NNY8ErJvxuRwGXyFHZd39vKC5/dINdYzjn X-Received: by 2002:a05:6214:76d:b0:4ac:a40a:a5c9 with SMTP id f13-20020a056214076d00b004aca40aa5c9mr19257951qvz.118.1664890990354; Tue, 04 Oct 2022 06:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664890990; cv=none; d=google.com; s=arc-20160816; b=IuR3gtdm4ItFSMYN/+u3Syo4BB8o51BXHzRRMdYD775D36b2P8XXKe+wxU349+3Eut 9WVlUlNWWz3FOfT8W/+KeDgbiwG+AGuK24xQztLhxIGcrG6NT7qsylFGfKSzKTN6dR7H SmR5Bkb1VxL09XUSB/0l5heGWfENavtc14LeGiqtovuVKdrHbYh+Oxo7ifsbcv7/R6my PwPcEAMwmM206bLokVgHksX3IUvXNNUYisdw/tjqiZ1jGB0xnocARN1abtrYi3mESUB9 Xeu93e4HG8HmyvCTfonPevJSBMN7xZM8aN2f6cz7nlKG4o53k0a803BAUBsmpl48fug5 htZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bw50yxjTxmlWlH/xk2BP/gjW18+lJ2PEJ5PUJwIRVEM=; b=SKPp3hoGwRVYQzZK0MmaGvsdFZiZ2owiK9TE7Yb2wmtAXSTeOu+7Qv2BRc5zIb8kUj G3Wq4GVVPd6K1gB6asCb7U1PatbS9Q+PdidIC4r2Q5+cZyd0QHAOn870xg2YbzFZWJcI NZNkxoIjG4YUue/tOU1mQQxHMU7ZUFmKwzWdwgxWp+ocgkWA08E2e/rVZ2ux0w0MQnFI 9xTJ9ryTmpwVYGamCqFlhQhR8j787mGKERY2SEyp/BQcmCWOpjrkGbSf0H2wzPkRF/sr kjOIIi1QMH7yh7hYqjQkG+jKtifwzwTyJdzBs3Lqd9Egb4MdbmaxHOZiKRKunWUX3wW8 60Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pauep516; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id n1-20020a05622a11c100b0035ccdb52acbsi6019435qtk.133.2022.10.04.06.43.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:43:10 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pauep516; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiCT-0006Nv-Sb for patch@linaro.org; Tue, 04 Oct 2022 09:43:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhgS-0007ag-HV for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:04 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:39904) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgQ-00008I-N6 for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:04 -0400 Received: by mail-wr1-x434.google.com with SMTP id f11so18598521wrm.6 for ; Tue, 04 Oct 2022 06:10:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=bw50yxjTxmlWlH/xk2BP/gjW18+lJ2PEJ5PUJwIRVEM=; b=pauep516vDrGfN7x7YCIHYp5SydC1lues7j9JEh/cTyTSGH4P7Pp3YwCl2Mnnm4w1T VDiZd/g9XUwdbC0mfmpQvR1MaBnbctZIGmFtkbkxtJCkCgFaaTd1lxm8p+4if8/hegFw hdVkygK+/sS0CnHpA7vaKu34actcY04Pt3834oP0pKYs6CXekoy+yUTKs6xV8AG7I04q nd+ohJN9PgqfjHgFFTFzhAfYKzKgbACuJr0gE5gWaqixa9mWmk1mp3/+jZQV7IDblBg7 m6soODgWqkpcDgYCkMg+6trmjCK9+l9GxXyMWsZoCrwUBjbE3O0WqSZfDpz3y7MEuqnG 9RTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=bw50yxjTxmlWlH/xk2BP/gjW18+lJ2PEJ5PUJwIRVEM=; b=18cY7vMmRanhLDZ/Czt7PpcS3fBii2cuZy+802a3mBHZY1JJj0btTMjZAcx4xrVXZ3 rivVf3T1d0kdUL7gQLmf7n5t31uQBmQZhtYPpD9ZKazDK2z+F9V5dNVHVcuFO1IzDM4T P2oilcWl4WH145FfphxV1yZ06NmMvBoFfvFcppi1KHDKq8uZVvWlUTRZUK4Mz/MxjSis UDHaV+Yg/6/gLigzGwOFLotF5BZGKmIzPvcknibYLJJ7cSjpdWFkQ5OXiY6cC7y4w8zY a214rbeAE79TDkJojeuxrdOJy2qymj4nSlW/DIsphgC0JSVXpEI2Qltq1M0Spn98ZRVf Wq6A== X-Gm-Message-State: ACrzQf25sdwhNxpvG/715YTiEfgw1BrMWCjNCuyHsUCTTQ9IPqhZ8xk5 97M1Z8a88tzvEPYm32C36GVLmQ2bCt8Ytw== X-Received: by 2002:a05:6000:2a5:b0:22b:d28:5b6a with SMTP id l5-20020a05600002a500b0022b0d285b6amr15936247wry.477.1664889001941; Tue, 04 Oct 2022 06:10:01 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id q11-20020adf9dcb000000b0022ac672654dsm12836063wre.58.2022.10.04.06.09.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:10:00 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 01FF21FFE3; Tue, 4 Oct 2022 14:01:44 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , WANG Xuerui Subject: [PULL 49/54] contrib/gitdm: add WANG Xuerui to individual contributers Date: Tue, 4 Oct 2022 14:01:33 +0100 Message-Id: <20221004130138.2299307-50-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x434.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" His blog confirms he is not affiliated with Loongson. Signed-off-by: Alex Bennée Reviewed-by: WANG Xuerui Message-Id: <20220929114231.583801-50-alex.bennee@linaro.org> diff --git a/contrib/gitdm/group-map-individuals b/contrib/gitdm/group-map-individuals index 6322b3476d..e19d79626c 100644 --- a/contrib/gitdm/group-map-individuals +++ b/contrib/gitdm/group-map-individuals @@ -35,3 +35,4 @@ liq3ea@gmail.com chetan4windows@gmail.com akihiko.odaki@gmail.com paul@nowt.org +git@xen0n.name From patchwork Tue Oct 4 13:01:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612238 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp177976pvb; Tue, 4 Oct 2022 06:36:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5GAw+0sV1IfTsBGOOY1lykQMzN17KPNXu440VuhLxTy+6494qPd9S+NwYiGvDdVg4rMRoP X-Received: by 2002:a05:622a:394:b0:35d:5710:dcee with SMTP id j20-20020a05622a039400b0035d5710dceemr19677449qtx.580.1664890607708; Tue, 04 Oct 2022 06:36:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664890607; cv=none; d=google.com; s=arc-20160816; b=YU2ub11OthilADJMr54jGWR8tce+cRAHKSiqOEKvk77HUnNxbX/hvqRTVWmo/jNHnt 7Vq79GZ0pGRX5HKOLlUUA+fkxcH4HUQLiBl6FdvXS3sDr9F3MSOsa+rPGGl6a2gaFwtF d++qZM1d0LQBlsx2O6rtt3HYBl2aokiu/iD3GzbnU0cnAzVsjGqxoU1eXx6RFkbBlILS QolifEFOi2ix5srubaec3O0RuBKYPbhlAenigEa1jcokHERFyXwuNcDkKJKQ1cJzuiKp jI4mM0WyGfK7gTvJvGBc1j+oaFxOLju0x/p8nfBS9nDEJriqkwDtTaTOByjIOccPmrjc mMyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=U2/AriSXMOEMkyTzF4SI8zkGiR/vAMpS3OCva9QGR3s=; b=mCmkBz8sg2Nw/Kejg2/Pn+S03stI6/47M3u59eQrzLCzXL/XBJJ7yPl0GhM/57o33d 3uxwp20zKuj+HH0XiHMCNiNPiBQemihxFITwbQGPHEWIEQj/azWd4coja8UNZkEzDTL3 wikYQ7IGobkE4BTpJ9mhJs7VoYQJh8Ps0OMXjhznTpgEqLmFW6w7bbOnSIIAWzb3DT2y Bg0ZJb+zHc7eaJ/IZv7Sl9mFPKYnu1qmpgMWe0xBxxXQllaunJ4PglpbTQwh8YrboZmo S2qCvgIxlchYmWFre1EFbdZTAPyaVz/D2PNjbkbZlxt0pHiglKmQ+fOTfbFeFvpVI7W7 1Wpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k6oSafXj; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bq6-20020a05620a468600b006bb2140edebsi4798882qkb.240.2022.10.04.06.36.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:36:47 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k6oSafXj; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:33578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofi6J-0002yn-67 for patch@linaro.org; Tue, 04 Oct 2022 09:36:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhgR-0007WZ-1m for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:03 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:45035) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgO-00009r-Tv for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:10:02 -0400 Received: by mail-wr1-x430.google.com with SMTP id c11so21255325wrp.11 for ; Tue, 04 Oct 2022 06:10:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=U2/AriSXMOEMkyTzF4SI8zkGiR/vAMpS3OCva9QGR3s=; b=k6oSafXjnBUiIGHFxGDjAedTydPArNiD79+EEQ214OqEx/2SDxI4MHtva4f3RZJG+f QKSYSB0iX8sDIoDjMlXYu6/dQFMwRzOO/GtikkW7RPH3ljxec6HkntmYEfz7vKK7KxWG eNHzGJEZ0YurfOzA+P+nzRdc03rM1sLvcrVPcJwq1+OrWMTUmv2Ep8caZFFMGb0CWb0w O3KqQdSRydGjvaHXW+uKhgaku5tYDd9OMVpd9xjAxDSyDif7AZtybT9KPff8PBaxMI6J bD3MRjZ1w7Zs9eYyC3t51LbA++dj3q3DoMOAvzp2Ik/ezPbYH4won+1wAr13npSFm7Zi NEYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=U2/AriSXMOEMkyTzF4SI8zkGiR/vAMpS3OCva9QGR3s=; b=DQegur5YL4gC53mv847YbwOIdSN7O0RaYc3AvSKUKnazSORxk9QBbh5wZNDPu3hoMc WIWv02mTvhWfA58MoGJiJNwPx9uSMG19cqQc5uNVuHFf7UqItq4gsgPhwruxWVO4AxsZ 9K9vsOUvSk0Lpg/bZEaoiaoOBRkXq7KfkJX1LsHqywfaNw6ToDf4R+vroQrjc28moG/Z Xy52WUbMWTEfI5Vu047oe+Cx+VvsdVNUxvukTU0//iBrk5PDW6OZj/4HxdaXnRpLJc1x 0M/yfMFGFJfl2xvb/xISGPZ8lRvko5heRk3l4goOgpuSo11vgYA9rkP5xyWasHqwO36L HTVQ== X-Gm-Message-State: ACrzQf1XHYzugttHKb7PsoRVH+7LtNpT/dC5GNU0uMQQv2eZKtVJRrQN DvIZ1eeldBaVRIVnnrw/+l+4Zg== X-Received: by 2002:a5d:5909:0:b0:22e:57b2:260b with SMTP id v9-20020a5d5909000000b0022e57b2260bmr980463wrd.597.1664888999508; Tue, 04 Oct 2022 06:09:59 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id n189-20020a1ca4c6000000b003a8434530bbsm626277wme.13.2022.10.04.06.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:09:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 18A3E1FFE4; Tue, 4 Oct 2022 14:01:44 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Weiwei Li Subject: [PULL 50/54] contrib/gitdm: add ISCAS to the academics group Date: Tue, 4 Oct 2022 14:01:34 +0100 Message-Id: <20221004130138.2299307-51-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x430.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The English website (http://english.is.cas.cn/) in on a slightly different domain but has the same logo as http://www.iscas.ac.cn/. Signed-off-by: Alex Bennée Reviewed-by: Weiwei Li Message-Id: <20220929114231.583801-51-alex.bennee@linaro.org> diff --git a/contrib/gitdm/group-map-academics b/contrib/gitdm/group-map-academics index 44745ca85b..877a11e69b 100644 --- a/contrib/gitdm/group-map-academics +++ b/contrib/gitdm/group-map-academics @@ -19,3 +19,6 @@ edu.cn # Boston University bu.edu + +# Institute of Software Chinese Academy of Sciences +iscas.ac.cn From patchwork Tue Oct 4 13:01:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612230 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp171217pvb; Tue, 4 Oct 2022 06:26:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4theVK2Qa9ILbujIId+Snf67ZDbYFuEf1CkmQ3Q1iR+lxq40HM5sgDMM3RYr7NpLF1aDoL X-Received: by 2002:a05:620a:294e:b0:6a7:750b:abf8 with SMTP id n14-20020a05620a294e00b006a7750babf8mr16446650qkp.513.1664889976606; Tue, 04 Oct 2022 06:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664889976; cv=none; d=google.com; s=arc-20160816; b=M2/8X3+iEZ0nBpb5gUTRbpwG7ABBurdJJXdgoQaKESFBSVlKlU0eOMdgDCEkoz1OgJ OtZLd/HIXnqUEzI1Bzoc4hjxYA1imBo5jF1JFmfrcGRdbywt84UXLbMMF2lvhOr9HQ2k Elk/hG3qzGZuISO3QDd2QyUwD/xFaQK1ofIE5tSKwWiYnr4oHEiTzWiqwgwSgVg7QHQL 6NrMr6x3YVWIAZkQqAyClAVDWq4umXO325xDLubYT+Rq41WJd0/EoW3lobzWilRzbuG6 +gBLMsE9bZJLH+5wXEkjRmb0woPRKZknQniQlDQYav+5OKiZs76W40Dk78aQyDCw5AvO 6R1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VAduaoosLO7MvAhcvJNn1SKuZyndPyiAt4ndSErOy/8=; b=Vaw5fK1WlSAOq9LZZX8zKfiY6V+tMnDK6js0MxSrpaAjWweqnXpZ+9QqX6v2dX+CIr XNfvLDA46/YXGYMDW6584aAyN/iyJr+v8/RsMkWH+J6KTD1Gmsq5p6g903NVj6an4qhm f/rMyfe2B0kqavcVu6/3d1omcPPUkK7p5fa1L7VPzy+8I8A0EFBe5PCyyP9E3aXfSW6b lKUQmEZX8M11FKWDYgRnn/d2OX2DDk2wXHQoxO0OjlemBFLHnNry/Ut81NeIJWJCgCsl D3UF4mBM32PFRxz6tG86zIH61Ggd9Ac5Jycp701t/mxcIP9qPCDR6Wj3ykobl+4E/JSX MyuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wW0FM0/H"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x8-20020a05620a258800b006be73b19ea1si5230965qko.653.2022.10.04.06.26.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:26:16 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wW0FM0/H"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:51186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofhw8-0006ej-49 for patch@linaro.org; Tue, 04 Oct 2022 09:26:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhYe-0008O0-BX for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:02:01 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:44690) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhYa-0007QF-Ey for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:59 -0400 Received: by mail-wm1-x32d.google.com with SMTP id p36-20020a05600c1da400b003bd24ccae2eso796663wms.3 for ; Tue, 04 Oct 2022 06:01:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=VAduaoosLO7MvAhcvJNn1SKuZyndPyiAt4ndSErOy/8=; b=wW0FM0/Hzae0FFXn8E2Q3CKgebcQtPmLdxba6FOLxLiOjlgGNL4tvkhzXIhzoBlgrz Wkkb7/czZn6FWnM5mA2iLofw8EdywkUqhyMe2Ba2vVlczd2GYV9AvaKZGl44WRCx5F99 F/7gEaHKTlcv1gvCDLxywQ6hEghjSgmfTee7KcrAf+7c7K5lHjDc+llNlGnfxI9h86ll cnSw0r5CjYiVyipasFkZDpgV23HY32tvEJfZa3DzWH0I3NDh5e7nr71UNiBapC4OQGWM EW5zqVcYJ+P+XhgJ7YQ9ly7X6PQhelvZ+5gLy3SpgsGv+widWZ1ogz9VHLUg+nX1GiC0 wWDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=VAduaoosLO7MvAhcvJNn1SKuZyndPyiAt4ndSErOy/8=; b=fccUnXYnKvYwfNBxO1s6jtSo1zYIWG//I/0TDlw5mSFOyi/w8jhccwPHhlJewSYDE9 yvbLyibu3TlvdqPDOWWH67x+UYB4amSaPpLVMmGB8+QatjqBqEazPK9Avr5Jf7a3HlyC G0WlTpBRw3licY5VTbGVosOKKSI0BSYPueWCFdSLua71HpF1sEqrqwtTZDNZIQw5Ev9/ 9hwkfEz9h1atSmMoqZejwLo+aKhnmwbV08G/0wBW8frE93LK0+aXNCYk41ezsR6p2RKZ 3Tg6LHt00DHrzmtB9l7qrg1Y1TtUijawxWU/QaRg6IZwRatnLAf2Q2ver5HXAh1kZWCa 69kA== X-Gm-Message-State: ACrzQf0hjSZgeyYit9u8djqH79vn4ojjOegIFBa2wtlLNmBGZ3mMjOvP +bgqBfpWb2bqeVLz3mOjk8W1yQ== X-Received: by 2002:a05:600c:1da2:b0:3b4:856a:162c with SMTP id p34-20020a05600c1da200b003b4856a162cmr9872578wms.28.1664888514623; Tue, 04 Oct 2022 06:01:54 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id x16-20020adfec10000000b0022a2dbc80fdsm12500167wrn.10.2022.10.04.06.01.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:01:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2F26E1FFE5; Tue, 4 Oct 2022 14:01:44 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Hyman Huang Subject: [PULL 51/54] contrib/gitdm: add China Telecom to the domain map Date: Tue, 4 Oct 2022 14:01:35 +0100 Message-Id: <20221004130138.2299307-52-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32d.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Alex Bennée Acked-by: Hyman Huang(黄勇) Message-Id: <20220929114231.583801-52-alex.bennee@linaro.org> diff --git a/contrib/gitdm/domain-map b/contrib/gitdm/domain-map index 434ef53afc..3727918641 100644 --- a/contrib/gitdm/domain-map +++ b/contrib/gitdm/domain-map @@ -10,6 +10,7 @@ bytedance.com ByteDance cmss.chinamobile.com China Mobile citrix.com Citrix crudebyte.com Crudebyte +chinatelecom.cn China Telecom eldorado.org.br Instituto de Pesquisas Eldorado fujitsu.com Fujitsu google.com Google From patchwork Tue Oct 4 13:01:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612247 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp183299pvb; Tue, 4 Oct 2022 06:45:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5DEcx8WPNUDWDuaV1sbTbKcTOC9cnMkKBhD26uT0C+AhyS4azn2euE8jxY7YiAL9/AU6Ja X-Received: by 2002:a05:6214:5092:b0:4b1:a446:8ae1 with SMTP id kk18-20020a056214509200b004b1a4468ae1mr4635040qvb.2.1664891107982; Tue, 04 Oct 2022 06:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664891107; cv=none; d=google.com; s=arc-20160816; b=u05h/hyyLL25U6Ohe2HdwKojN8K84q7clTO2mQGkwyoNR8uc4rCyisooBPoRtfOZQ6 IP3u0CcQ3nKa5Ui0FJ09f+Y9RAu8+Z3e58SIy41efz2lQUwbGAchZYNVbfbseYDpYvnF 9sUekwKBx793Fw2lS0KjtZW4x3dVZur19YboCRuTwb07w2fr0g3p6nL0AhNzrOgKcE/J KI7C9bX6BAe1XjuntPE3xHE3GZbK2DnYr4GDTbZJ0YrRMb5o2D+EQKTgdRcpldRCWjVq QudGZNO322yxwjzRY7ZwJRGNA4E2CtKF4OLFZK7pzV+dUG1WgoFN8KncgQucIUPPFm/D zZfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=S/xkZ5Z+RECT+PVVDgHQ3kAIpYgCzXMb4EaN7Wyqjn8=; b=tO+A9Ecio/dLvMKZhwAtm6B+YmnmesPsG8eSf7tZgYdfdK7C2V+Zo7NKJAENUXE4FM 9zeXtOctfx4Z9xDssfygSej5sQtlFgj+pmoES364n5inC3vfGnsdGBVQ3RVBfSHU+lDU 8lLa4tDWsTBBp6sWjtEGxKCvtUCeCXvb7Zi1p6drzdt8RcmdAcrsqGLxr5yIQW54zQi2 EA0tObPo/+suZFcM2rM9MibjYVe8mehSx/2PYF396LkbBSnbFKWxFU48lljePpi6kTqK QRkgLzTh/+HT53wlN4X0+jrhwtTV84+8BxSdqrQSPI6hBaNZBDjZalo4sFV+wavnL8ac ibHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cJyz4OaL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id h10-20020ac8714a000000b0034016ba79efsi4538911qtp.319.2022.10.04.06.45.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:45:07 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cJyz4OaL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:37222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofiEN-0000Xu-F7 for patch@linaro.org; Tue, 04 Oct 2022 09:45:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhYb-0008Jn-NO for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:57 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:53915) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhYZ-0007Pp-AA for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:01:57 -0400 Received: by mail-wm1-x32b.google.com with SMTP id e18so8828424wmq.3 for ; Tue, 04 Oct 2022 06:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=S/xkZ5Z+RECT+PVVDgHQ3kAIpYgCzXMb4EaN7Wyqjn8=; b=cJyz4OaL2BLeAVFU40ZwfEOYbAZsmMs30Lgry/6zbmX3Ky4kf2uYnSAo2MPrRNJqsK ciS7n8KcVaXiUTNMjlD5yjBH9szvNA4x/vcTLE+4ccHhJe0/SZyhUBW92Rv4WFJFpHtY nIcugV5hU9M+QE8MyiZcmcpqF0NSVxFsdKIwQTZ6VAXClm8a9mazJSX4NMf5RMA89nWC EP1MaRZRzo2AmiGynfhnXtBAb6+gvAyzH2Pwzn9vh/oIEVOO4IdlLbB/hU1B5FGhQWgk wVnSCAI1Hj8M8TumMMQ+dZsJNdFtglM0k3nDHxZokfmRntkJwMRA4aAnFYH8y3OeRG2e cjOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=S/xkZ5Z+RECT+PVVDgHQ3kAIpYgCzXMb4EaN7Wyqjn8=; b=NoR1EwHLl9/owa6yVjN7JSbQ9xq4495c/Z5o1zoo358n2/OjlLXS6i236SIBurX6Jn YExss4IS5jLxBpT5dhrovuaYkXwapN6gsYtVQoEG81o7OapGTk7gKh28ovMFBP3/uVJG 1r1BPQDLVZCjlHn7Jq9Ts59GYlbRKE6jyqlrUD/1RvOthyrDU+wc0lNQlqEkVq2fcP9Y qIDixAJKYAkKddK6XiVbNtg5yVbsAtNfkwupRM55WYbduy5s+XDQHSMwv5fUXfdBw+cc I82SPaNRpMnSynBIKzl/0rC65+096sVkjiclO2h5fo7vB0xZDc5jzIZB+eJRUlgErUe5 fcXA== X-Gm-Message-State: ACrzQf3yegC3rNYmX8rBZ0oBP/scXJeBjcFcKHATj2zuNSSUR8uL89Ya aHd9X1hMxx4ZPGJw4QiHizUxhg== X-Received: by 2002:a05:600c:3595:b0:3b4:8378:98d2 with SMTP id p21-20020a05600c359500b003b4837898d2mr10620988wmq.64.1664888512713; Tue, 04 Oct 2022 06:01:52 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id j14-20020a5d464e000000b0022e38c93195sm6069226wrs.34.2022.10.04.06.01.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:01:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 447931FFE6; Tue, 4 Oct 2022 14:01:44 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Simon Safar Subject: [PULL 52/54] contrib/gitdm: add Simon to individual contributors Date: Tue, 4 Oct 2022 14:01:36 +0100 Message-Id: <20221004130138.2299307-53-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32b.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Please confirm this is the correct mapping for you. Signed-off-by: Alex Bennée Reviewed-by: Simon Safar Message-Id: <20220926134609.3301945-2-alex.bennee@linaro.org> diff --git a/contrib/gitdm/group-map-individuals b/contrib/gitdm/group-map-individuals index e19d79626c..53883cc526 100644 --- a/contrib/gitdm/group-map-individuals +++ b/contrib/gitdm/group-map-individuals @@ -36,3 +36,4 @@ chetan4windows@gmail.com akihiko.odaki@gmail.com paul@nowt.org git@xen0n.name +simon@simonsafar.com From patchwork Tue Oct 4 13:01:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612227 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp169084pvb; Tue, 4 Oct 2022 06:23:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7HGXZKmgYRyOXTbQQvn0rz4b7jSGUOw2t0X8tOKINm6GYQRlaDZevLYSohXfarCuByKCwP X-Received: by 2002:a05:622a:cb:b0:35d:4b2a:f58e with SMTP id p11-20020a05622a00cb00b0035d4b2af58emr19627120qtw.581.1664889784807; Tue, 04 Oct 2022 06:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664889784; cv=none; d=google.com; s=arc-20160816; b=YiHcoR3rRUfCj3h3sCXJgQsCBafMpqE9tAJ8kb/W5w1bTS69+APq+iCxMDyEWU6dwc X4w2xjbNzzBz1JuUcl5DLaXdN5D8G2QUYTfdYVCLy/hoZWr6VxHu/PBdv1x3wlXkRdza pOuexu07wbkjbo/4qcZqoHFYzfwLO/n08knUEDPKGrowXdrmTh0hEQZrQowxALmra8Fd KMkVg7Gc9My5V1Er+ltrkHEd/QVudtXRtA3DGJmA6fknImFxiMWkmhmvAqbeDIb+0cpP 8KVZmWorRoKnKTODcvoZ+BioSp006EdmSRcDSQvPXbRUlOoHnf2Em1gaiUaewE8yUANQ cbPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zzVR8/oz0+lsWlrieGUIzeorIpITtDEzwa++gYuHD84=; b=NRPyS5b6uAY6kKOXpXUBKtvqxxi6KbFCFYGvg+MJeJk7HSLyMfAzMGTTNfiCkH+zny c6nnz3zDsPy+5NRSmqc3JsfGhczUQ0hnyhTV6S3CD6J/fehGBKANouKjkn6rPMHcQlSe npQE3l/9nGAUZJ3489G+UYKoi0yOh/pPWEQeBACjOV9aZ+HG86pP1YY+BzDLNdOtCQNk a4RykzbE3sRrdwKQ8l36FtI6HCe7Nu18oKjcDvfG5Bk1xSJbKIyk5mqAxbTYN96GcuSB sw9Q8q/1r7QfbX6CPxaKt+iTGOHszQDLPCf+i+wiKQYlIDNblBRvu4TODA2LmnzzD+NZ StfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qOyd4Qix; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bl36-20020a05620a1aa400b006cbbc3ea96fsi94878qkb.265.2022.10.04.06.23.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 06:23:04 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qOyd4Qix; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:50664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofht2-0002U8-9n for patch@linaro.org; Tue, 04 Oct 2022 09:23:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54798) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofhgN-0007NX-4U for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:09:59 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:39904) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofhgI-00008I-Tq for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:09:58 -0400 Received: by mail-wr1-x434.google.com with SMTP id f11so18597832wrm.6 for ; Tue, 04 Oct 2022 06:09:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=zzVR8/oz0+lsWlrieGUIzeorIpITtDEzwa++gYuHD84=; b=qOyd4QixN8x7f64VC4W2UbvAkdMv2VuPJPh+RnPjY+dI+uSPUre8KVPn9Y0QQ/l6B9 25cMRfNBUe6U3sOxFZNwkZAZ6qAUw36lc/1A0dsMwcXcbI9Ep5wLhIopr0KPYG9OhMOe KNTbs6v3wtRzcZL9s3w3m/+CchkARN16llxF0vWwzz7V2q3eFx4c09pjpY1PRYI08qKk p4IIGp+x/B8qFjMUS8WpOZHSjJaeNZdM6SFA6+ykJSJhXYL44IgJAmhfgP631Gdjoo5n uBfhHNKVUCfs1C2fPx9+SHbawy6jRKxZD7x6Pwylo+WhBRz4mW/rVIsGuZIrTEXMl37d RjrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=zzVR8/oz0+lsWlrieGUIzeorIpITtDEzwa++gYuHD84=; b=Ac1Y18oz5EcgIodhjbEByX8y0lECHYVxRsc5z5w1Vk9P+36oxDHVJO3wac2BO7XFY+ RkX8JDDTD1p+zt6GfaUVMDX1CGBBezcHDN5U2dx1dyZU423BcUvCennkpSHpPCLWPS3D vWLTSYpiNGb7YnaGozNl84qk45ILuRYxnVlgyccTMRuJPQzr86ekFq86mz4+BdEc6B2G 7bevXhmVQvdbCaEeRS21MRbQRcgwFU7j+C62HkMzK3FtYywvplaXaGZiyC5jAAdNFdGx +gLa2Jg3ok2cbQ96kWKlb+HkLjB9xxgKOE5sbAnpAseOVY7NL/LygvTGnNUmh/ubFjdb mBiw== X-Gm-Message-State: ACrzQf0KXAgk4w78YrXYtA3kLMxIex5RnAjjMDUPTxb9+6qdz/ejXp2m QGisKbVY/hKhrtdaEQkplWefTA== X-Received: by 2002:a05:6000:1786:b0:22e:41c0:cb0e with SMTP id e6-20020a056000178600b0022e41c0cb0emr4929842wrg.93.1664888992593; Tue, 04 Oct 2022 06:09:52 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id u15-20020a05600c19cf00b003a2f2bb72d5sm26443475wmq.45.2022.10.04.06.09.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:09:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 59D321FFE8; Tue, 4 Oct 2022 14:01:44 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?b?RnLDqWQ=?= =?utf-8?b?w6lyaWMgUMOpdHJvdA==?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 53/54] =?utf-8?q?contrib/gitdm=3A_add_Universit=C3=A9_Grenobl?= =?utf-8?q?e_Alpes?= Date: Tue, 4 Oct 2022 14:01:37 +0100 Message-Id: <20221004130138.2299307-54-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x434.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" again to the academic group map. Signed-off-by: Alex Bennée Cc: Frédéric Pétrot Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220926134609.3301945-7-alex.bennee@linaro.org> diff --git a/contrib/gitdm/group-map-academics b/contrib/gitdm/group-map-academics index 877a11e69b..082458e1bd 100644 --- a/contrib/gitdm/group-map-academics +++ b/contrib/gitdm/group-map-academics @@ -22,3 +22,6 @@ bu.edu # Institute of Software Chinese Academy of Sciences iscas.ac.cn + +# Université Grenoble Alpes +univ-grenoble-alpes.fr From patchwork Tue Oct 4 13:01:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 612281 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp221145pvb; Tue, 4 Oct 2022 07:43:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM63AlaBmpX0ZVvbhufpEp3lW/lXBhfKxkiAtT7nZqTA/ku+uTn0DSBqQUveSrnxdzVmDqgW X-Received: by 2002:ad4:5dc8:0:b0:4ac:907c:f5c0 with SMTP id m8-20020ad45dc8000000b004ac907cf5c0mr20047022qvh.63.1664894595605; Tue, 04 Oct 2022 07:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664894595; cv=none; d=google.com; s=arc-20160816; b=E9sDl5TAZNO28SonU7VgjDEIJcW912+qwuW8Qm7jVzlZmkDSS9ShBe5Trgm64svdav LrVv2xe/BBxM6PI2133bxm+YuMVeZ1N6Q05MDvXW8lJb4kuZ7jeFf6nEkb81rqXQbKoq re88XNFoRl3U7JIyOxySx8tfbbSAW5u4K4/JMnh6nexvPt2Y/HFmzFY+VTndKWBVct9P hbllAgQPfBzc/DHJEs9fhDpjHRQM8cmO00vfGxlc5aDVqC/APjRGHFsHoiZEk5IQMLjL 53ZIotJDQ73FcftodpBTBXWs6wEUsBhsneZ/vulgXe074yVPSP0zX1Wy6hv9fc2Scekp 5XZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/9Y6bpIHZhQdKfRF3tpCFZOqNt538z/9rXtxQM4vg68=; b=eTRMrgJj010gItQr578nXdNTdWaRMe8naKysaqnz9VSz9knSsuZRZ/zUFr2gkACijW q6LzcQVShEnEJKsuMBfWMkclmbrFFm95jEdVvSkEtawthWc6EURaDoBrPenpJs7LPQTc pOrn0mu9xOm4QivbeO82R/6CzvkPoJ0QlBTjOBr+Puu1mXGAbE8ROig6fC8lfQfATtse Wt2165cA06dlljhrKMy2gERxwH5+Ej0WDaesABXQgccfcM11NtaRFf8N5HBATz+uxalD ueGJOSz6JRJFLmYBDuYDVPqPdrdm0UFXwgRTjBrK39GL9uT46D8UUfN5Whfzuay85Mhd wwGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZxfLpC+N; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id h22-20020ac85056000000b0035cdb1ecdfdsi4564065qtm.743.2022.10.04.07.43.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2022 07:43:15 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZxfLpC+N; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:60038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofj8d-0006jg-3T for patch@linaro.org; Tue, 04 Oct 2022 10:43:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofi9L-0001dC-Av for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:39:55 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:54916) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofi9J-00023Y-8u for qemu-devel@nongnu.org; Tue, 04 Oct 2022 09:39:54 -0400 Received: by mail-wm1-x32c.google.com with SMTP id iv17so8907534wmb.4 for ; Tue, 04 Oct 2022 06:39:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=/9Y6bpIHZhQdKfRF3tpCFZOqNt538z/9rXtxQM4vg68=; b=ZxfLpC+NyrTYle0l7hQPZpiMBUw1aMhslEnk+H0uD+MLtPbyOG/XxxqzQsd9R3V84W +zrD4JDw8j4EsXNLzC25R+ZIZNd5QBLhgde9ZJA0aXbJD/NfiPgTF2MTnNaPPjIaOnVc kxu31hzrGGcRRP69IQb4q/SMvhpGckVNxfHPAQ1oABF0YDMcGH0bvGGn4HZQg+Ilf28+ +BwLwUbTQu1Auj//gf8N9LrdgCCLvdh7oF4v+5HJB3nj9CFoO4ipravv8L1dB+eFbSbM Rc7zSkcrw/p3QmXk5RkmZ6BPDrObfK04TeUJ8m23xYVzheFpRNelJ6mF/YKP/m8iCjao pVcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=/9Y6bpIHZhQdKfRF3tpCFZOqNt538z/9rXtxQM4vg68=; b=vz6BRugCDQABipPZZU8osmOByWX/1lLi2asOguuZ5nQhvAx8hRadDp/IQiTrZkGjb7 zasysbQdl6pfbjt6c/P617meG+JwJsepzjYqCGMNf/GlZhDIQjmQfDpbsoNDosbTHxAS sbXXHMUtNy44H1SjXa5cokQtlLt2s0B+0AjWnzNwewN34O5KuhB2EVRz1JyPqg7F9NL9 XBlfoRznbER7sVi5wXWpDM8VkPhpPNTymZO9EbewqJIu9TWFcFDEuslI1FSrFZ0Mz5Sj JFVXq4MKQWtXZGBM6YLyOjzRLtGM9/OfS5l3IeidkcCgM7M1kV/UvBBpZz72kD+F0v+V CH1Q== X-Gm-Message-State: ACrzQf1PyU+Kzvdavyv0KOk1Q9JfIC8ixliumRy2q8S/aCIjplBpIkpK Bd9PivLYWVBgRm+26aD711SMEg== X-Received: by 2002:a05:600c:3d17:b0:3b4:adc7:976c with SMTP id bh23-20020a05600c3d1700b003b4adc7976cmr9959018wmb.108.1664890791397; Tue, 04 Oct 2022 06:39:51 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id r5-20020adfe685000000b0022878c0cc5esm12415603wrm.69.2022.10.04.06.39.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:39:50 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 74CE91FFBD; Tue, 4 Oct 2022 14:01:44 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Daniel_P_?= =?utf-8?q?=2E_Berrang=C3=A9?= , Laurent Vivier , Alexandre Iooss , Mahmoud Mandour Subject: [PULL 54/54] plugins: add [pre|post]fork helpers to linux-user Date: Tue, 4 Oct 2022 14:01:38 +0100 Message-Id: <20221004130138.2299307-55-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004130138.2299307-1-alex.bennee@linaro.org> References: <20221004130138.2299307-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32c.google.com 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Special care needs to be taken in ensuring locks are in a consistent state across fork events. Add helpers so the plugin system can ensure that. Signed-off-by: Alex Bennée Fixes: https://gitlab.com/qemu-project/qemu/-/issues/358 Reviewed-by: Daniel P. Berrangé Tested-by: Daniel P. Berrangé Message-Id: <20221004115221.2174499-1-alex.bennee@linaro.org> diff --git a/include/qemu/plugin.h b/include/qemu/plugin.h index 145f8a221a..a772e14193 100644 --- a/include/qemu/plugin.h +++ b/include/qemu/plugin.h @@ -224,6 +224,23 @@ void qemu_plugin_disable_mem_helpers(CPUState *cpu); */ void qemu_plugin_user_exit(void); +/** + * qemu_plugin_user_prefork_lock(): take plugin lock before forking + * + * This is a user-mode only helper to take the internal plugin lock + * before a fork event. This is ensure a consistent lock state + */ +void qemu_plugin_user_prefork_lock(void); + +/** + * qemu_plugin_user_postfork(): reset the plugin lock + * @is_child: is this thread the child + * + * This user-mode only helper resets the lock state after a fork so we + * can continue using the plugin interface. + */ +void qemu_plugin_user_postfork(bool is_child); + #else /* !CONFIG_PLUGIN */ static inline void qemu_plugin_add_opts(void) @@ -287,6 +304,13 @@ static inline void qemu_plugin_disable_mem_helpers(CPUState *cpu) static inline void qemu_plugin_user_exit(void) { } + +static inline void qemu_plugin_user_prefork_lock(void) +{ } + +static inline void qemu_plugin_user_postfork(bool is_child) +{ } + #endif /* !CONFIG_PLUGIN */ #endif /* QEMU_PLUGIN_H */ diff --git a/linux-user/main.c b/linux-user/main.c index 88fccfe261..a17fed045b 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -142,10 +142,12 @@ void fork_start(void) start_exclusive(); mmap_fork_start(); cpu_list_lock(); + qemu_plugin_user_prefork_lock(); } void fork_end(int child) { + qemu_plugin_user_postfork(child); mmap_fork_end(child); if (child) { CPUState *cpu, *next_cpu; diff --git a/plugins/core.c b/plugins/core.c index 792262da08..532cbaa94d 100644 --- a/plugins/core.c +++ b/plugins/core.c @@ -526,6 +526,26 @@ void qemu_plugin_user_exit(void) qemu_plugin_atexit_cb(); } +/* + * Helpers for *-user to ensure locks are sane across fork() events. + */ + +void qemu_plugin_user_prefork_lock(void) +{ + qemu_rec_mutex_lock(&plugin.lock); +} + +void qemu_plugin_user_postfork(bool is_child) +{ + if (is_child) { + /* should we just reset via plugin_init? */ + qemu_rec_mutex_init(&plugin.lock); + } else { + qemu_rec_mutex_unlock(&plugin.lock); + } +} + + /* * Call this function after longjmp'ing to the main loop. It's possible that the * last instruction of a TB might have used helpers, and therefore the