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 mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qLKqC-003gKm-1Z for linux-arm-kernel@lists.infradead.org; Mon, 17 Jul 2023 09:48:40 +0000 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-51e55517de3so9855a12.1 for ; Mon, 17 Jul 2023 02:48:24 -0700 (PDT) Date: Mon, 17 Jul 2023 09:48:18 +0000 From: Mostafa Saleh Subject: Re: [PATCH v2] KVM: arm64: Add missing BTI instructions Message-ID: References: <20230706152240.685684-1-smostafa@google.com> <168920214959.3096128.780259299986215400.b4-ty@linux.dev> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <168920214959.3096128.780259299986215400.b4-ty@linux.dev> 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+lwn-linux-arm-kernel=archive.lwn.net@lists.infradead.org List-Archive: To: Oliver Upton Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, maz@kernel.org, suzuki.poulose@arm.com, tabba@google.com, james.morse@arm.com, qperret@google.com, bgardon@google.com, sudeep.holla@arm.com, gshan@redhat.com, yuzenghui@huawei.com, will@kernel.org, catalin.marinas@arm.com On Wed, Jul 12, 2023 at 10:50:34PM +0000, Oliver Upton wrote: > On Thu, 6 Jul 2023 15:22:40 +0000, Mostafa Saleh wrote: > > Some bti instructions were missing from > > commit b53d4a272349 ("KVM: arm64: Use BTI for nvhe") > > > > 1) kvm_host_psci_cpu_entry > > kvm_host_psci_cpu_entry is called from __kvm_hyp_init_cpu through "br" > > instruction as __kvm_hyp_init_cpu resides in idmap section while > > kvm_host_psci_cpu_entry is in hyp .text so the offset is larger than > > 128MB range covered by "b". > > Which means that this function should start with "bti j" instruction. > > > > [...] > > Applied to kvmarm/fixes. Sorry this took longer than expected, Mostafa. I > was hitting an unrelated issue with pKVM initialization on the only system > I have that supports BTI. > > [1/1] KVM: arm64: Add missing BTI instructions > https://git.kernel.org/kvmarm/kvmarm/c/dcf89d111199 > Thanks Oliver, hopefully everything is sorted out now. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel