Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1016527rwb; Sat, 5 Aug 2023 05:55:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGrbRt8mMnIVQylRjpOTiLtcd/52s7ccHY8SW171dKIAI144toh/nBjGZGJf5Oyk/L3Evb9 X-Received: by 2002:a05:6a00:1a8c:b0:686:6166:3738 with SMTP id e12-20020a056a001a8c00b0068661663738mr3610970pfv.28.1691240119324; Sat, 05 Aug 2023 05:55:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691240119; cv=none; d=google.com; s=arc-20160816; b=XT7fxAct9YBzyntA/4y+tXw2g14/obwHfioHxDfhHC783PUfzsGppgNTu0dLGAFvM4 Vx1T/uzVBW9oosQwDxFRltyu+xKCTtEfFXY0hsonXKMeONA1REzQSRO3jd0xwj0KU9nH XSX5Dz/gJRhua/hUz/DlKiLNfAFYsO7tPhy6btrfzFnViMWPn3Cd9mihfdq1mIuVRYGZ a65Gepe+wxfgN1CUmVTPnlk2wv8M6t4a4ZKu8mlaU9wWGFJTrARR/bPD5ERqurXJcSeo HHXVdhQCw0uLag4dlJRpw286KHfw8QJtWZ7B4Ss4GxbvdbCZVPQzjYjk0oC3u9q6vAC0 w8Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=v7p2V/X/RNkXaVyhXX7ZNxxnyOtDvkw357nkQoKK5T8=; fh=gfB3P919Is1bxE3mPrwc6GZVGoraRKA2RKHcDoxUlF8=; b=UyDYgfZ8qMa+GrguYnJU/sJ0URKYk8NP238RbE/GHPx3D0ApU3MgXOIREagqQMvOpa WsSU+7ArbJJCoM7MGwohBGKgsnhkvbOnmmqWjbU24CViW4oeAR/IDGrZcqsmI2iDubDV 68Esm833d5eD5tmTGvNEkHm+2ePRy0Mcu3m8ThVZosKg99JUG1Oc54TXCeIajLir/4Qy 6AAaiaIV96ytR0Jl340BjddQ11v1Y7akbDDz7l33KmkCekUCcC6ltP0JlLNkA9uwNBFc Tuj0Lq92QLWYWiYHpcRYcyLW/qhTD6ygPotCPqJ/oF9Je2EsDQx/6OENLXs3qlJSOsn1 c5hg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f20-20020a056a001ad400b006863085981esi840676pfv.68.2023.08.05.05.54.58; Sat, 05 Aug 2023 05:55:19 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229379AbjHEK2s (ORCPT + 99 others); Sat, 5 Aug 2023 06:28:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbjHEK2q (ORCPT ); Sat, 5 Aug 2023 06:28:46 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5B4C649CB for ; Sat, 5 Aug 2023 03:28:43 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B78DD1FB; Sat, 5 Aug 2023 03:29:25 -0700 (PDT) Received: from [10.57.90.200] (unknown [10.57.90.200]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AF54B3F5A1; Sat, 5 Aug 2023 03:28:40 -0700 (PDT) Message-ID: Date: Sat, 5 Aug 2023 11:28:39 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [RFC PATCH 0/3] coresight: Support exclude_guest with Feat_TRF and nVHE To: Marc Zyngier , James Clark Cc: coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Oliver Upton , James Morse , Zenghui Yu , Catalin Marinas , Will Deacon , Mike Leach , Leo Yan , Alexander Shishkin , Anshuman Khandual , Rob Herring , linux-kernel@vger.kernel.org References: <20230804101317.460697-1-james.clark@arm.com> <86edki62vz.wl-maz@kernel.org> From: Suzuki K Poulose In-Reply-To: <86edki62vz.wl-maz@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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 Hi Marc On 04/08/2023 20:09, Marc Zyngier wrote: > 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). While I have your attention, we have another series that manages the trace filtering for Guests on VHE, completely within the Coresight etm4x driver here [0]. I personally think, it is good to have the guest filtering for both nVHE and VHE under the KVM control, like we do in this series. I would like your opinion on this. [0] https://lkml.kernel.org/r/20230804085219.260790-1-james.clark@arm.com Suzuki > > Thanks, > > M. >