From patchwork Fri Mar 10 19:52:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 661643 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp1033456wrb; Fri, 10 Mar 2023 11:54:16 -0800 (PST) X-Google-Smtp-Source: AK7set/mSwkwOqxbePN3fWynJGx2SvWEqH6dmz8ogJImEFsIdNR8LiT9TDxHP69uQq+8iNgvSIDE X-Received: by 2002:ac8:57c4:0:b0:3bd:1a07:2086 with SMTP id w4-20020ac857c4000000b003bd1a072086mr14460804qta.36.1678478056449; Fri, 10 Mar 2023 11:54:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678478056; cv=none; d=google.com; s=arc-20160816; b=AVjO/tAnK9mzE2Xw9Ppa+qSL3T8fFywIIgWt8RrDcUot0fODe+DHZpHz93b40gYI+N JCEGTyE/M7KPvuQgqPXBSJn2M05/lhOXS9/8sYTAaqVK/xpOYuw8Q++FcEm1Gdkt8o62 0n/9RP6n7vMoLQS0LztlskGhVrKCpSe0FQTsHYA8wGWcFrKQW/E7ATmQgeIk4/5B+3ET LHdtOsi+h0RjJECtlci4dj7lqxcm9l3Vn0dIAzVWehkRlTG8j9BxfDY7IyJfteZN9VOL s7RHhvqiiw3N/fm41MlUd9RglWwXV7wgtKk556PyZO/kgh5xHa4OTWYyi+n63bqrjEzL 4IFQ== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=n2ldLpi0//dw1v+GWWc+CD5NADqZ1XFTEPmDyXqgJG0=; b=qa1FG/VHUtmwqgjk1lD91WywwqG0PuoI6gRCfVAud3n3uDBHjmsBiNlpEeLGEOJLFZ Nr41/CpRbZwHHVRFP2TEgU5VsItif+vvDBPpc2UE8atsHA2RODXKr0hyu93JPptN2GRP GZ9/XAkl7Cj1z5fHFhRskpu8C0lr9uXCgKJLJmkGU4OTGVzzlNuvaU9sR1wjtOqft0sm 7hCPGmqGhriVJXhKvUzkL4+d6TR288C6+r3TL9duPTPyymkHi/2QHdQWZJL/nCC41UZR YHsOHe2c/wH66ZKHHsjq1zAfNMo7Bkm2sa5nwe4MgPndBG1MHpCvBBIJuF23AvaqEqCG 57eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yKmi0Qyn; 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 d6-20020ac85d86000000b003ba201d92c0si542894qtx.124.2023.03.10.11.54.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Mar 2023 11:54:16 -0800 (PST) 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=yKmi0Qyn; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1painT-0001FU-O8; Fri, 10 Mar 2023 14:52:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1painR-0001Ed-Jt for qemu-devel@nongnu.org; Fri, 10 Mar 2023 14:52:57 -0500 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1painQ-0004eM-4N for qemu-devel@nongnu.org; Fri, 10 Mar 2023 14:52:57 -0500 Received: by mail-pj1-x1032.google.com with SMTP id q31-20020a17090a17a200b0023750b69614so6164406pja.5 for ; Fri, 10 Mar 2023 11:52:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678477973; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=n2ldLpi0//dw1v+GWWc+CD5NADqZ1XFTEPmDyXqgJG0=; b=yKmi0Qynh2F/IADM4ggKI/HdBbYpDM6jkOnVhve5L/R9EwPs3kWKvUoJ9rUTzljxqZ O/R1c6H2cKxyaUtH3rC5dJ8POdM4E5N2daiBdUdhLpnsI2hXxua+jTz7hjEeHDfqGnUC LGKzPOqBYKx/6oQAKS9b7LqxY++5XsxRd84+m9Os8Dj88i/2UaWoYzv/hEiuPcF5942Y M21Z18XphRxN8thybPkJYmAw6+MAEv8nhE1//W1qozP8vp2Gb4G5ggKdgVUtky/bVCsL GXBlJp5TW4BNo3TUWwgbdkqz39DKzJmUlxSJEM1i7pjxVtr4EXFGxGE0TpOM9TVqu/gS VeYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678477973; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=n2ldLpi0//dw1v+GWWc+CD5NADqZ1XFTEPmDyXqgJG0=; b=yU0UFq9y6CFCRHt/GERaU6x5r4tzSCNsm9fAbnj48RXpyoENlNYj4HRtJjF+E42WuY gLU2HHKF6yuWrA3dYTl++pYMUmicJEEisvbYPbemEeikHKWBWk8dDfyzccuW4p/aNiRH bBxyF9g+oZGQGTx87Pl+ewHaR304pViJl4Ark5GdVpiPm7mWuzm9Vuy9WrcTWfuj/0vp 9ZdY6s3xAopaYF5c//f3Zshw7awexjHsZ1m/L4N3pTcug8n8v/+E2YGhWwegWSfg+1OO 6pTuNn/Y4GErZpgjPnZMyyUoqHWOfXqpxpZFtNz7PlDfxTxWjU4duykOIFO7xcGWScTr k0/g== X-Gm-Message-State: AO0yUKVKXPAplyG2gC7YbMNZS/4UJWI19vzuvh/KYuHH+8zIhnP10txA LfPmkjBkNRlbmBHxFfeJTX+f10vBISjKtLMI9pI= X-Received: by 2002:a17:902:db05:b0:19c:da7f:a238 with SMTP id m5-20020a170902db0500b0019cda7fa238mr33014847plx.31.1678477973373; Fri, 10 Mar 2023 11:52:53 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:cc1c:ced1:1ec5:bd62]) by smtp.gmail.com with ESMTPSA id l1-20020a170903244100b001991d6c6c64sm351465pls.185.2023.03.10.11.52.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 11:52:52 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: cota@braap.org, alex.bennee@linaro.org Subject: [PATCH v2 0/7] plugin: fix clearing of plugin_mem_cbs on TB exit Date: Fri, 10 Mar 2023 11:52:45 -0800 Message-Id: <20230310195252.210956-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1032.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-bounces+patch=linaro.org@nongnu.org Changes for v2: * Use plugin_gen_disable_mem_helpers, * Remove plugin_gen_disable_mem_helpers from tcg_gen_exit_tb. * Break include loop with hw/core/cpu.h and qemu/plugins.h. * Inline plugin_gen_disable_mem_helpers. r~ Richard Henderson (7): tcg: Clear plugin_mem_cbs on TB exit tcg: Drop plugin_gen_disable_mem_helpers from tcg_gen_exit_tb include/qemu/plugin: Remove QEMU_PLUGIN_ASSERT *: Add missing includes of qemu/error-report.h *: Add missing includes of qemu/plugin.h include/qemu: Split out plugin-event.h include/qemu/plugin: Inline qemu_plugin_disable_mem_helpers include/hw/core/cpu.h | 2 +- include/qemu/plugin-event.h | 26 ++++++++++++++++++++++++++ include/qemu/plugin.h | 27 ++++++--------------------- accel/accel-softmmu.c | 2 +- accel/tcg/cpu-exec-common.c | 3 +++ accel/tcg/cpu-exec.c | 5 +---- block/monitor/block-hmp-cmds.c | 1 + cpu.c | 1 + dump/dump.c | 1 + dump/win_dump.c | 1 + hw/arm/collie.c | 2 ++ hw/arm/cubieboard.c | 1 + hw/arm/musicpal.c | 2 ++ hw/arm/npcm7xx_boards.c | 2 ++ hw/arm/nseries.c | 2 ++ hw/arm/omap_sx1.c | 2 ++ hw/arm/orangepi.c | 1 + hw/arm/palm.c | 2 ++ hw/core/machine-smp.c | 2 ++ hw/i386/sgx.c | 1 + hw/loongarch/acpi-build.c | 1 + hw/loongarch/virt.c | 2 ++ hw/m68k/next-cube.c | 1 + hw/m68k/q800.c | 1 + hw/m68k/virt.c | 1 + hw/openrisc/boot.c | 1 + hw/ppc/spapr_softmmu.c | 2 ++ hw/riscv/opentitan.c | 1 + hw/riscv/shakti_c.c | 1 + hw/riscv/virt-acpi-build.c | 1 + linux-user/elfload.c | 1 + linux-user/exit.c | 1 + linux-user/syscall.c | 1 + plugins/core.c | 11 ----------- target/i386/cpu.c | 1 + target/i386/host-cpu.c | 1 + target/s390x/cpu_models.c | 1 + target/s390x/diag.c | 2 ++ tcg/tcg-op.c | 1 - 39 files changed, 79 insertions(+), 39 deletions(-) create mode 100644 include/qemu/plugin-event.h Reviewed-by: Emilio Cota