From patchwork Fri Jun 25 09:13:49 2021 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: 466827 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1261974jao; Fri, 25 Jun 2021 02:14:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5nvUInAN/3Av400sA1G7IbETJrDrQKkUvRIkC2eciHj93KPkZFcuVCsjoOLPiUdGyyGav X-Received: by 2002:a6b:8f4b:: with SMTP id r72mr7561155iod.183.1624612488305; Fri, 25 Jun 2021 02:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624612488; cv=none; d=google.com; s=arc-20160816; b=LMSn4hEj+TPsc/IpTEkFPfLmWrNpoHVBS72QAZE5WOHsxA29RiML8/RA3euWn0rjEI PXppOaBxoHhZnqATmHXFCTM9ef74f9aloZtGV7zKALN7fsvhtzMnD1R0RZHFI4cfRC0G c1grPQMnJFw7ZpTweO85WcTCeoJM76dnemPCvpytd4ncraK/WWy9G3UVIpdt9pldqwm+ tFCdpiZaLEXBg68tzCZw5siOCjrZW4gRNUjGP4cHUmlgh+zEQOsQRrYMa3k4P4U3tsH/ +qNUzOJwjkny/d4sAjYqbLy5vr0tzDMCLQOegWnhlTF2q7GrBTC206uHAZYkxVqDQgU9 FoWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=3kiUdg16y+rpz0xmzHJCII4oHjLBoN3oJAAUdnqWaM8=; b=M+l0X5uTbmL/4zTeqMRVQ0raSCoBElU+bXYENQdlKBGSKWJ9TsjzEXjRS/Hr5BKIyE if0z7urYA2BAOsVUlYkRFFp+G7r6O45nLowp1IRAR/+k3GZVo9yGJKrhXJwqhI1ueDS+ fwdtP5lU9g4QY3q/Mg1S1d1L6YzHHI2J7fP2ZxVxpVgzVXsCtp9ZHh2VbcnqSd8SWd8B 96ghHhaED2aLvudIrwphXcCYVmkuW4fSPwXPtj09ZuVIsxJfsqxpsL/8OHJtVDBKRS7s GZS4COqu56uUM5R/3mSMtDT8U5Gra2xodcjLa3rT+0OgPp7BkAX1+wE31HJsTuWjGqMb gD8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=XAALvnmR; 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=fail (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 b34si6455476jai.58.2021.06.25.02.14.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Jun 2021 02:14: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=fail header.i=@linaro.org header.s=google header.b=XAALvnmR; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:53732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwhvD-0000S8-CA for patch@linaro.org; Fri, 25 Jun 2021 05:14:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwhuS-0000Rt-KS for qemu-devel@nongnu.org; Fri, 25 Jun 2021 05:14:00 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:44024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwhuQ-0002sc-PW for qemu-devel@nongnu.org; Fri, 25 Jun 2021 05:14:00 -0400 Received: by mail-wm1-x32c.google.com with SMTP id p8-20020a7bcc880000b02901dbb595a9f1so5368705wma.2 for ; Fri, 25 Jun 2021 02:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3kiUdg16y+rpz0xmzHJCII4oHjLBoN3oJAAUdnqWaM8=; b=XAALvnmRMUeyxm1crmVLye3yL6T660qnfER5n1CXgXKBw01Lg/y+kHpIEeeMRbE10B wdaXRkV+l7UKbt/MvxBP4BCh7kngfH1xV3CT9eF8gXg5eJIb0eTC05KMgsTL3LRPWilt VxHRDwFU/Q7dk/E/C21jhL24FZLm4C5yw/oZC77x90/HxNaVhQJR96LvL6F4wKLyhOYK Du9ocAn/Kf3SEg8kMrwWA2N3HTWHWUv800ZAXoeaU5rnfJkTzwxrUWkA3Mf3YyrV+OY4 gRq229z3kFwQ+fV1WFld8YQD1tmoUpUWkEj/uNjwKyhmdbBj+gaQKknOR6ac+xd0/Qfh 5Xdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3kiUdg16y+rpz0xmzHJCII4oHjLBoN3oJAAUdnqWaM8=; b=pHjLE/QMGtaO0xf7iSZ6Btt8FDkfHtG1web2QFOOwLygZkB6lreM9HTIIHPj/GnA5c uiPBk6lyUYz6eD1apmFPpxS2RMffHrKVy5Zz9ccotTsVcYov9wJMGgm8G7fv/o0ftvSA sy6oIuwdMSu06LlMihn/Kgwi6IdMLbi85nP9nmHT2tp36ybScJ33fpxPgztURqyycuhm YN+DAQ+MP4eFG0/uOQy9zFlIjGzUIdm0jCrU1w3ZPEzi4F1mCLZym5wlwCbm3APGyjev iWlA+e1ocDz7/GSd8oAXv/XiegqyHrDrTKITg5GCcA+L8MAjxmhc/lWqDNyaeBx3xOlc Dd6Q== X-Gm-Message-State: AOAM530pXZGtNEcgPPYP9FjEcJIsLQfCZC9/aVcLDR4k1GUuERe36RNf jEBfqx/Z8rEvWalfmqhaEnOaqg== X-Received: by 2002:a7b:ce16:: with SMTP id m22mr9141148wmc.156.1624612436836; Fri, 25 Jun 2021 02:13:56 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id g10sm5132596wmh.33.2021.06.25.02.13.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jun 2021 02:13:56 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 7B3FB1FF87; Fri, 25 Jun 2021 10:13:55 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 1/7] tests/acceptance: tweak the tcg/kvm tests for virt Date: Fri, 25 Jun 2021 10:13:49 +0100 Message-Id: <20210625091355.25673-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210625091355.25673-1-alex.bennee@linaro.org> References: <20210625091355.25673-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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Wainer dos Santos Moschetta , Willian Rampazzo , Cleber Rosa , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Really it's only TCG that can select which GIC model you want, KVM guests should always be using the "host" version of the GIC for which QEMU already provides a handy shortcut. Make the KVM test use this and split the TCG test into it's two versions. Signed-off-by: Alex Bennée Reviewed-by: Willian Rampazzo Message-Id: <20210623102749.25686-2-alex.bennee@linaro.org> -- 2.20.1 diff --git a/tests/acceptance/boot_linux.py b/tests/acceptance/boot_linux.py index 314370fd1f..4c8a5994b2 100644 --- a/tests/acceptance/boot_linux.py +++ b/tests/acceptance/boot_linux.py @@ -75,10 +75,11 @@ def add_common_args(self): self.vm.add_args('-device', 'virtio-rng-pci,rng=rng0') self.vm.add_args('-object', 'rng-random,id=rng0,filename=/dev/urandom') - def test_virt_tcg(self): + def test_virt_tcg_gicv2(self): """ :avocado: tags=accel:tcg :avocado: tags=cpu:max + :avocado: tags=device:gicv2 """ self.require_accelerator("tcg") self.vm.add_args("-accel", "tcg") @@ -87,29 +88,28 @@ def test_virt_tcg(self): self.add_common_args() self.launch_and_wait(set_up_ssh_connection=False) - def test_virt_kvm_gicv2(self): + def test_virt_tcg_gicv3(self): """ - :avocado: tags=accel:kvm - :avocado: tags=cpu:host - :avocado: tags=device:gicv2 + :avocado: tags=accel:tcg + :avocado: tags=cpu:max + :avocado: tags=device:gicv3 """ - self.require_accelerator("kvm") - self.vm.add_args("-accel", "kvm") - self.vm.add_args("-cpu", "host") - self.vm.add_args("-machine", "virt,gic-version=2") + self.require_accelerator("tcg") + self.vm.add_args("-accel", "tcg") + self.vm.add_args("-cpu", "max") + self.vm.add_args("-machine", "virt,gic-version=3") self.add_common_args() self.launch_and_wait(set_up_ssh_connection=False) - def test_virt_kvm_gicv3(self): + def test_virt_kvm(self): """ :avocado: tags=accel:kvm :avocado: tags=cpu:host - :avocado: tags=device:gicv3 """ self.require_accelerator("kvm") self.vm.add_args("-accel", "kvm") self.vm.add_args("-cpu", "host") - self.vm.add_args("-machine", "virt,gic-version=3") + self.vm.add_args("-machine", "virt,gic-version=host") self.add_common_args() self.launch_and_wait(set_up_ssh_connection=False) From patchwork Fri Jun 25 09:13:50 2021 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: 466828 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1262064jao; Fri, 25 Jun 2021 02:14:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAVEyTEAa+RjbVBtVZkRssK0l5/uwsHi3DCOKx6kocVxONKDZ4F0Xxhb5RFsLJ1n8dGQiS X-Received: by 2002:a6b:760e:: with SMTP id g14mr7726410iom.119.1624612494348; Fri, 25 Jun 2021 02:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624612494; cv=none; d=google.com; s=arc-20160816; b=lP1Kkwo0A/ute7NbSDIKMQDcOPdDnRjs//eEF4Rcm+MTBbEs+/dYdyJJrMca5N5mrb QTOWoMgg+tWTA6K5Cf9AeLToXigk6hQvDhK34YCkTzZLCIFS7+Lql45nw48lrbbJy4Ct LyW5Et+UbZO6rd+Oc7NXKFGfTCtqYnOG6bMyU2qSJW04RDmWb8WF49MSTd0fKdSXmoAw n4vjsqGSCH/DEVeFxiaII7lc49S/O6+ogEWKByUmKHHybkPvhSocYpLV6oJUaRGHDuC9 kifl4fpEh6s+9RLfCkxgnOwCXcpM3aQwVVfdQt0+4fD2mdG5uigINa15WMh8BN/Xxgvg Krjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=ziq8Q+65yXs85QgnyMAfaIYXuYjNk9uwdvgV6eM+uzI=; b=nh5PSJNYL8cafaxaLpzAHcqnKyklI3DwUoqdgPxjN0VYqrJZMpVjA8qHk1Cs0ZXTff bfplQgU3D42NvegDouvdZHgDPtM6mi6eo/AVRX9vQnkCgZ++VYAeZ9jGCL9lJqE2u3F8 RkXRSFJuFuBLcj/iSqL43QKZtnjt/zGHmOT+zP8QJdOA8sbG/hAAJD4BzciZVQBb3Rvs nY2tE8P83CUXdDL5jOoqKaUC12847hcTHsAnOpyBeiUZat5t+HWu17Of3nz1nbh4p8MS oHlR+lBqb0BWh/+Hz8gpIzgNBwonov063oum85fi/04dtNrhSdMVwAkzS7nz1AZzCLib qoGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Ur2AAx8n; 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=fail (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 d13si5904003jaq.82.2021.06.25.02.14.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Jun 2021 02:14:54 -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=fail header.i=@linaro.org header.s=google header.b=Ur2AAx8n; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:53786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwhvJ-0000Uq-RY for patch@linaro.org; Fri, 25 Jun 2021 05:14:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwhuT-0000S6-Qi for qemu-devel@nongnu.org; Fri, 25 Jun 2021 05:14:01 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:56271) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwhuQ-0002sz-SU for qemu-devel@nongnu.org; Fri, 25 Jun 2021 05:14:01 -0400 Received: by mail-wm1-x333.google.com with SMTP id c84so5777792wme.5 for ; Fri, 25 Jun 2021 02:13:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ziq8Q+65yXs85QgnyMAfaIYXuYjNk9uwdvgV6eM+uzI=; b=Ur2AAx8npu5Tf/gcX+0hEvjPdB02yc/T8yq+9ylTUucwMnSwlP7rHcqPBnk6bMkScw tDWso5HZHvFeRZiMP+8KgDOKc4I4Vqp7HeLEE2OROARGE965J2ou3xaZodLJR+y6BDLs tD95jLtpvqWZivHagu+gGFUmlZ+U9/JThRiZtNZyr0L6drKOh+xjPMN9d+slYpz6jWnU fJGsP39SR+B4pqHHHWHzBb7vghj1mRW2sLMSkAlGnhehsaNZQqQSO/OWAhX1iwzjeisO TxMRKC9YGMwn7R4H1s4uay+ZVOILlwfUpue9/FlFS7we5pFFS3X+aOioJ2r/yAkxWFyc 6tnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ziq8Q+65yXs85QgnyMAfaIYXuYjNk9uwdvgV6eM+uzI=; b=bhwTT4T+j5klD8mA2G9BGULztLgEs1jDMWP7N+zz1ihbHtyOvdFozo0MvjV6CCMTrj txcLwJslDpKQnUuAVN/w+Qa+jG4km+i3Tjow/H7NBjQAfS0tJ1A/qPk/2YPOFYfR/I8M 49kX56AvqVu6jRSW4XgsMg5ZTMIrgc4Imvi1oZ6YcoUcKwqoO3/jN8pXC9dl2lJfzE6E CWUnE3Gnzq8iEPX2n0GWG+mheR+xxXqe7hfcBM69lJ9nlhnC9vlumz0N1KWJnlgdXLmh aVgUARNCKLORZoGQXZGn58wC/AX+JNhbfpewrTXxid9t9aT1Li6zDPd3uRykv+qit2Ko p67Q== X-Gm-Message-State: AOAM530R+KQ6ZFeJGtMdfPmHW+yQxMMLwpsg+S+NbJvke6k0rRvYffL4 sPCYYCx8mjAOPod9PuQYsHfoi98ckI2ceg== X-Received: by 2002:a05:600c:a45:: with SMTP id c5mr9690130wmq.153.1624612437629; Fri, 25 Jun 2021 02:13:57 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id 9sm11730020wmf.3.2021.06.25.02.13.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jun 2021 02:13:56 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 903451FF8C; Fri, 25 Jun 2021 10:13:55 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 2/7] docs/devel: Add a single top-level header to MTTCG's doc Date: Fri, 25 Jun 2021 10:13:50 +0100 Message-Id: <20210625091355.25673-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210625091355.25673-1-alex.bennee@linaro.org> References: <20210625091355.25673-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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Luis Pires , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Luis Pires Without a single top-level header in the .rst file, the index ended up linking to all of the top-level headers separately. Now the index links to the top-level header at the beginning of the document and any inner headers are correctly linked as sub-items in the index. Signed-off-by: Luis Pires Signed-off-by: Alex Bennée Message-Id: <20210528123526.144065-1-luis.pires@eldorado.org.br> Message-Id: <20210623102749.25686-3-alex.bennee@linaro.org> -- 2.20.1 diff --git a/docs/devel/multi-thread-tcg.rst b/docs/devel/multi-thread-tcg.rst index 92a9eba13c..5b446ee08b 100644 --- a/docs/devel/multi-thread-tcg.rst +++ b/docs/devel/multi-thread-tcg.rst @@ -4,8 +4,9 @@ This work is licensed under the terms of the GNU GPL, version 2 or later. See the COPYING file in the top-level directory. -Introduction -============ +================== +Multi-threaded TCG +================== This document outlines the design for multi-threaded TCG (a.k.a MTTCG) system-mode emulation. user-mode emulation has always mirrored the From patchwork Fri Jun 25 09:13:51 2021 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: 466829 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1262164jao; Fri, 25 Jun 2021 02:15:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUiMeMxpMa+RSL7BPG/H0OAwN8+45dzJKdkmkulUiUhYYlw2abN/OrHjzl1Ws3Ep77WNf4 X-Received: by 2002:a6b:e916:: with SMTP id u22mr5241473iof.155.1624612501531; Fri, 25 Jun 2021 02:15:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624612501; cv=none; d=google.com; s=arc-20160816; b=nRsaJ065DHYr4c2ViiR35P7xE7tH0mcYpyD26Wx3j/Vi9GMxtKqAyOzALJzgMsKqkg pwETfGAo1B0taHhoKTE6bTmcG9ZQWksvuwFpEK94rtyVq5A7wMPQgRsHEI76zjI0jYIo +1JqkzS3f7pnS0yi65H3LFnZj/97b0wzLung0rEdaqv31v67CQdmbqC4U9u5ii8z6dML +xSQjVqYTmazlpTb3tjoU74ZR4etxcHmqdXebUci7foO/duHKDAuipJuYjLNl6rBfYiD uj2cluolbWDJOV4d4JAe80hmFP3fzxTidvYPecilgAiqylQ/PGrK3wEz+6JiLE9KNIWO 2Bgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=ES6aP9eLrpmL5vbwI6z5QtaMohdgOgmYVT83oPzFr5I=; b=LqGCHsnMuNf7gEhNBB9rZAGvuw6qACU6jvYf0NuENW5+bY9cxZkeDQzkxK45jKLFa7 wL5M2UHvfcP7xu2r6o1kEMNl9vA0d1DKM54cUkAgwlH2fUGWMXMgCLdBKgNWGI67pTrz bDcdWG6gf9CZlxNjHxcZzGbKUe7uReWmaVf5cTVrgNLPyaB+A0V2rxmeEOPLO04KCtFp tJ36pAK3efHcTK00mD1O09JwiooXvrPq/QYPGZiZfORkE+OpdAuzrnc3FFqQxDst1K1o FLnlb5mF+eH+fNRDjW1j2a11ofMIJiGpGZ6cecbxhlAbuF+BzOvCm6+iCJgYi38Ai9MK Arnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="eu/zuwf0"; 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=fail (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 p19si6540130jas.9.2021.06.25.02.15.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Jun 2021 02:15:01 -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=fail header.i=@linaro.org header.s=google header.b="eu/zuwf0"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:53948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwhvR-0000as-1e for patch@linaro.org; Fri, 25 Jun 2021 05:15:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwhuW-0000XL-Pk for qemu-devel@nongnu.org; Fri, 25 Jun 2021 05:14:04 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:44029) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwhuU-0002ve-D3 for qemu-devel@nongnu.org; Fri, 25 Jun 2021 05:14:04 -0400 Received: by mail-wm1-x331.google.com with SMTP id p8-20020a7bcc880000b02901dbb595a9f1so5368829wma.2 for ; Fri, 25 Jun 2021 02:14:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ES6aP9eLrpmL5vbwI6z5QtaMohdgOgmYVT83oPzFr5I=; b=eu/zuwf0ekSIQp2bhEhSbXJ8X/i4kVpqCeosR8+Sqoqqv5Wq14oyofBTddXxbIpAkx jy0hc5+E1bI1Op4bJKLwsl4mNE2aEfvbHY5zvRo8hxeFZv5NnDRKKIrkUbZp/MeaHN+m 964cjzjEJ8CNsJB32NJril2tUYgygHgA+nVD6RjzorS3I9QOirorxYMgPXrVf8wLn18m ADww6By00n0OXnVW0i0DSrHbCAIYOSAnkj/x25Tinnd3Cx/ItAsy3C2rWeVPMDQ1+l32 a0Tahl6ObSUSFibodrjt2Phi4H8cFHJjXrD2vcSrpianwBNAihSj3es92HEUdBWYO+RF 0bwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ES6aP9eLrpmL5vbwI6z5QtaMohdgOgmYVT83oPzFr5I=; b=QcarUcQZuTZDOBoSaxedbQZLRRvcWcAQ6iD+9G3U23y4Xj/VvEbQcEKyHoMKVuL1pA IxGcyZAVHqQmAppA3f6ONVCQMsdlnMRKxDQ4LQ7F8RlieyiDPWUe70xTmHpsxVJcCKXo /XKa30nzxdbJv3OHJyqA1lKycZEfgXat3yGQvucgicrzq0BrYpR5xe+tm2DSWu3wUKOt t4S5aALZ+Cg9p8LoCANvrhcSIji9PaKFfRdmPLjJ7XMyxQUREFgbp+azxW42YU4Rf647 308g9Ag4CdwoLIMOV5MqPZLgziTXJzY6Q6RdZQBuaTavQjrPu4W4Rmq7EPd9p7YmvV68 pnuA== X-Gm-Message-State: AOAM532y10h4bzqueFsSQrEk0ADUNILV45YlzoNHH5vUMMcAmzjXcc06 NFs/jLFdaybluuW0GDwkMECdwA== X-Received: by 2002:a7b:c8d8:: with SMTP id f24mr9663361wml.31.1624612440801; Fri, 25 Jun 2021 02:14:00 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id m184sm5066849wmm.26.2021.06.25.02.13.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jun 2021 02:13:56 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id A91361FF8F; Fri, 25 Jun 2021 10:13:55 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 3/7] scripts/checkpatch: roll diff tweaking into checkpatch itself Date: Fri, 25 Jun 2021 10:13:51 +0100 Message-Id: <20210625091355.25673-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210625091355.25673-1-alex.bennee@linaro.org> References: <20210625091355.25673-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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org, Wainer dos Santos Moschetta , =?utf-8?q?Philippe?= =?utf-8?q?_Mathieu-Daud=C3=A9?= , Willian Rampazzo , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Rather than relying on external tweaks lets just do it inside checkpatch's direct commitish handling which is QEMU specific code anyway. Suggested-by: Daniel P. Berrangé Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Daniel P. Berrangé Reviewed-by: Willian Rampazzo Reviewed-by: Wainer dos Santos Moschetta Message-Id: <20210623102749.25686-4-alex.bennee@linaro.org> -- 2.20.1 diff --git a/.gitlab-ci.d/static_checks.yml b/.gitlab-ci.d/static_checks.yml index 7e685c6a65..c5fa4fce26 100644 --- a/.gitlab-ci.d/static_checks.yml +++ b/.gitlab-ci.d/static_checks.yml @@ -4,9 +4,6 @@ check-patch: needs: job: amd64-centos8-container script: - - git config --local diff.renamelimit 0 - - git config --local diff.renames True - - git config --local diff.algorithm histogram - .gitlab-ci.d/check-patch.py variables: GIT_DEPTH: 1000 diff --git a/.patchew.yml b/.patchew.yml index 2638b7f564..1b78262ce5 100644 --- a/.patchew.yml +++ b/.patchew.yml @@ -138,9 +138,6 @@ testing: script: | #!/bin/bash git rev-parse base > /dev/null || exit 0 - git config --local diff.renamelimit 0 - git config --local diff.renames True - git config --local diff.algorithm histogram ./scripts/checkpatch.pl --mailback base.. docker-mingw@fedora: enabled: true diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index bbcd25ae05..cb8eff233e 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -399,7 +399,12 @@ if ($chk_branch) { my $num_patches = @patches; for my $hash (@patches) { my $FILE; - open($FILE, '-|', "git", "show", "--patch-with-stat", $hash) || + open($FILE, '-|', "git", + "-c", "diff.renamelimit=0", + "-c", "diff.renames=True", + "-c", "diff.algorithm=histogram", + "show", + "--patch-with-stat", $hash) || die "$P: git show $hash - $!\n"; while (<$FILE>) { chomp; From patchwork Fri Jun 25 09:13:52 2021 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: 466826 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1261716jao; Fri, 25 Jun 2021 02:14:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhpaD3ZYGnHXlVvqvZj6JPQIleVXP3Kj6dcttcRoCmBzCH4GXWmUB5IKfQkfHlQ5/jvUtg X-Received: by 2002:a25:7905:: with SMTP id u5mr11489206ybc.352.1624612467106; Fri, 25 Jun 2021 02:14:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624612467; cv=none; d=google.com; s=arc-20160816; b=Y0xJgwM6dTCPhym+V59dHECeC8PRl7/OPgaPxeI/cka+/60shTl+cfRv8/XKRYTIM4 YWDlbdKXmbkWCk1xXLsZ5CEJr8nhoHKJUP15FG3toaVxkOjCgZ4U4V62lFnmN9jj8nMA X5yvnM9TSBbu3YZk2eVxWBC1ttw+4b3So8KwHNjNSbCEcNyQI4i46TdWZ1g7vn0yB5Fu w6SuqTgLnsG7FsRecaPTf0T9rWLo/2v8JYms64AOrI2JVUSxoI+NZJPeRQPLa4LoWBpt sIP154Cq6A6ILYSmovk9PJxVe0NyufJ2I1J1DmUh3E4r8Rivcz7HO0Wd9AI4vdgDpytz Oo5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=X7MWCKLUlWRy8aD7dKX2iXictuJ1eiPw/daTK5+xsVs=; b=p4H3WjTD0ZgjXA8SVr6x39SqheSyqLfyEz67pJA9lgIyickcGNIOPvEaP9u8DdkbOe 4cmgPn9AcjCoN24BtJfQAO3uI5i20E93I9HYEoYvbzmpd/KUoyncCOQqsmG6IfOauJXJ AETe37a2KegT+PGd3nummTDrfgdmC06eeMgTwHecgn8JL6DAv9nanWBmGN2m4RA2kuBV fe6z+5fM4CowriixULAYIg4zKGSP29mNjWDEiGUBo8LhGLM+WHwvv7Me+Ur7zMZ90vmw tX3ZMt4zCbu5h3kuPr36+fqG/w8nottapAMWN3PozApG53LJFj/EPWjpMOKf3cP1dUmu pavA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bZuGEVcC; 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=fail (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 a14si4981306ybs.25.2021.06.25.02.14.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Jun 2021 02:14: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=fail header.i=@linaro.org header.s=google header.b=bZuGEVcC; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:54106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwhus-0000hS-Fe for patch@linaro.org; Fri, 25 Jun 2021 05:14:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwhuY-0000cR-Qe for qemu-devel@nongnu.org; Fri, 25 Jun 2021 05:14:06 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:38821) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwhuW-0002xU-HG for qemu-devel@nongnu.org; Fri, 25 Jun 2021 05:14:06 -0400 Received: by mail-wr1-x42a.google.com with SMTP id h11so9776564wrx.5 for ; Fri, 25 Jun 2021 02:14:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=X7MWCKLUlWRy8aD7dKX2iXictuJ1eiPw/daTK5+xsVs=; b=bZuGEVcCF9Wd4CqpEYDrx8F9AOUy8toj9VnwWIp4QWuBXQMwd+13utipMhpcV3M1Iz 4dSxfrIRvK+tuUNmJ+MbyclybaJAYrub6JUGjNXEgiz0RIVmvXZyIVKpcgFpHyKqObIf Nxpp8WFYN/fme7A9EdlPiANjze6nFSZP/oJuY9Icz6NYn92TfDPYyt7knIsiONrkh/8B soGXA56X8EFptMDTI8XeRRdI39jizpSCivfg2nUrrKNdj6xmLlTIx1ezH491KJ2admqg Jir+IqIbYrvHZM3snKCkjTcnasYesxHSa89BuQt6loIZYljzTeBegL2DSU7vCmhA8xzq hGlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=X7MWCKLUlWRy8aD7dKX2iXictuJ1eiPw/daTK5+xsVs=; b=PEnr/oG/GlTgSHMiVtWYgxzkABX/Zapv5FQWMJNGe9HmhUQ/WEiSu4zBNyD9rArZ2T TH1+yVk/5L6MOXAUnD6Op4bxRSXwTPbOMQtf7Da6McVuVLqpTMq70D+vABGY3eM/JcpR vm0ZwR54aZx/vaOg6oSPWhM2qlIRQFo7tz8HtniNgr3iGp6vKXrV/XT0+vdHbkn5bzd0 pLFiicnbcpUEj6vCZa5rMo7UHmX9UKZOKy1RqJTcnIJMjCf6zNW8ri8GvwU4yDfQ+zF5 chMi9Nqmm0RRLBRqLBtdW5eSGvkd2YWXktlzoUNQVKZHdlWcXVNNfGLCY+DxwR9hP3Zg retQ== X-Gm-Message-State: AOAM530vTGF9NZtoC4cTU5CahC3eCBAh6Jl/wEaR1kmbjzUgH3YTHrcT Hy0xqGAQTFRS3fZ0viwi672GBA== X-Received: by 2002:adf:e80c:: with SMTP id o12mr9790810wrm.425.1624612443122; Fri, 25 Jun 2021 02:14:03 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id c8sm5405961wri.91.2021.06.25.02.13.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jun 2021 02:14:01 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C04CB1FF90; Fri, 25 Jun 2021 10:13:55 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 4/7] GitLab: Add "Bug" issue reporting template Date: Fri, 25 Jun 2021 10:13:52 +0100 Message-Id: <20210625091355.25673-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210625091355.25673-1-alex.bennee@linaro.org> References: <20210625091355.25673-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42a.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Peter Krempa , John Snow , qemu-devel@nongnu.org, Stefan Hajnoczi Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: John Snow Based loosely on libvirt's template, written by Peter Krempa. Signed-off-by: John Snow Signed-off-by: Alex Bennée Reviewed-by: Alex Bennée Reviewed-by: Stefan Hajnoczi CC: Peter Krempa Message-Id: <20210607153155.1760158-2-jsnow@redhat.com> Message-Id: <20210623102749.25686-5-alex.bennee@linaro.org> -- 2.20.1 diff --git a/.gitlab/issue_templates/bug.md b/.gitlab/issue_templates/bug.md new file mode 100644 index 0000000000..e910f7b1c2 --- /dev/null +++ b/.gitlab/issue_templates/bug.md @@ -0,0 +1,64 @@ + + +## Host environment + - Operating system: (Windows 10 21H1, Fedora 34, etc.) + - OS/kernel version: (For POSIX hosts, use `uname -a`) + - Architecture: (x86, ARM, s390x, etc.) + - QEMU flavor: (qemu-system-x86_64, qemu-aarch64, qemu-img, etc.) + - QEMU version: (e.g. `qemu-system-x86_64 --version`) + - QEMU command line: + + ``` + ./qemu-system-x86_64 -M q35 -m 4096 -enable-kvm -hda fedora32.qcow2 + ``` + +## Emulated/Virtualized environment + - Operating system: (Windows 10 21H1, Fedora 34, etc.) + - OS/kernel version: (For POSIX guests, use `uname -a`.) + - Architecture: (x86, ARM, s390x, etc.) + + +## Description of problem + + + +## Steps to reproduce +1. +2. +3. + + +## Additional information + + + + +/label ~"kind::Bug" From patchwork Fri Jun 25 09:13:53 2021 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: 466831 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1264041jao; Fri, 25 Jun 2021 02:17:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjvern+J4WTMnBjyew7/tW3hXJapQ3fn3Kj6PXhchUmYp6AP/aUn3PEiZc4ZteQEj5ROaS X-Received: by 2002:a05:620a:29d4:: with SMTP id s20mr10438189qkp.287.1624612661170; Fri, 25 Jun 2021 02:17:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624612661; cv=none; d=google.com; s=arc-20160816; b=SMD2GwVX44ZvSWQLPIk4cGTEAsvOXWKpXhgZDmckn66kouTm6Dx9UCMNZPeo2ZMwgN naAS+eoqNrCD2gtKOIum0cELiryHLbkzLJDcENP1g0mpBFZktJS0S49AMj6Ym1WGRZ+J o5VF0MM/aFOsih3Echc3Rt1/nXp2+73TAPjhVXkO7iWe8dU3BJrOtVSTSmjg5WaWyXt1 zyX+U+EpIeBYan52tnbSDqxTEgwbsQmet2dGqRor4GtHtBett39NKTQDKdPWoT9TP/XT U5fq6zZ8dMHikoZGCWcAR44ONCY5elaBAuyFM+3kpCMPz67Elg1s0Qu7oeRn8WUKHOtS uWow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=jonKQhmSMkqSTTFdINa7PAmkJCWi21KE+KwnNcX2cII=; b=ZHWmvx9tbzAu3BIRxgYgmoYSjJ0e3LokLCQxnwJP2zGxt2d+sj/zSi652cOc87OARs DGxKgxp88tN0dHqcKX1aS+mDsPpIHELDvBnqMnqSpz1TrntLU2ZxD7Br7cJKi7gs4/h7 AcZWK0F65qk2/ncbCSH2HV/yp5rZQbeYU5Dz6pRIjqRYeFobexPZ+lKbudU4EuIsU0Mm FoHvaSIoAfxhVdrBBrhtHzH+2+TbADFmiZv2Wq68L6Xaa4mMN0/cl59lHJrLoZq0g18K NjOI79TlT6WbC+G6S+VM3d0Ci5pPam8nUkw2gKsj3voxrXxsZ7LylLikvRob2wzdR0bH JQoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VBGrW80Z; 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=fail (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 d14si4019488qtd.58.2021.06.25.02.17.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Jun 2021 02:17: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=fail header.i=@linaro.org header.s=google header.b=VBGrW80Z; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:33754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwhy0-00061V-JB for patch@linaro.org; Fri, 25 Jun 2021 05:17:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwhuZ-0000dD-10 for qemu-devel@nongnu.org; Fri, 25 Jun 2021 05:14:07 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:36815) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwhuX-0002y7-3o for qemu-devel@nongnu.org; Fri, 25 Jun 2021 05:14:06 -0400 Received: by mail-wr1-x429.google.com with SMTP id l12so9069313wrt.3 for ; Fri, 25 Jun 2021 02:14:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jonKQhmSMkqSTTFdINa7PAmkJCWi21KE+KwnNcX2cII=; b=VBGrW80ZB14hYV0PNdCNK0DBSaw3UmYBMpYrRVC9tp10WXl3GX21DdWMIyhYKihltB AyP/EL1EErEkrOqzcj7h19wYWaI2giAyoLBfvumPt6uLZuioFdUvfcCgLGD2dKiGhn+q mJmG/uoyDtP6XZt+ZlYJ0oyBrhzkua6QtKa6naj+KpQc1SwyRt5Y3l6wIwYuKNDL3ziV c6TuX7HGirsI9Xngd9F1QshYIuqPa9JtKFj+zuwRBfXezxZnc+DSNBezb9Fog9ak0iP2 FuK6rRJkITLWR+lFp/FrEupllrGN/b1JeKR65Vvl1qU3lHcGrsS/S6D4lhgE+hgdRTfv XzUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jonKQhmSMkqSTTFdINa7PAmkJCWi21KE+KwnNcX2cII=; b=WXnjJUk80ULn0/B5F3+FAYyhkcbVaCSM+lt1ttq1GpwijZsLagbrHRZOaVydCFJTbL JFqva64Rv6H8MADc/DgVbBeBCLXndqNhP0GP9BCAOwLvptErqiUperwrA8FXHaMhRm9Y gK6mOWMdpaxZcgAGVmDDCsNnuGC6iNUVONwaQn8zhHTcAB3cc7xLzaTabnZf9SCV+3rh KeYEOxzYsaxNR7WiVqkeISYHMpj0UKrPP7MArPMKYw9E/L0AWgbTMLVm0EeF5loVaiCY vPP4YFriiKMSkbyrdaw6SS791dz7wjEXuM3irwBxKRSz0Y25awejMthL8xaGyolI+4u6 ogdA== X-Gm-Message-State: AOAM530v1VFJaLwXsLyRUikrEM8O7M5vihgEFWQuk15Iy7qd91HbPi/W cjkoteXOAbt1nkECJlgaXPKWnA== X-Received: by 2002:adf:fac4:: with SMTP id a4mr9983643wrs.189.1624612443830; Fri, 25 Jun 2021 02:14:03 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id j17sm6624489wrx.0.2021.06.25.02.13.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jun 2021 02:14:02 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id D5A571FF91; Fri, 25 Jun 2021 10:13:55 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 5/7] GitLab: Add "Feature Request" issue template. Date: Fri, 25 Jun 2021 10:13:53 +0100 Message-Id: <20210625091355.25673-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210625091355.25673-1-alex.bennee@linaro.org> References: <20210625091355.25673-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x429.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , Peter Krempa , John Snow , qemu-devel@nongnu.org, Stefan Hajnoczi , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: John Snow Based on Peter Krempa's libvirt template, feature.md. Signed-off-by: John Snow Signed-off-by: Alex Bennée Reviewed-by: Stefan Hajnoczi Reviewed-by: Thomas Huth Reviewed-by: Alex Bennée CC: Peter Krempa Message-Id: <20210607153155.1760158-3-jsnow@redhat.com> Message-Id: <20210623102749.25686-6-alex.bennee@linaro.org> -- 2.20.1 diff --git a/.gitlab/issue_templates/feature_request.md b/.gitlab/issue_templates/feature_request.md new file mode 100644 index 0000000000..7de02dcc2c --- /dev/null +++ b/.gitlab/issue_templates/feature_request.md @@ -0,0 +1,32 @@ + + +## Goal + + + +## Technical details + + + +## Additional information + + + +/label ~"kind::Feature Request" From patchwork Fri Jun 25 09:13:54 2021 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: 466833 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1265918jao; Fri, 25 Jun 2021 02:20:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8deuprHdbaIVUbA5hxJGwGuN4BDE4rQ9AGKQZJiTQWE4JSDgbAuFvlz39WphrvI1iXw6n X-Received: by 2002:ad4:4b22:: with SMTP id s2mr10118686qvw.22.1624612832334; Fri, 25 Jun 2021 02:20:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624612832; cv=none; d=google.com; s=arc-20160816; b=NPoMj/JU+eRBDxavYWXcAQ0XYkcd/F09jmCUCcjS7ozmv98OGQnVXJhjSAYkUuIjG5 Rfrj2EXZmUWMwPZliNjy9FsUfBMBwixmdG3owEpqWMb2LHpBU3IThfTvfF2YxwzJFhL/ zbjFtRIragfjKtLxyzauDF/e/vEJ3vSGHdwyncEIb2oUQaRjv4t6HOVRhiToTmnA4+Wb 9on8MSmC9siXgqe+kkCNysj3Rx5IBJbUlArR7X6nbT/tlFRXvn1hTzCzmU0yM/7YwnPW 39BzWMz+rTTj+QYCeAA4RUe+kzP8kGR2sjO/MazzqDrVN60HxhJ90AFjZkmwtCS/pTMW wu+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=RiwmsClorkbOaoMh5w64DCeHLBIUZwprnnwBrOgDzNU=; b=anSkIx5oWzE/OpR7tcyccrL4TQdquPC+ceEg6oig7OQxa/23IyIRNyrLSRjP1nHePS Ej2YKlAmWCQxeYDYmnpUTL7PFud2bYk4i2K4SFL26POaHgmeF9uCiwHgS1Ioe/jpQoVs B9bkoLP29Ebrxol4KKzC180v+hYukUBTQDIY5xzcjaFxati7mLncS+ZqrfuTo4dsjDLS t7t03bTdDSecVXOxo9nlGfSEEiDQvnR7MdCjnehLZj2mrqh9uENXnEPD2tnSeodUSp6C wj7T717nJWzQdflJMdEcTZZUZyftLxpUgNkVYDS0yas9JoHyHjlStWy5e5tUECeP/5xc /8Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=nRlUPV+7; 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=fail (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 s8si4113881qvl.117.2021.06.25.02.20.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Jun 2021 02:20:32 -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=fail header.i=@linaro.org header.s=google header.b=nRlUPV+7; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:40620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwi0l-0002DO-No for patch@linaro.org; Fri, 25 Jun 2021 05:20:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwhuc-0000pn-Oj for qemu-devel@nongnu.org; Fri, 25 Jun 2021 05:14:10 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:43908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwhuZ-00030D-Tt for qemu-devel@nongnu.org; Fri, 25 Jun 2021 05:14:10 -0400 Received: by mail-wr1-x42c.google.com with SMTP id a13so9767948wrf.10 for ; Fri, 25 Jun 2021 02:14:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RiwmsClorkbOaoMh5w64DCeHLBIUZwprnnwBrOgDzNU=; b=nRlUPV+7ZN08c3ssbxwozBxsO9uN+MKSRnNZOW0koGD48BXPAX2FlmEf7U3C4VDYF6 yJo5Jcb9rjtG8RZRWFPKAkI3Ajv3KeOtMNLdL60elVaNzHC3QwgOxgF4M62g6d87k/q+ umDDFf4LENpooSG+FFphdqrSB+tyQrCw0DZoO8GQv5HCQ5+QOEIfRrxV9jfhbMu2Jqfh HP+r1oeKChtG+GJ8kSkVOcN1HYEQq1LfizNI3GvuLfZSd3/JRaNXtmRDLoXSQ6pd/jkW bAzyOlZK35vBqZ0QL8yIp/nnmU7Q70He4jwAaHA/QJTDz/QImFSD/SEiiEYwmBzB5aKr f3Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RiwmsClorkbOaoMh5w64DCeHLBIUZwprnnwBrOgDzNU=; b=TsKRSbZpw7WhpLgD3TSv8Vy1ujdG1SR7fz+cQkIvwU/q6+CkQnFxl/WxFrTSVUAn3y umVlkR2tzqK+dVYQJiSTaBadJDGEE1nxYnarD9TbWMIx1N/fJBd3coUFKtYD9oh7CZEN Vnn386NZi79WALGQqsdq29acynykNsTq4UCfCy1fG4mfoMsWf4Y0hxe/WOZiUKUehe4X cRn1YL5JpEpcVpk5nT4jrymEtxNM0DbsdGgCJe4b46KhCvaV0DQsiaUJrRwy/E7VfuNe LoM7zgaP0M6OP9g/nLy1rlatpTXkPW1PVA9EDdiuurFfAonUKNxgHZ62eCjr4GSYo5Zz HuFQ== X-Gm-Message-State: AOAM532K9/rYSh451PkpmmaqKBXOjFER6R8yR4G9TZXcMifx1/wb2SDD yRH6AyC+WXVCtjvz8zLwRxLcvQ== X-Received: by 2002:a5d:538f:: with SMTP id d15mr9763412wrv.408.1624612446575; Fri, 25 Jun 2021 02:14:06 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id 2sm10738368wmk.24.2021.06.25.02.13.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jun 2021 02:14:02 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id EF9341FF92; Fri, 25 Jun 2021 10:13:55 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 6/7] tests/tcg: skip the signals test for hppa/s390x for now Date: Fri, 25 Jun 2021 10:13:54 +0100 Message-Id: <20210625091355.25673-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210625091355.25673-1-alex.bennee@linaro.org> References: <20210625091355.25673-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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , David Hildenbrand , Cornelia Huck , Richard Henderson , qemu-devel@nongnu.org, "open list:S390 TCG CPUs" , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" There are fixes currently in flight but as this is getting in the way of a green CI we might as well skip for now. For reference the fix series are: linux-user: Move signal trampolines to new page 20210616011209.1446045-1-richard.henderson@linaro.org and linux-user: Load a vdso for x86_64 and hppa 20210619034329.532318-1-richard.henderson@linaro.org Signed-off-by: Alex Bennée Acked-by: Cornelia Huck Cc: Richard Henderson Message-Id: <20210623102749.25686-7-alex.bennee@linaro.org> -- 2.20.1 diff --git a/tests/tcg/hppa/Makefile.target b/tests/tcg/hppa/Makefile.target index 8bf01966bd..71791235f6 100644 --- a/tests/tcg/hppa/Makefile.target +++ b/tests/tcg/hppa/Makefile.target @@ -4,3 +4,7 @@ # On parisc Linux supports 4K/16K/64K (but currently only 4k works) EXTRA_RUNS+=run-test-mmap-4096 # run-test-mmap-16384 run-test-mmap-65536 + +# There is a race that causes this to fail about 1% of the time +run-signals: signals + $(call skip-test, $<, "BROKEN awaiting vdso support") diff --git a/tests/tcg/s390x/Makefile.target b/tests/tcg/s390x/Makefile.target index 241ef28f61..0036b8a505 100644 --- a/tests/tcg/s390x/Makefile.target +++ b/tests/tcg/s390x/Makefile.target @@ -8,3 +8,7 @@ TESTS+=exrl-trtr TESTS+=pack TESTS+=mvo TESTS+=mvc + +# This triggers failures on s390x hosts about 4% of the time +run-signals: signals + $(call skip-test, $<, "BROKEN awaiting sigframe clean-ups") From patchwork Fri Jun 25 09:13:55 2021 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: 466832 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1265861jao; Fri, 25 Jun 2021 02:20:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0Upn172gRwA6JCD1RViInMgIoc0ffnT0yenGxMRdzSS9ZkEAsZ+cjp/qg3SoCLzf2bSUL X-Received: by 2002:a37:3c2:: with SMTP id 185mr10437934qkd.140.1624612828497; Fri, 25 Jun 2021 02:20:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624612828; cv=none; d=google.com; s=arc-20160816; b=caAU7aQ+zVPXxkh7QfPjfujWLhdZrbsonLPwamwtkKhpQgUz95FUC+5XPtLcgazBnv JyGhlfPzkZ5jZVQH+HmlgEdJ6YF/GhtDOGZSsMdzILZTGTf7qxLgSq+ehP0TasK884wX VSv5X7tBzL/BfVpqWq10g/P1Vp6kqRJ4H8pkIBTP4Qj6u5m0IZ7DtPKPEmzjlRSEca0a uh61XN+y8Hjky3Qj49XcQGUV2ilaGUrj6ViGCLvX2wTsmTKrIa9fvU0iR3VJHxsODvdI NJAczWjyWGVJA/KD3MtBk5x9MscfJhzr6nO+rNiU5gxzAVFeIy9WCLpcEFAUJn2KU8Tt jr6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=nuaYXTg4/dBgDQ4lrFjh3sy+LtieNejFb8VKCFi7jGg=; b=CCQfEjtszVTEdg5E7Sf2ddCme77WhGRcJTZhzQ8H+tr06rdjQKVts4tog+lkDGuuuj 6C/MAOK1fZSX+6UAhoR9Qgd8VWnr10bkPXPISZC4BWAdll/bESMF3oU8MPs5YGlV2Y5V jpZ2/0oXkRIN14FaeVazjTjB3FPJMaA0nfi9K3VvKqEdOR/B6HasDqkE4Jyve8KhVTK8 FLw8y7OKqMWtzko+wLtV//LihVjqI51KD5yw3fVVX83TB4WiJCpSK0DiXfMedinfkW5a f7E6auAy1xRp0fvMq1DKtez5lIAO/CEh2NO/N54jXUaBnqfmYBmCM+ky++bf4ocyxCEP DRRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=mPL6TbPd; 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=fail (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 m15si4219883qtq.113.2021.06.25.02.20.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Jun 2021 02:20: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=fail header.i=@linaro.org header.s=google header.b=mPL6TbPd; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:40252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwi0h-0001y3-US for patch@linaro.org; Fri, 25 Jun 2021 05:20:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwhub-0000kk-A4 for qemu-devel@nongnu.org; Fri, 25 Jun 2021 05:14:09 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:39814) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwhuZ-0002zo-B8 for qemu-devel@nongnu.org; Fri, 25 Jun 2021 05:14:08 -0400 Received: by mail-wm1-x32b.google.com with SMTP id l18-20020a1ced120000b029014c1adff1edso7986704wmh.4 for ; Fri, 25 Jun 2021 02:14:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nuaYXTg4/dBgDQ4lrFjh3sy+LtieNejFb8VKCFi7jGg=; b=mPL6TbPdmvFgWghaFtK9AcxZMQ0AL9+CkOnMm48yikiwBklmZ7ZMZ1fsPWo/MX3JjJ l98aHWw+CSaPUpXwEJAO133Igvk82ZQhGPUs4bWaIZFcLlTquNhskwHbosndWze7NEF6 JNeiTBAD6yo5q/aXHsTieCb5xgBP8yUMWOhlwOWdNVgyqEo6okotV8EFCA+7SP5txJYR rhSQCMXXqYm5B6BIiia0oq7aRRBnd1Abe89XDibeAiT6g9jtBV2Kj9IQC5xvyO9nnGs9 1I64zvU8ESCwBJkqWYUsiEb03rJRsgv7NRUEfuWOanFzVUW0EC7ELOmNZuunPvzbtwff VT9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nuaYXTg4/dBgDQ4lrFjh3sy+LtieNejFb8VKCFi7jGg=; b=bEbC9CpfZI4ZBrSdhoMjoSBlh9BLPn95jiWqRjC8NhjW2p/v0nCt2ZHGRBZj3tcR2G 6Pw+YymJAQQ8pi3pJKr67GxSy+DtvIDNuuDIBLISSlZfNMrzFGwKy4KL7HJb9gskDSmH nKhRdunkeu2+y9+NxeEyOalAptAq/1Wn1k+RwKyJ2t8leqFUMHW6Gpja++/VWLQHB9BD vha/8k+nl88QUNtTel95oQcD0rXfUEHf9cQty5ycjiLn6+VVsThLldTF1EDWparuaiG8 aSj5cCvL1dB9J8HE/EXxV/qY0sEL4xVWYok6XrBl4RVinraIBatvZC269rRVun/0K1I0 mZ0g== X-Gm-Message-State: AOAM533DqdG+zHU/EDhdDZKnjT9jg/1wbP4L7Ut4ldeGhBb9pHNtztx8 hJ7UFptmzzB41SBLgDgIOQ1FsDDVfX9VsQ== X-Received: by 2002:a1c:4682:: with SMTP id t124mr9231718wma.94.1624612445917; Fri, 25 Jun 2021 02:14:05 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id m67sm11273088wmm.17.2021.06.25.02.13.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jun 2021 02:14:02 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 143601FF93; Fri, 25 Jun 2021 10:13:56 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 7/7] plugins/api: expose symbol lookup to plugins Date: Fri, 25 Jun 2021 10:13:55 +0100 Message-Id: <20210625091355.25673-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210625091355.25673-1-alex.bennee@linaro.org> References: <20210625091355.25673-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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mahmoud Mandour , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is a quality of life helper for plugins so they don't need to re-implement symbol lookup when dumping an address. The strings are constant so don't need to be duplicated. One minor tweak is to return NULL instead of a zero length string to show lookup failed. Signed-off-by: Alex Bennée Signed-off-by: Mahmoud Mandour Message-Id: <20210608040532.56449-2-ma.mandourr@gmail.com> Message-Id: <20210623102749.25686-8-alex.bennee@linaro.org> -- 2.20.1 diff --git a/include/qemu/qemu-plugin.h b/include/qemu/qemu-plugin.h index 97cdfd7761..dc3496f36c 100644 --- a/include/qemu/qemu-plugin.h +++ b/include/qemu/qemu-plugin.h @@ -525,6 +525,15 @@ qemu_plugin_register_vcpu_syscall_ret_cb(qemu_plugin_id_t id, char *qemu_plugin_insn_disas(const struct qemu_plugin_insn *insn); +/** + * qemu_plugin_insn_symbol() - best effort symbol lookup + * @insn: instruction reference + * + * Return a static string referring to the symbol. This is dependent + * on the binary QEMU is running having provided a symbol table. + */ +const char *qemu_plugin_insn_symbol(const struct qemu_plugin_insn *insn); + /** * qemu_plugin_vcpu_for_each() - iterate over the existing vCPU * @id: plugin ID diff --git a/plugins/api.c b/plugins/api.c index 817c9b6b69..332e2c60e2 100644 --- a/plugins/api.c +++ b/plugins/api.c @@ -233,6 +233,12 @@ char *qemu_plugin_insn_disas(const struct qemu_plugin_insn *insn) return plugin_disas(cpu, insn->vaddr, insn->data->len); } +const char *qemu_plugin_insn_symbol(const struct qemu_plugin_insn *insn) +{ + const char *sym = lookup_symbol(insn->vaddr); + return sym[0] != 0 ? sym : NULL; +} + /* * The memory queries allow the plugin to query information about a * memory access.