From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 268DBC433FE for ; Thu, 24 Mar 2022 20:33:46 +0000 (UTC) Received: from localhost ([::1]:57482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXU9Q-0007qT-Or for qemu-devel@archiver.kernel.org; Thu, 24 Mar 2022 16:33:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:32890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXU8T-0006at-Se; Thu, 24 Mar 2022 16:32:45 -0400 Received: from [2a01:111:f400:7e8a::71d] (port=38105 helo=NAM10-BN7-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXU8R-0003sk-Me; Thu, 24 Mar 2022 16:32:45 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HW+pvxoJBHy6h0Jv9PWe49POCrxjuJtB+ShDpdbnWUEeDY9JwtkviCh88rmapE2DLuEpnT/8DPqQZ549gpQR32udgz2E6OvoKHMce2nAKT2FpPUhvrkBGwYvJtgQ2LiRT+AUEN0feVdNtQqjZtQbvhBHBXTwUah5auJh8Giw6K3Y7YTKgcHkOilFNc4p+5s6nhEnXSXHVrN0c6eujfSXFGGnlGH59etgSQOkgC9dsH1XXrLE6tpwoc579CDpb1Qc+jnITcwhFuJFuXgkcH8JFRPO+6EJePNZNfC9wWLJKkk/y6zqqHAIbGzyjiFi4w17SUnpL3kINOu+/kW4pdL7Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lWe6esMvTDxcpELgUOaYb8647pSWKmvWH7iWh5IKyJc=; b=M7P1IgOVA05aikVQ49lSpDNHjful7y7ExHHyMBHD7//9xOapNl4dxv/spu7ATWuRP1pBr9/4AgKvItEv0Pce4VcDHmADWqXvKPg7mO8aKMx/ekFVGOvpxCUzEZs1nf2uYJivOVHCcg8nyECpACFjWp7KV+uLtfzxAUveVp31J1BmUIqkeSiKGaNe/P4KIYfdSAn2TiKNKMl8NbwQPMwFArsPWvZyuxV24OA0meM5RDtsu4hhdAlcD6Nn8+4wPo9BzzHc4ugq2WGX0+x2IsSekUIQFgsRQW59bVKWyis+xE1RX3wkbbLaN77F9pfB7ND2ZKOWBsmdS6hn+I6CmtBLiw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lWe6esMvTDxcpELgUOaYb8647pSWKmvWH7iWh5IKyJc=; b=qSq10VuukfmMaphbLqr9YAywSIfCoW/rt/hNVoqcvzJkZvtprN7lPEtKouM/74WqaLPfJVP5qnUHQ7uR1tV5u5/6XJeY5Az3L6A7uGvmCBOM/nT9VibIXGaBOelFWCWILgErV64tdnalrOyNFDaiNEELT1XueySLMT0YkQIjIdk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from CH0PR01MB7124.prod.exchangelabs.com (2603:10b6:610:f3::20) by DM6PR01MB5545.prod.exchangelabs.com (2603:10b6:5:17c::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.16; Thu, 24 Mar 2022 20:17:46 +0000 Received: from CH0PR01MB7124.prod.exchangelabs.com ([fe80::fc95:d5f4:a26a:423d]) by CH0PR01MB7124.prod.exchangelabs.com ([fe80::fc95:d5f4:a26a:423d%8]) with mapi id 15.20.5102.017; Thu, 24 Mar 2022 20:17:46 +0000 Date: Thu, 24 Mar 2022 16:17:33 -0400 From: Aaron Lindsay To: qemu-devel@nongnu.org, qemu-arm@nongnu.org Cc: Alex =?iso-8859-1?Q?Benn=E9e?= , richard.henderson@linaro.org, robhenry@microsoft.com Subject: Plugins Not Reporting AArch64 SVE Memory Operations Message-ID: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-ClientProxiedBy: CH0PR03CA0224.namprd03.prod.outlook.com (2603:10b6:610:e7::19) To CH0PR01MB7124.prod.exchangelabs.com (2603:10b6:610:f3::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 05dbf9cb-5718-4da1-d253-08da0dd35c6f X-MS-TrafficTypeDiagnostic: DM6PR01MB5545:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rHTUNI14ePcdQ2bVOq6/8W5+RO9YkWSjJPHk5suw9oc6RCwy+2/4eKzIJJm5TemCKnjObo+xfFhsGsJO1FfJhqE6zltHHSR7j8xJUiTZ5nRRjhsnxTVh+k4QYNc4+LMCnqNgsGKsXF1yXNp845eV4wpKv9uZnrZpZvJnuKVEDvkJ/EJjyFvzuicA/cnnswR4YOTWWckjmkeeym7hVYuaGQ/ABwACHnfl37p6AWCYvtRlZJ4mrwJVLDplJpkkR61LiueBy0lt5hS048u71ZKBvCNdzOjjkUali8iYEFmFWome8X+hp50040ZSF66QilpZs89I6ZtoNbbufY90lFeHUl4/pxdbe6y4JKY/yD1fLYoF2yJzDk0vHpm8MThMswJ+keN0zNOQy11ItIUIEcDxmidaffYUeYlbVq0moxFC228KBYnDtJoJDH4n850K7mOMEGzlKHKamH/DIkwAOtTxvdc9n60cuXUUI7fclDeWSESNIapA2DkYkATBBOTYRUK4TlYda3Veq2ZnfC6C2KlGIGGC3O+WJL7ZUOndF18FlXQdfMVgEArHg9CsWfgDOUz10vHRcBywbpxmce2kCuu5TDhqLKHpGcbEwcRDUcN11HaoYs38hJ8MziaAyek9pS3xWIOL+xv5RnUrJ6ZEvNx1MlS1HLwXGJOUsdnW9rT+M+xoA2cw8+uld28hGm5K9y1cN980rRQEJxzE44CIpS9vGmEIN3kgAmvzVPCa5xzdeew= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH0PR01MB7124.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(26005)(2906002)(9686003)(5660300002)(186003)(6512007)(8936002)(66556008)(6666004)(38100700002)(966005)(316002)(86362001)(6486002)(508600001)(8676002)(6506007)(4326008)(66476007)(83380400001)(66946007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?zpQ5dawV5JP1T+VhHGu7Qva685sBvmTizRIH03LA4J1ZabGpgovtO3XF66uM?= =?us-ascii?Q?lsYzr/K2wZLSJuTpT7tPbjHbjb1nbelwFMl46o9fW8rPWH7xkrDrLgi8GAbC?= =?us-ascii?Q?8c6i1Oxx7c5piDwA5pYDiJblmSuL+1fwgyTBvUWieG4pbhhbaFlGJZznyWkY?= =?us-ascii?Q?TQ1DoOI+p5L562nYNPYV7Xxc3fIyNWnb5iZwDU1f9Bvk7Xa2mEJqN2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HFxBj9+b0Ky3HUNMOgndHN3n5c?= =?us-ascii?Q?wU73gW27Km57gmC3//dTkMailP3N2WOx487w9Zngho6IAu56tNZydju3GP+T?= =?us-ascii?Q?1vtRYE0+f6bTv4I07vj/8Scw3WDvm9GjUtk2DM3E4IGI/YTWh7vpMGNxmJA+?= =?us-ascii?Q?oOJgRy4BQg5rHGo6/zBjtvBN7SHnC2VKMgpmIx3ymUQxpBS3fPYT9wDNc/gY?= =?us-ascii?Q?IYPYQ/r0oEyOWLybQfnjvaGSiyDt46MV8L0mjqLuIoT2i4uV6GaEzYtMC1t8?= =?us-ascii?Q?KwXd3N25gzqKHdmXWVMhGYhfvVaWEllztRl8HhiLJILsGEs3b7j8j25gNCUK?= =?us-ascii?Q?d0U7EHXbpKGSYYlLYaEPK8y3wiufw9sJ9hmzGB7FGmOltCrTLLBXKu7NhUbG?= =?us-ascii?Q?DfL/DjuqMyQBWV4=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 05dbf9cb-5718-4da1-d253-08da0dd35c6f X-MS-Exchange-CrossTenant-AuthSource: CH0PR01MB7124.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2022 20:17:46.8313 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: SfaF6AIkvOu0dsvWFLbmWhJFJn0gv6PJN/mnwfsbvFsLhzYRA0ywaI3nHOt69xm0TKjNwfcejpAdQRq8EeOa/lf7eLaCUlG8OuX6TEMY79NHZ1A7FykfT6Nz8eJb7o59 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR01MB5545 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:111:f400:7e8a::71d (failed) Received-SPF: pass client-ip=2a01:111:f400:7e8a::71d; envelope-from=aaron@os.amperecomputing.com; helo=NAM10-BN7-obe.outbound.protection.outlook.com X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, PDS_HP_HELO_NORDNS=0.659, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi folks, I see there has been some previous discussion [1] about 1.5 years ago around the fact that AArch64 SVE instructions do not emit any memory operations via the plugin interface, as one might expect them to. I am interested in being able to more accurately trace the memory operations of SVE instructions using the plugin interface - has there been any further discussion or work on this topic off-list (or that escaped my searching)? In the previous discussion [1], Richard raised some interesting questions: > The plugin interface needs extension for this. How should I signal that 256 > consecutive byte loads have occurred? How should I signal that the controlling > predicate was not all true, so only 250 of those 256 were actually active? How > should I signal 59 non-consecutive (gather) loads have occurred? > > If the answer is simply that you want 256 or 250 or 59 plugin callbacks > respectively, then we might be able to force the memory operations into the > slow path, and hook the operation there. As if it were an i/o operation. My initial reaction is that simply sending individual callbacks for each access (only the ones which were active, in the case of predication) seems to fit reasonably well with the existing plugin interface. For instance, I think we already receive two callbacks for each AArch64 `LDP` instruction, right? If this is an agreeable solution that wouldn't take too much effort to implement (and no one else is doing it), would someone mind pointing me in the right direction to get started? Thanks! -Aaron [1] https://lists.nongnu.org/archive/html/qemu-discuss/2020-12/msg00015.html