From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3EF4882A for ; Mon, 12 Jun 2023 19:14:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DC5AC433D2; Mon, 12 Jun 2023 19:14:38 +0000 (UTC) Date: Mon, 12 Jun 2023 20:14:35 +0100 From: Catalin Marinas To: Marc Zyngier Cc: kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu , Quentin Perret , Will Deacon , Fuad Tabba Subject: Re: [PATCH v3 06/17] arm64: Allow EL1 physical timer access when running VHE Message-ID: References: <20230609162200.2024064-1-maz@kernel.org> <20230609162200.2024064-7-maz@kernel.org> Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230609162200.2024064-7-maz@kernel.org> On Fri, Jun 09, 2023 at 05:21:49PM +0100, Marc Zyngier wrote: > To initialise the timer access from EL2 when HCR_EL2.E2H is set, > we must make use the CNTHCTL_EL2 formap used is appropriate. > > This amounts to shifting the timer/counter enable bits by 10 > to the left. > > Signed-off-by: Marc Zyngier Reviewed-by: Catalin Marinas 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 2F38DC88CBC for ; Mon, 12 Jun 2023 19:15:07 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XOKqXrMf4q4qeVqIpaLGjIDawOjyQbUB1uuIFN79fvs=; b=oQJVVwaDSpP5tb 4hP0AoViBLRUi4wNCW7n0ONOfb+i2wYoFLpaSxGMKv+L0TjvL+XCtonzUrBRnHbl5wUbJHY54tdEf YI0Kfbp5Q2DfiZK6aRkd7dwy7zp7U8Tony0SZgtL9RypDE1F4wtXCF90sViFpygQK3hXMiwx5E1n4 914GfDMc4MxZfocjl7gFzAvy850ceZZZCgj16UH2ozdnvJ7zkjBJe0nHBb7seVeloKPtXI/YRjKiA /+7in3Y+kqWclBYQzSy3+OwcqPRJ+d+irV5wpRC9efbdgLWON/evUIXAomigx1NnXoIsR5WyyUNKc cfiBvYTmynshlvy6XOMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q8n00-0054b7-1N; Mon, 12 Jun 2023 19:14:44 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q8mzx-0054Zw-2C for linux-arm-kernel@lists.infradead.org; Mon, 12 Jun 2023 19:14:42 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E68566173C; Mon, 12 Jun 2023 19:14:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DC5AC433D2; Mon, 12 Jun 2023 19:14:38 +0000 (UTC) Date: Mon, 12 Jun 2023 20:14:35 +0100 From: Catalin Marinas To: Marc Zyngier Cc: kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu , Quentin Perret , Will Deacon , Fuad Tabba Subject: Re: [PATCH v3 06/17] arm64: Allow EL1 physical timer access when running VHE Message-ID: References: <20230609162200.2024064-1-maz@kernel.org> <20230609162200.2024064-7-maz@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230609162200.2024064-7-maz@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230612_121441_753610_65395CFE X-CRM114-Status: GOOD ( 11.12 ) 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 Fri, Jun 09, 2023 at 05:21:49PM +0100, Marc Zyngier wrote: > To initialise the timer access from EL2 when HCR_EL2.E2H is set, > we must make use the CNTHCTL_EL2 formap used is appropriate. > > This amounts to shifting the timer/counter enable bits by 10 > to the left. > > Signed-off-by: Marc Zyngier Reviewed-by: Catalin Marinas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel