From patchwork Wed Mar 1 02:47:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 657731 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp3266976wrb; Tue, 28 Feb 2023 18:48:47 -0800 (PST) X-Google-Smtp-Source: AK7set8/5n914p+t1h131IkubGzQZ9Df1yQZwHqhBa5x1s2ZhxnD3P2mKbpU8y5vP2q6FS4UIY8K X-Received: by 2002:ac8:5bcc:0:b0:3b8:4adb:c604 with SMTP id b12-20020ac85bcc000000b003b84adbc604mr8937657qtb.14.1677638927068; Tue, 28 Feb 2023 18:48:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677638927; cv=none; d=google.com; s=arc-20160816; b=k3jM8Du+nfCHqxW0KL5JTY7LvC21Hlx2lKdArN9cetmwqecC9ONoiirPA/kIlkVhiZ 2mI0OgWwc0afjWTc5YW3vddDljah6vKgpJwy2SIuwHnrxmyQUFCs02uF8+NHDWmkQ3ki 9IZbjBa+QWmCz0QJq5S+o+oHb2ALSU4s/vWwpIQnpIRHhRyHcOTbtlSGyjjxkpMiFNpy uqAf1IrsYQ79k94KRMj0PE6qjDlcgy1f9a705DUG6wfbLFHAy2mwmC7dRC44oLqmW75T qRadcKyDU52aw3W8eb5zqut4bUDuHtgwqGw1Wio6EN2MjC4dbpM7CA4qFPWv+gqPIuja Dfww== 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=RT9ZGPqWs1Dvsf1Syxd+U8qeK/p/Ema/L7McQtUFZ+Q=; b=S8aUsVHS46lgknZxdmXpvMdWYMTN9+3p3rCZq5xRxupxaIuNDokL1sjNtpY4n2bl51 zuOqu0Jn6fYPTibi/OuPeGNxPSMBG7ZTGzukeD8D/zNC52hnqztduXBMAHWN9KpKj6R1 oGNQmBLONs1vNiW0wlTsqe2X3XVtSX2pTlKqqWAgVU1Q0Km4Tw+qqhgOHgTvLLAgQaWb bRW86nSlKvauOI2WSdiZU8bzbTIcMvsGzlX2UtwkZXdaKEv63CMfWwZBfSHosRlJcVWM M7UOW68AVA4uRhzFQnhth8AWKpv2lQtq/hZxJWB6gGczqp2KHeamOKv9wyuDF8KokcVX u30A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nGyV1mRX; 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 t127-20020a37aa85000000b0073ba68d0664si8835540qke.567.2023.02.28.18.48.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Feb 2023 18:48:47 -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=nGyV1mRX; 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 1pXCVO-0005VJ-6O; Tue, 28 Feb 2023 21:47:46 -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 1pXCVM-0005VA-Qr for qemu-devel@nongnu.org; Tue, 28 Feb 2023 21:47:44 -0500 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXCVL-0000gF-7t for qemu-devel@nongnu.org; Tue, 28 Feb 2023 21:47:44 -0500 Received: by mail-pl1-x631.google.com with SMTP id h8so9241621plf.10 for ; Tue, 28 Feb 2023 18:47:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=RT9ZGPqWs1Dvsf1Syxd+U8qeK/p/Ema/L7McQtUFZ+Q=; b=nGyV1mRXSjxoSidV3IWplMBWAPmI6kJ1Dt10NIrBEB22dzx8hV3BliaEqM4xyxfjAU iKGIYID8hY11nUQcpxNDE53fP2poyAflK5QA7LcgAErcPyDFr/Q+nlXsI0nK1i2NUrtp 710ofCPwUw2ib3YT137FBfLjd8xreCH9rVGDFxNG9CJyM+Mi9GtE7GDD0uDtc4vPjqu0 moWgRGFORUJ5BmQwunByHlOsVTYsmwOlpfRUMnD8rScoWkk5yxeYu9Wkz4Gp7SZToD+0 PnSVU2sBHrUZnsBgoEE4seKf9S2wpI1iwcYTtBkltDPtVd9eGF283f9J/SzBzEfeBeV4 6q8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=RT9ZGPqWs1Dvsf1Syxd+U8qeK/p/Ema/L7McQtUFZ+Q=; b=USBIUrRsjeKHvtPQzIG9fshwOKuzJyuuS7P3grVjHLAM3ebJ1TEx09TORjxWLtcIgc D7xAqKddr/nYjzHOV1iL/NwKVt54XKbK/G9zbcK28FXWU+rnkhKHO+pgihQ5bnUytBZ0 SA+/+037wdLR41rm/aDXASLxE6SM8vjhJZUMqn0GbqhUpnlkLntHRAKZ/Xk56PTsQ7BL pfnnXrVmNNLe8UdcbBD5DpLdPAEL41L0NCQGx8MlBxG0lm/hHGxPRvElgHFkacIar1dj dlrrm7oHSvFc/vck+duTE50bVOQxVADuYT5q5HLXFq0yRX6ydVZxTkcO5LkFN2I82S8y UxAA== X-Gm-Message-State: AO0yUKWTMi+MLkpnMvxzQ7CYnd0cggigo6pvo7mo8Mu/ZDsz2sDhz2pU FrjgxnTtUrVXkcVd3r1+rWuVzuML5245fbMm2Qc= X-Received: by 2002:a05:6a20:a028:b0:c0:53f7:7d16 with SMTP id p40-20020a056a20a02800b000c053f77d16mr5967055pzj.39.1677638861530; Tue, 28 Feb 2023 18:47:41 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id y18-20020aa78052000000b005a8aab9ae7esm6708449pfm.216.2023.02.28.18.47.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 18:47:41 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: cota@braap.org, alex.bennee@linaro.org, aaron@os.amperecomputing.com, frederic.petrot@univ-grenoble-alpes.fr Subject: [PATCH 0/2] plugin: fix clearing of plugin_mem_cbs on TB exit Date: Tue, 28 Feb 2023 16:47:35 -1000 Message-Id: <20230301024737.1210851-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::631; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x631.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 Supercedes: <20230222043204.941336-1-cota@braap.org> ("[PATCH] plugin: fix clearing of plugin_mem_cbs before TB exit") Let's handle this as we do can_do_io, and reset the value in C. r~ Richard Henderson (2): tcg: Clear plugin_mem_cbs on TB exit include/qemu/plugin: Remove QEMU_PLUGIN_ASSERT include/qemu/plugin.h | 4 ---- accel/tcg/cpu-exec-common.c | 4 ++++ accel/tcg/cpu-exec.c | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-)