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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF57AC88CB6 for ; Mon, 12 Jun 2023 19:14:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238071AbjFLTOp (ORCPT ); Mon, 12 Jun 2023 15:14:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237952AbjFLTOm (ORCPT ); Mon, 12 Jun 2023 15:14:42 -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 727C8E54 for ; Mon, 12 Jun 2023 12:14:41 -0700 (PDT) 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 0779D60C53 for ; Mon, 12 Jun 2023 19:14:41 +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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230609162200.2024064-7-maz@kernel.org> Precedence: bulk List-ID: X-Mailing-List: kvm@vger.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