From patchwork Sat Jun 19 18:14:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 463892 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:102:0:0:0:0 with SMTP id x2csp1047001jao; Sat, 19 Jun 2021 11:18:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7kYsviXThJ1Tl0kaRS2+1kGdSN/EjOErcXuJKRAdAXkFnphkYVMgfriACHfysNaijVpLh X-Received: by 2002:a05:6214:b26:: with SMTP id w6mr11689405qvj.61.1624126710464; Sat, 19 Jun 2021 11:18:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624126710; cv=none; d=google.com; s=arc-20160816; b=BVIbWMv6ntAA2DiSYc32PIEWgDRF7SksVN9OlBHUzGW3FkEPDbJIquo/FG5Weph+CJ 9biJzPpadqhHrWlt2nXxzcMO/LRWlQEKhkRgjLF7fyGRXk0ft2yaz4C+Do9kAt9LSLtP naaPhL8urUd7j247zbU+3fhe0CM8Md57LgnaSl78pBLzf0J6nGWwrEG67uKk6Xt25dRp +DnfItLv366IpyB8vqi/bqMkg3D9DlkhGmjN5TPYhMeQ7BDXw8DxbywfNzBZcMiE0Huu pDQ8EQTPzUWPTtTxyzR0iTZYK0tZonsK0MxrfPInAC+E37F+LOdXOg3w3AOIHuBXZ3+5 HRWQ== 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=WTAuQeHvP+DitVjZ51FBHL5ba/U3wc92oJ6UKQCTQ5E=; b=0moG/pq+CdC3mF1xiu6CvZplgqyqdkAim6CrFUb/TKcRW0pCtYA8yxBw4MHuq33SLq 8l2gCeIqG1NgoFvVNBmk0EkPC226A+EMcrEjp7hmTR3tE5m38/JF4QinGWPMv9eSldD/ qfneFBslj1d6JNmsT4rFXgp9wK73AOsjsCVFAlu3zepLEGVCKNIU/RdT8QKiiD0kP5pc xZ9lLq3c1oaQZ1Jxk68n0G/Tp+lsf5P1RmRtTTON0/vgNSQlFJk7zRF46KEql2kxA7yj 7k7Qo66P63lOouIzLf3tQ++XIP1IP2/k/mC+cGXjCzFPdTNUH3ut5vfjwnqOV92yBO+R jzbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bwgvALuQ; 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 v1si9393456qtq.271.2021.06.19.11.18.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 19 Jun 2021 11:18:30 -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=bwgvALuQ; 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]:38072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lufY5-0006fN-Qr for patch@linaro.org; Sat, 19 Jun 2021 14:18:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lufUh-0000dB-2m for qemu-devel@nongnu.org; Sat, 19 Jun 2021 14:14:59 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:45632) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lufUf-0002Dn-Cg for qemu-devel@nongnu.org; Sat, 19 Jun 2021 14:14:58 -0400 Received: by mail-pf1-x434.google.com with SMTP id k6so10327933pfk.12 for ; Sat, 19 Jun 2021 11:14: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=WTAuQeHvP+DitVjZ51FBHL5ba/U3wc92oJ6UKQCTQ5E=; b=bwgvALuQkylJ8ueGvgSsUhQPueoNtDOOJ57wgX4ga6V191AUJTRKatqnCgpaWmkfp6 CIMbOeth55Ng26C0FogrT0I8mgH+ETfhtUQG9EA1781sgWzbM8pNH3dmCg/O+Xtsma6i MDAyocTYhyeEWgbxlEpz8yf3NYbQ6o3y4leaS8Xb22ldW3ML0ips1RHk4S2x8Re49JcO ETJgsPK4UnKWQYWoG2ACLXbHoNDaFwLoE+N6E2VlvmdxQ6vIHUMNX83ZMX6nhsEs8SUq 736MCi5GAzdp6yD/ZNbGaO+QsjCLTHmJ/timI29o8OLpEZoogAUOcUteyZP4FHN+ye95 Ua7g== 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=WTAuQeHvP+DitVjZ51FBHL5ba/U3wc92oJ6UKQCTQ5E=; b=djnDdD0Pt8en8GQ5V9YanfWMCeEZuDD+3HExfIUCupREYx0t2qyKwdSf809T4joBNR LktG6HwUIkZjgL8MbCDAJS+lnWCuTEvZEA2bZ+v2pzkOk1YxQl515+gRdqeT+E4Zy73m yXWgtKtltaZeM2KpZf9zKxa0n4NUonZfScPOpmegBhwbUENx6eHPShq2B/gy5/cOj0PU 5Ac39yIvzhKskzbCPYYnEfIDoIDUWd12nmK10TSPJrith2yOTvf+95gJ4IdOrJMnxGLh z3Rue4+o5VcXj38KVU/uu+/eegw8auREiVWFHFkX453ASiypE2+k+Hj/xnC/oNxbh8xY vxhQ== X-Gm-Message-State: AOAM5301n9Fiv6hACoqk9VY1bkMLoHjG3cL2RPndXeMg53y90YQZmJsG jzcTh+qW0aB7GQU2IMVuOT1oEIlBmuViCw== X-Received: by 2002:a63:e253:: with SMTP id y19mr15995016pgj.137.1624126496246; Sat, 19 Jun 2021 11:14:56 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id k35sm12059113pgi.21.2021.06.19.11.14.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Jun 2021 11:14:56 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 05/33] accel/tcg: Add tcg call flags to plugins helpers Date: Sat, 19 Jun 2021 11:14:24 -0700 Message-Id: <20210619181452.877683-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210619181452.877683-1-richard.henderson@linaro.org> References: <20210619181452.877683-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x434.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: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= 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. Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- accel/tcg/plugin-helpers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 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