Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4103259pxf; Tue, 23 Mar 2021 02:47:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzN8P2GrjRRdPXZH9th209FkHzVQffkFNlUlFYdKQfo4hJAy6YInmEXDkv7QVcpLdK65HSC X-Received: by 2002:a17:906:1c98:: with SMTP id g24mr4066671ejh.51.1616492824489; Tue, 23 Mar 2021 02:47:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616492824; cv=none; d=google.com; s=arc-20160816; b=il3JRACRed2pSghwkAF0hZp2NpS8yH3jltY9ob50O8Pr+0P4vPvi8aOXXtujhD4a6y BD8LBz8JFbGvuuefBKs0oI0ouY9g1SND4yOnE/U96kaEVpApdhmXucsH5+kycEciXhIN 7BzC4u78V4ShjkgWkUT7mpY2tCho7cANiGb/Uocac6SRU2UBckD0UlL5NorFXF8BvgJX VexfSaHgO6x4ahwkdoxYPnfqLi61NtnLLcfcR3Gho+4RcZfQv9AAUsy3pUMXuxGQxbA7 wGSb1kZWuQx7BZgrhAcNlYaKOwW89a24TGr5f/KBjIa8CIzXFbZiN74T5TgNff76si/s sYTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=igytomupHV4aiP/mPg21Ff4pyM4OpHWki9992HE9Jy0=; b=z/gVTLsnxHVrh68dMGXFtGUtrzN1xsfHjygrruADh/06c4Aq3pKdg/98fYg15aH/WB tMf72vFVmjdBrYa9cJdcCexd9nZTV/R8T6mJibLj4nLvzJsZdKAaLrDrBzdDfRcWIO9c VYyb3VW0g9BQLK6lhWBXOA+ZtEcKuUQVPNga8d88faqr7e0ARADBJcLTpbg8POE0wKwN 5/m6TyrYHB8YHXlBqBRNuPyBemB7nGqJtyD9xiOa3Jvokz3hnPH6IkpR4oj7jcpQOQsV 2XE7+9La42Al32ZKbyjxWd2TRTkmb6n9re+WidfpSzOlk7vh6d4FVrxpIs0AP224Bs8L ulCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j13si13173279edn.369.2021.03.23.02.46.42; Tue, 23 Mar 2021 02:47:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229576AbhCWJpO (ORCPT + 99 others); Tue, 23 Mar 2021 05:45:14 -0400 Received: from foss.arm.com ([217.140.110.172]:42940 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbhCWJoo (ORCPT ); Tue, 23 Mar 2021 05:44:44 -0400 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 632F31042; Tue, 23 Mar 2021 02:44:44 -0700 (PDT) Received: from [10.57.55.187] (unknown [10.57.55.187]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DCB8E3F718; Tue, 23 Mar 2021 02:44:42 -0700 (PDT) Subject: Re: [PATCH v4 05/19] kvm: arm64: Disable guest access to trace filter controls To: Marc Zyngier Cc: linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org, mike.leach@linaro.org, anshuman.khandual@arm.com, leo.yan@linaro.org, Will Deacon , Mark Rutland , Catalin Marinas , linux-arm-kernel@lists.infradead.org References: <20210225193543.2920532-1-suzuki.poulose@arm.com> <20210225193543.2920532-6-suzuki.poulose@arm.com> <8cb6eced29d9749d88af6f6d2f649019@kernel.org> From: Suzuki K Poulose Message-ID: <59682421-a985-ec71-3ade-09c17aa58b5a@arm.com> Date: Tue, 23 Mar 2021 09:44:41 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <8cb6eced29d9749d88af6f6d2f649019@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/03/2021 09:16, Marc Zyngier wrote: > Hi Suzuki, > > On 2021-03-22 22:24, Suzuki K Poulose wrote: >> Hi Marc, >> >> On 25/02/2021 19:35, Suzuki K Poulose wrote: >>> Disable guest access to the Trace Filter control registers. >>> We do not advertise the Trace filter feature to the guest >>> (ID_AA64DFR0_EL1: TRACE_FILT is cleared) already, but the guest >>> can still access the TRFCR_EL1 unless we trap it. >>> >>> This will also make sure that the guest cannot fiddle with >>> the filtering controls set by a nvhe host. >>> >>> Cc: Marc Zyngier >>> Cc: Will Deacon >>> Cc: Mark Rutland >>> Cc: Catalin Marinas >>> Signed-off-by: Suzuki K Poulose >> >> We have already have the v8.4 self hosted tracing support in 5.12-rcX. >> Do you think you can pick this up for this 5.12 ? > > Sure, no problem. Shall I pick patch #3 at the same time? Yes please. Thanks ! Suzuki