Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp280236rwb; Fri, 4 Aug 2023 12:35:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE3TO8tKonHiFD05NTWIUvhnCrbo4FV4K5LppE/wmQA2914BBxeNOTQ44XzEP/+Sa82O5GX X-Received: by 2002:a17:906:9750:b0:98d:f2c9:a1eb with SMTP id o16-20020a170906975000b0098df2c9a1ebmr625151ejy.24.1691177732661; Fri, 04 Aug 2023 12:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691177732; cv=none; d=google.com; s=arc-20160816; b=Z6NzmXG23dCR8Y2ddMUyUYx9+MDhI6znZgKAcZwlLyBPovLkzwL6oqnywNsendPkYC TDXlnVNfUYI1HZ2rb6GYQA4ny4pSLGNg9KCwRVHwQlczuTnTvP/TY/cG13qxkZY46BsV cI1QgQ++NSHTecssz0sm1tWA3fDLfF1jfSWfZxSXvRiE//jvECpITofmbM5/GS2HTfyq GwBmskjbCdDeI49j0ioPQ1znnitZBNgVnw/YlGCpbJtikUqR/TIG+fKRWeJUqXh0Nk0T Bop6YorJ1RUQlgRGgSegNLZzaJUVz+wDQd2funGHMKSFm5ZG2tE3G8yFbmsSFc+AfW4d s8+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=OakHeHj2pD1CeBrCCVLYvrJG8TQ51I66axx8REBM/xM=; fh=hFhuNU6hGwY9RQG5GoeicdPhLH628OAjjnvGlP4WSgo=; b=hxkZ9Hq5FEgXygTrYOsOKEUgZ7c4kqh/VEeeUAvK/zuRWc+7ciwimpqJhE5fNCceyv h8m88QZT+Cg/rBxSledskHbQnXZLATKfORzU9BMTzXnjiFXd+ymTGdIpNtP2IwUFPZal jbiFW+M/yW3c7aTZveMrJMEPaIhtWrL27DWSo2QtFAkijS1FyZwrsiwR+9Y3qULXz80T GsUxlice0U+Fc+RwqBavZi7PqhTdy0npD9WIXhuDQaDn90b72TX/E7cPAo8sU3vS2t4L XOmufJofNfCOalZJHqb9EANGWKfDSRGaQslB1Zp3X8PAQlm6MQs1QXjfJO13RZ+BlQEA A2kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EpxIKBvT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i4-20020a170906250400b00988699d64cdsi2126245ejb.959.2023.08.04.12.34.58; Fri, 04 Aug 2023 12:35:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EpxIKBvT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229779AbjHDTJ2 (ORCPT + 99 others); Fri, 4 Aug 2023 15:09:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229682AbjHDTJZ (ORCPT ); Fri, 4 Aug 2023 15:09:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACA9FE46 for ; Fri, 4 Aug 2023 12:09:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 29D8662101 for ; Fri, 4 Aug 2023 19:09:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85432C433C8; Fri, 4 Aug 2023 19:09:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691176163; bh=lk24LQwqcp4JYldlbIjLD9mH818no3tmdB7V9ZxAaK4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=EpxIKBvTXu6P6iDxz7oVD4I6GbXeSkcHqARLqmeYlJO5zjKKmyh4DuY1v0kDwtGwc zHfbJnrf+LEVkX+jeRQhI1fQxIYy3aUexfTBb6vIKERTVhigHj3HIQwMNFzsXDvENb 7/ADSbncCqIion780Y3gIHRY20rUYISOWiqmhF3/3PhAR4qar3dgNt9ChSj7RVziZ8 0zNdAr+FlR1CY2X/sZEcP6UU7PZLtM1Y7IbvmTfxo81pRvKZOBszrvOyQNEifd1eL/ jvYvPstpwHIF/cX2pM6QpPhYURzKK4ZXBdTGVEl50Nmke12B/2uJ2xc9LS72Y8mNlu j+HMrtUVWxPDA== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qS0Ar-002KST-5U; Fri, 04 Aug 2023 20:09:21 +0100 Date: Fri, 04 Aug 2023 20:09:20 +0100 Message-ID: <86edki62vz.wl-maz@kernel.org> From: Marc Zyngier To: James Clark Cc: coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Mike Leach , Leo Yan , Alexander Shishkin , Anshuman Khandual , Rob Herring , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/3] coresight: Support exclude_guest with Feat_TRF and nVHE In-Reply-To: <20230804101317.460697-1-james.clark@arm.com> References: <20230804101317.460697-1-james.clark@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: james.clark@arm.com, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, mike.leach@linaro.org, leo.yan@linaro.org, alexander.shishkin@linux.intel.com, anshuman.khandual@arm.com, robh@kernel.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 04 Aug 2023 11:13:10 +0100, James Clark wrote: > > Hi, > > I'm looking for help in testing this and for feedback on whether it's > useful to anyone. Testing it requires hardware that has Feat_TRF (v8.4) > but no TRBE. This is because TRBE usage is disabled in nVHE guests. > > I don't currently have any access to any hardware, and the FVP model > can only do self hosted trace using TRBE. > > Currently with nVHE you would always get trace from guests, and > filtering out isn't possible without this patchset. In comparison, with > VHE guests, they never generate guest trace without [1]. I think the > existence of trace rather than lack of could suggest that this change is > less useful than [1]. Also the restricted set of hardware that it works > on supports that too. It'd be nice to have some sort of feature parity, but it seems like a vanishingly small target of users having access to an ETM sink. > > Apart from compilation and checking that the exclude guest settings > are correctly programmed on guest switch, this is untested by me. I'll have a look at the series, but none of my HW fits in this description (my ARMv8.4+ boxes don't have any form of tracing). Thanks, M. -- Without deviation from the norm, progress is not possible.