From patchwork Sun May 2 23:57:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 430517 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp2389572jao; Sun, 2 May 2021 16:59:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQMdtX2VDLSnuPcte34mhoivSoRejKAvWLt2WjvBzYTKBFZrFkPOvJbX94EoOvAY2etR6U X-Received: by 2002:a02:c912:: with SMTP id t18mr15807439jao.100.1619999992210; Sun, 02 May 2021 16:59:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619999992; cv=none; d=google.com; s=arc-20160816; b=bVaLZjOiKI01W88/7umPoYJfHEuAXPdfcwAd21Ef3rmJOnaDX1Yzh0RP9GZrJSEmF3 KdkT7A+0PyIVb/T77sgcfH0qbV/2/8cXx4WybFgwr/a7EFEQ4mCarf6vyh4HvzD9jsfm ryAu/yANxpf3xieYD6DljSwrmijS9Uvf2ChBwrrVBvStiJR6UytyPXtKoePMKHR2dd7o alZ8EG6cLO5cE9GKJZw4WfMDexkq7ne9HazVgDJOKZLmexcK/TQ14G86DM0X/pwZdq+n i+NB366sCBclI7pWuLj5lqxMFW42c9nziIM7xi0BxA0PvCIHd7DIziX6739o3QMYi+2I trZA== 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:to:from :dkim-signature; bh=uSGurxfI6VXxBzXiAREHINIQr8uowwdNrl8Mp3grGmI=; b=fVeQyA0utUR7ZRf5o9J3vol8POG298tuo61SpCMoTuh+Tfn0EAo1vUiWEHxWSZ0wnw 3ZON/rdZ1E4A3TBZgwhxAbGDFdFzlBy7OMMEg7wGtckwCTno99eFj4sAwphdToPuRygj wZAaOUDp9YDXzQx+VeB1NmhIAAZelyek/6fTt9d/J79jObGXU8/CGBprZnJLMwrdEepb npC5tuUKLNzxdHmoCCwPncLFJhNchuNqyJoxZP5ywhbNkXpKkZviroWzwQjrNKzGhCxR CqaI7Rcy3eZjfDDMpOFEKnNwFtwCgGfwtQHDJ/NxW8K2SrWNN4W0qbQaljXG4kSK1rq9 fupA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aWrqnq+A; 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 b5si12246226ile.66.2021.05.02.16.59.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 02 May 2021 16:59:52 -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=aWrqnq+A; 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]:60408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldM07-0002Pu-MM for patch@linaro.org; Sun, 02 May 2021 19:59:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldLxw-0007Xe-HJ for qemu-devel@nongnu.org; Sun, 02 May 2021 19:57:36 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:38654) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldLxt-0000Xr-MO for qemu-devel@nongnu.org; Sun, 02 May 2021 19:57:36 -0400 Received: by mail-pl1-x62b.google.com with SMTP id y2so1893390plr.5 for ; Sun, 02 May 2021 16:57:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=uSGurxfI6VXxBzXiAREHINIQr8uowwdNrl8Mp3grGmI=; b=aWrqnq+A8RWWhDev8qRu/qEd3AMd2tYItPVC709RzYCY4gCPsQSo2Oa4fTn2NUYHGS sRGPXV2s54sEtHXL58yc61ZFwO4eJGshkc64z6bPRMY87q2bGvEZ+qeUbDzs+Hx8FLG0 BCVqPHPD9xUFtfzfP1gDhFOCvlfmM0H3BXKljbdAvIJ5CqfMQE/SFWofF+Cpb53gq7Cl vHXyD9HQRpMr04wX5BRvdc2CGFozmtA5pvvT+zL9TLKrhoXnTE6eVPDdxB3f/A3WI9Xa PstZwD1WK5Sk9T0S75Tb/vGXZ4rOYdflJhgjOADZ+z4oPl5iRTWMhvjYtvEkYHZxDGAY mwNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uSGurxfI6VXxBzXiAREHINIQr8uowwdNrl8Mp3grGmI=; b=l0SsMiNPMGStHDczmmUgcnJx4gKJA8NMmAp0HBZw2SAKjZM0jMap0G5oK+6r7x3+7f /CwhzpMmIWKb4180fttuQRPL8F3VKKX39f6KAjrmVL19npVvr87aFA1V5TtBEcvzTcne KZCoK+0JLwebB7tYgUWOMt222tagysNGR4+R8fbYelFMJhk3X/zvdVrx60p4UGYuE58L aJ23s29h6jkjXL2wGOdv7Pei1gzjGNOMpeSmp+6Rt+D0cbZafn7ld5AwIcYBY65vOSMF BD7Ugqmd4bYWtF77WdHVb8QdrKbs4t6xvzMLjQtFZdyyCTVPYVHQ0/T/ypvKV8Uci4zx F2Xw== X-Gm-Message-State: AOAM530yvpw7r/uExBJOXEwqtCXuz5Aqa6U+iLZ0/J1TbhxBWb82zyGj BbTXdkzHtI9XsEhPwwP71ehBB8UHZGxN0w== X-Received: by 2002:a17:902:ec87:b029:ee:910d:acf5 with SMTP id x7-20020a170902ec87b02900ee910dacf5mr17519204plg.66.1619999852444; Sun, 02 May 2021 16:57:32 -0700 (PDT) Received: from localhost.localdomain ([71.212.144.24]) by smtp.gmail.com with ESMTPSA id t184sm8098054pgt.32.2021.05.02.16.57.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 May 2021 16:57:32 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v6 05/26] accel/tcg: Add tcg call flags to plugins helpers Date: Sun, 2 May 2021 16:57:06 -0700 Message-Id: <20210502235727.1979457-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210502235727.1979457-1-richard.henderson@linaro.org> References: <20210502235727.1979457-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62b.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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" As noted by qemu-plugins.h, plugins can neither read nor write guest registers. Signed-off-by: Richard Henderson --- accel/tcg/plugin-helpers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/accel/tcg/plugin-helpers.h b/accel/tcg/plugin-helpers.h index 853bd21677..9829abe4a9 100644 --- a/accel/tcg/plugin-helpers.h +++ b/accel/tcg/plugin-helpers.h @@ -1,4 +1,4 @@ #ifdef CONFIG_PLUGIN -DEF_HELPER_2(plugin_vcpu_udata_cb, void, i32, ptr) -DEF_HELPER_4(plugin_vcpu_mem_cb, void, i32, i32, i64, ptr) +DEF_HELPER_FLAGS_2(plugin_vcpu_udata_cb, TCG_CALL_NO_RWG, void, i32, ptr) +DEF_HELPER_FLAGS_4(plugin_vcpu_mem_cb, TCG_CALL_NO_RWG, void, i32, i32, i64, ptr) #endif