From patchwork Fri Apr 8 16:47: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: 558847 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp495057map; Fri, 8 Apr 2022 09:50:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMeMh72yjzeYk8yx6ikyE8WMhsTYjk6TWCP3ECpBu9eXl9eP5vsMp43s+uOlApQcIHNNzC X-Received: by 2002:a25:ab26:0:b0:640:6b88:87e5 with SMTP id u35-20020a25ab26000000b006406b8887e5mr2945634ybi.524.1649436604147; Fri, 08 Apr 2022 09:50:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649436604; cv=none; d=google.com; s=arc-20160816; b=H9c+Jpj0wRvm7tg+FvAoVP1HPFmkJ7OXeoDGqyghqRTuF1dGrG1XgWKAEjqgscEliR +CTHN7Lmgr3l99t/4lf4S4mFRCV0J4sxL64HOkm8J4rO3y8iorocMAgFjphQVxZSfoTv K+aFcZ6BZCgRF4VZFXIxOmupqb0/uSMxwk/UohR9dl8mQs96zpBABqrSahCRD1tm/nbU tlsYzk5Qlek8IQHLis5oLUwMKpc0cjvlRjYyg/NZYmqK5fu+g8WwXD4aGezelXNJNnGI sLlNvhvz2Qs4Ip/S6gHWTt02Qtabe6DwRsL8CYvIp5PVtWo4bnB0HkfvtMcjVEjknV2s ozYA== 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:message-id:date:subject:to:from:dkim-signature; bh=+NXXJZJLZnxQ9an+f42U4NqOGgJkQdJhnpEvmUDUw2w=; b=yO5bCJk3ca8z2vpeJ1o3RI9OnvORjDFnJxrw42Avcqxa33+S3+HpBlZtlZKcY3OOWl C5gC3uFtTDZ3Cg/339TlT+sBmTP4aln8pIrzQnmThwRfQQwiFpd9z4tvggdC5+068rJ0 BxUc8HvPmmN3nxgDElnZuOTakw761K8KDp+M80JeeQ0qGNFgZhgeh+CqTcuBAdkoT+JP 5KyyL1c5F6/GUc1xn3yFVdUkFE8g49Q3UJa2NvdFqgi+uz0S2W39GbCiMi5+4CrX227l 885ejnGAvRQtBO4QFw4LKlqjg8sNV4SLqvAgUbuhcqMShkIV91fiw+BZDeuy93Y3WRgO rdAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=DFv7U7Rh; 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 s6-20020a252c06000000b00640607fd153si904901ybs.180.2022.04.08.09.50.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Apr 2022 09:50: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=fail header.i=@linaro.org header.s=google header.b=DFv7U7Rh; 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]:54484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncroB-000739-I6 for patch@linaro.org; Fri, 08 Apr 2022 12:50:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncrlz-000730-Q7 for qemu-devel@nongnu.org; Fri, 08 Apr 2022 12:47:47 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:33338) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncrlx-000314-RX for qemu-devel@nongnu.org; Fri, 08 Apr 2022 12:47:47 -0400 Received: by mail-wr1-x432.google.com with SMTP id c7so13887484wrd.0 for ; Fri, 08 Apr 2022 09:47:45 -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:mime-version :content-transfer-encoding; bh=+NXXJZJLZnxQ9an+f42U4NqOGgJkQdJhnpEvmUDUw2w=; b=DFv7U7RhE/TVm5ZovbHW5LIIIxpI4n31GbZjAtJ7Lw8Mpz4pGi9ZtkBx0+FRgLkLpZ 97wsSGFC3CNP4ZlxGk2an9nF0bMv8bxFl7eRY67yXBK/UZ48ACcKOOQMWkwdiy3jjdBT dlDt3+4z/KhF0/Jsq7sCvlG5r/44sGVa/YrdpGCvQp8mr8d2/pLkHibnHpZ/uk+9gOAt L3L6WFnezzwDQA8omJq7EIt14xI9VryR6Mkk3wvijNn3CYIGYiq2mvQa3yABkyhkgQT1 WYwM0eTHJSeM30ei72Ek0TVRqct6ngOE5CakgrKmF40F7WLXdu8rxyLrtdyY4veo238m MJ+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+NXXJZJLZnxQ9an+f42U4NqOGgJkQdJhnpEvmUDUw2w=; b=nJMjSiABoq+JLMNlREfkeFw6bI6f1bdN/qJhTsM6gBRPfXZnbXa9miyPFWfsGoKugU JgY9zvs+ymkAABI1buAw5KzxXLuEc32DxBOuyhKLZTFfLl7cSfz6+M0MSXO+4tX9YmJl xQ/1vp4WtJfmJAl6mJXKmjVPHUe/O8w2t/W9QNLHjE/iIA6L9vJtxF50KXV75A6xRnrP RSdOY8uPfnv0TzdR3dvczRMjJgnHRNpXjjF93nMM/K5Lc9xnbOMfxTVtXJcp2UEt/iBC Nx8i0juhszAPhzSLAUIyvPs2zv4vVuARiLr6MeVs3p/u6apEYdeNFRUGEeJv6mg3sfRy txmw== X-Gm-Message-State: AOAM532tXxcaJKKxKGZiR/nmgGhY2uIE9G+o0rDbBDQbJ3OcN1Rd8zgc 3CyuJ0ifKFY7YTRrWvcmj26/IQ== X-Received: by 2002:adf:f60a:0:b0:206:1201:e223 with SMTP id t10-20020adff60a000000b002061201e223mr15427049wrp.712.1649436464259; Fri, 08 Apr 2022 09:47:44 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id g16-20020a05600c4ed000b0038ceb0b21b4sm13320496wmq.24.2022.04.08.09.47.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 09:47:43 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9E48D1FFB7; Fri, 8 Apr 2022 17:47:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 00/15] testing, docs, tracepoints and cputlb hacks Date: Fri, 8 Apr 2022 17:47:27 +0100 Message-Id: <20220408164742.2844631-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, stefanha@redhat.com, crosa@redhat.com, aaron@os.amperecomputing.com, robhenry@microsoft.com, f4bug@amsat.org, mahmoudabdalghany@outlook.com, minyihh@uci.edu, cota@braap.org, Luke.Craig@ll.mit.edu, pbonzini@redhat.com, kuhn.chenqun@huawei.com, ma.mandourr@gmail.com, =?utf-8?q?Alex_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Hi, In anticipation of the tree re-opening soon I thought flush the current state of my maintainer trees. We have a change for testing, a couple of documentation updates, some refactoring of disassembly handling and additional tracepoints for diagnosing cputlb issues. There is also a hack for speeding up UEFI boots which I suspect will never be up-streamed but may serve as a prompt for further discussion and more refined approaches. Currently the following patches need review: - accel/tcg: add heuristic to invalidate al TBs in a page [hack!] - tests/tcg: add memory-sve test for aarch64 - accel/tcg: add tb_invalidate_phys_page_range tracepoint - cputlb: add tracepoints for TB invalidation - cputlb: add tracepoints for the protect/unprotect helpers - disas: use result of ->read_memory_func - disas: generalise plugin_printf and use for monitor_disas - monitor: expose monitor_puts to rest of code - accel/tcg: add tb_invalidate_phy_pages_fast tracepoint - accel/tcg: move trace events to correct location - docs/devel: drop :hidden: and :includehidden: tags - docs/devel: add some notes on the binfmt-image-debian targets - tests/avocado: update aarch64_virt test to exercise -cpu max Alex Bennée (14): tests/avocado: update aarch64_virt test to exercise -cpu max docs/devel: add some notes on the binfmt-image-debian targets docs/devel: drop :hidden: and :includehidden: tags accel/tcg: move trace events to correct location accel/tcg: add tb_invalidate_phy_pages_fast tracepoint monitor: expose monitor_puts to rest of code disas: generalise plugin_printf and use for monitor_disas disas: use result of ->read_memory_func cputlb: add tracepoints for the protect/unprotect helpers cputlb: add tracepoints for TB invalidation accel/tcg: add tb_invalidate_phys_page_range tracepoint tests/tcg: add memory-sve test for aarch64 plugins: extend execlog to filter matches accel/tcg: add heuristic to invalidate al TBs in a page [hack!] Richard Henderson (1): plugins: Assert mmu_idx in range before use in qemu_plugin_get_hwaddr docs/devel/index-api.rst | 1 - docs/devel/index-build.rst | 3 +- docs/devel/index-internals.rst | 1 - docs/devel/index-process.rst | 1 - docs/devel/index-tcg.rst | 1 - docs/devel/index.rst | 2 - docs/devel/qtest.rst | 1 - docs/devel/tcg-plugins.rst | 9 ++- docs/devel/testing.rst | 38 +++++++++ include/monitor/monitor.h | 1 + monitor/monitor-internal.h | 1 - accel/tcg/cputlb.c | 16 ++-- accel/tcg/translate-all.c | 38 +++++++-- contrib/plugins/execlog.c | 96 +++++++++++++++++++---- disas.c | 43 +++++----- disas/capstone.c | 73 ++++++++++------- plugins/api.c | 2 + MAINTAINERS | 1 + accel/tcg/trace-events | 10 +++ tests/avocado/boot_linux_console.py | 25 ------ tests/avocado/machine_aarch64_virt.py | 51 ++++++++++++ tests/tcg/aarch64/Makefile.softmmu-target | 7 ++ tests/tcg/aarch64/system/boot.S | 3 +- trace-events | 4 - 24 files changed, 314 insertions(+), 114 deletions(-) create mode 100644 tests/avocado/machine_aarch64_virt.py