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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 9C2E3C4828D for ; Mon, 5 Feb 2024 14:16:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hCd27g9G4z1IuIr7FxMX2WLDoC7w5xJkH//xA6wEajg=; b=QDziUkPgsASKhS V5r7eW6EHr7dMsfCo/yLk6hArWYAOrMGb5QgA8xU/BpOYS7P6EU/aRQq/aKXqWBipjajkH6b4ToMk LnIuYjmt0cyGjykJVNrKp3QrqH/vFpatJ4KkEGK6CX7ciZTuUuhG+eZKBpXTh12Abe5+zYJ/oiwPs 8sGLGLg/Yo5Q7SAXGUvFwdKAEOt99dCN5P/hU18y7ChnS+1igDASgiYaZ/UI5It5tXfllNqJ3k1UL CvSLIdqGSgktQPyTIYNrjRftR90PyAR1KEsEflD4ZQHnpzMqfodqFHWkInhc8TOBMzKYsMfef46Ec Wv4onxxUE7LFyCvZ2k3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rWzle-00000003YnN-1CQ7; Mon, 05 Feb 2024 14:16:14 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rWzlc-00000003Ymd-0lVA for linux-arm-kernel@lists.infradead.org; Mon, 05 Feb 2024 14:16:13 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 6AF1E6104F; Mon, 5 Feb 2024 14:16:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C23FC433F1; Mon, 5 Feb 2024 14:16:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707142571; bh=6ablIt6+waMs7azbKT/PMUfSpGgQX2Q6sJAtWzCITww=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=N8zWt1jPSwomWNhcShaWN1v5WUQYxbWOoRAwSTBx1bz3DO640gk2s6yJ7QftjLuSA deZRZDMFr9iCeNRBolRYYkvz6zNqldekpfDM6AxYoXY8MHNnU+T6pz7aixF/ZaQiVW 7KpWgALv+uLC6CD+5pnwZC3oT5dChRRwFYcyRWdCkiCkh+OSltuD1JCbuEv6+YAK7T VyWDuU75j/WrbYXik29aMsCKT58ZV78BL/TImh0DZJFxHHw4n4p6867IxQXGyS3/Tz Ncixy2p6d2t763Sep+iBOymoFekKbWyiRh6u7H3czun8MaLyjQX2JkTxwVr3BGQpuB oaI++xAOoYnXA== 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 1rWzlY-000RWi-Cb; Mon, 05 Feb 2024 14:16:08 +0000 Date: Mon, 05 Feb 2024 14:16:07 +0000 Message-ID: <865xz36lp4.wl-maz@kernel.org> From: Marc Zyngier To: Oliver Upton Cc: James Clark , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, broonie@kernel.org, suzuki.poulose@arm.com, acme@kernel.org, James Morse , Zenghui Yu , Catalin Marinas , Will Deacon , Mike Leach , Leo Yan , Alexander Shishkin , Anshuman Khandual , Rob Herring , Miguel Luis , Jintack Lim , Ard Biesheuvel , Mark Rutland , Arnd Bergmann , Vincent Donnefort , Kristina Martsenko , Fuad Tabba , Joey Gouly , Akihiko Odaki , Jing Zhang , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/7] arm64: KVM: Use shared area to pass PMU event state to hypervisor In-Reply-To: References: <20240104162714.1062610-1-james.clark@arm.com> <20240104162714.1062610-3-james.clark@arm.com> <8a908ee8-620a-d9c2-734b-5a6402950072@arm.com> <867cjj6ohz.wl-maz@kernel.org> 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/29.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: oliver.upton@linux.dev, james.clark@arm.com, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, broonie@kernel.org, suzuki.poulose@arm.com, acme@kernel.org, james.morse@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, miguel.luis@oracle.com, jintack.lim@linaro.org, ardb@kernel.org, mark.rutland@arm.com, arnd@arndb.de, vdonnefort@google.com, kristina.martsenko@arm.com, tabba@google.com, joey.gouly@arm.com, akihiko.odaki@daynix.com, jingzhangos@google.com, 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240205_061612_325950_96E6869A X-CRM114-Status: GOOD ( 23.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 05 Feb 2024 13:21:26 +0000, Oliver Upton wrote: > > On Mon, Feb 05, 2024 at 01:15:36PM +0000, Marc Zyngier wrote: > > On Mon, 05 Feb 2024 13:04:51 +0000, > > Oliver Upton wrote: > > > > > > Unless someone has strong opinions about making this work in protected > > > mode, I am happy to see tracing support limited to the 'normal' nVHE > > > configuration. The protected feature as a whole is just baggage until > > > upstream support is completed. > > > > Limiting tracing to non-protected mode is a must IMO. Allowing tracing > > when pKVM is enabled is a sure way to expose secrets that should > > stay... secret. The only exception I can think of is when > > CONFIG_NVHE_EL2_DEBUG is enabled, at which point all bets are off. > > Zero argument there :) I left off the "and PMU" part of what I was > saying, because that was a feature that semi-worked in protected mode > before VM/VCPU shadowing support landed. Indeed. The goal is that as far as userspace is concerned, the host running in protected mode shouldn't impair the ability to run non-protected VMs, and it should all be hunky-dory, unless you explicitly ask for a protected guest (at which point you are facing a lot of restrictions). PMU definitely falls into that last bucket, although I would hope that we eventually get some support by context-switching the whole of the PMU state. Don't worry, it's going to be cheap... Thanks, M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel