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 X-Spam-Level: X-Spam-Status: No, score=-9.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 438BCC4741F for ; Tue, 29 Sep 2020 17:33:40 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CF7D62075F for ; Tue, 29 Sep 2020 17:33:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="I2+yhZKd"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="BqjJ64HL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CF7D62075F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject: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=H7/8IoYrtU/6/mXowgyE+fATuzUIW3tZuWPpGWanh1A=; b=I2+yhZKd3hWUhcxLt9SY76E2T zcUbmU9A+AC7G2XaiV18rhnJMABFpsTuY8fVhRzlr3sGGAP4KRGasG8x/Stu4dWfne5IhQqsc3iEF KyM14/4bB7zGqmpob58VHBMerVUSQRMbDgdn+yYPof7Ysd1gO5sRq1EEHMZyHiRsDU4vTMEFoaZfJ UdWOEWiowCiynP9Hj1i/nWtoCpRvAVMLfEdkjlwRxWd+YFF8af/agqjLr8Km7oPu3XC1W0x7vc1Wq S5Hn93GveK50sJy9l3wyZiYR2JrRM8cWc1WfJiT9a7hghCLdJ3tJqucPTqM6IfYLn9t0QAPOsoabS 3Wzs+QvKA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNJSy-0002It-GP; Tue, 29 Sep 2020 17:31:04 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNJSu-0002Hm-Hu for linux-arm-kernel@lists.infradead.org; Tue, 29 Sep 2020 17:31:01 +0000 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1AB3B2076B; Tue, 29 Sep 2020 17:30:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601400659; bh=ZXt7Xlne8O4MeeCwfkNnfkAu3Jkzhnlfgn/f/Lyi+XQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BqjJ64HL0rL6kTbXLKtkhMwe+607jWI3ODEOSusQB4LnnZOZoy1o0wUnALLXNfigf XdKaidx2BNKgnijeVFxsXwptbciO2gzQKNkhSPtD13DrtbfxLd3QEQNSMXI6bH+lOR 5o/Y7OEfIlhv/C8yQRQobAcD3UkCvAmF/QeJGU2w= Date: Tue, 29 Sep 2020 18:30:53 +0100 From: Will Deacon To: David Brazdil Subject: Re: [PATCH v4 04/10] kvm: arm64: Remove __hyp_this_cpu_read Message-ID: <20200929173053.GB14317@willie-the-truck> References: <20200922204910.7265-1-dbrazdil@google.com> <20200922204910.7265-5-dbrazdil@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200922204910.7265-5-dbrazdil@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200929_133100_673979_2B2EE98B X-CRM114-Status: GOOD ( 14.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Suzuki K Poulose , Catalin Marinas , linux-kernel@vger.kernel.org, James Morse , linux-arm-kernel@lists.infradead.org, Marc Zyngier , Tejun Heo , Dennis Zhou , Christoph Lameter , kernel-team@android.com, kvmarm@lists.cs.columbia.edu, Julien Thierry , Andrew Scull 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 Tue, Sep 22, 2020 at 09:49:04PM +0100, David Brazdil wrote: > this_cpu_ptr is meant for use in kernel proper because it selects between > TPIDR_EL1/2 based on nVHE/VHE. __hyp_this_cpu_ptr was used in hyp to always > select TPIDR_EL2. Unify all users behind this_cpu_ptr and friends by > selecting _EL2 register under __KVM_NVHE_HYPERVISOR__. VHE continues > selecting the register using alternatives. > > Under CONFIG_DEBUG_PREEMPT, the kernel helpers perform a preemption check > which is omitted by the hyp helpers. Preserve the behavior for nVHE by > overriding the corresponding macros under __KVM_NVHE_HYPERVISOR__. Extend > the checks into VHE hyp code. > > Acked-by: Andrew Scull > Signed-off-by: David Brazdil > --- > arch/arm64/include/asm/kvm_asm.h | 20 ---------------- > arch/arm64/include/asm/percpu.h | 28 +++++++++++++++++++++-- > arch/arm64/kvm/hyp/include/hyp/debug-sr.h | 4 ++-- > arch/arm64/kvm/hyp/include/hyp/switch.h | 8 +++---- > arch/arm64/kvm/hyp/nvhe/switch.c | 2 +- > arch/arm64/kvm/hyp/vhe/switch.c | 2 +- > arch/arm64/kvm/hyp/vhe/sysreg-sr.c | 4 ++-- > 7 files changed, 36 insertions(+), 32 deletions(-) Looks good, thanks for the respin! Acked-by: Will Deacon Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel