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 83893EB64DA for ; Wed, 12 Jul 2023 22:51:46 +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: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kwHjAuWX6RPy0/MUp9dAUEnODQDDUQC6uS+WRfmKRR0=; b=ahMil2CI1iOVJn A4J5cwfUpKf+Z0G00Z5xsLFuHM014l5GzdJSbdIwL0hQjCQMvqi28uvgWGTHCHzM2AACVwYLan8uT JPOY4SM9+REVTFsBLAL7sMv8xZoh/cWuf30C06zG3kyzKUjDU8oqPoHN4ceaClbYy70SmeAOIHTuT QfWvBl9wOXkHkU9P9ft2J7sgT2wB+SCM9xnHqeME8Nicc+JHzOHsqFGrD9JoBlW2CIB+aIpSYtfzY ZcuQMMHcnnam22ke8gbk49cElg+w7V8v1Hnl2dEZqo1TxSjt+UqwiEDzqK2MHVITJ0ihQXaVPFDrZ sGemIY0DJSUAqyJIRBvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qJifl-001Qet-1b; Wed, 12 Jul 2023 22:51:01 +0000 Received: from out-2.mta1.migadu.com ([2001:41d0:203:375::2]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qJifj-001QdT-0i for linux-arm-kernel@lists.infradead.org; Wed, 12 Jul 2023 22:51:00 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1689202244; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UGwO+NFWVQ6+B443EQUy8r3A++Fa14LZLWf0tT7Rus0=; b=UxHnr5rV6hfCEyOAsdIBnSUrJOh9nbAbwubUfn49e15xmnCPJ9mAqlFvwBT7px7TMqShj/ sYSNok/9alT3jgq8AZzMqyexGbwaShTsLvoWs0dfgzvVMvh5WynUXUO2DeYeJRpuTlHO2q R02CeVXI72J9fYLWnOSFb4UoNJk/u0A= From: Oliver Upton To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, maz@kernel.org, Mostafa Saleh Cc: Oliver Upton , 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 Subject: Re: [PATCH v2] KVM: arm64: Add missing BTI instructions Date: Wed, 12 Jul 2023 22:50:34 +0000 Message-ID: <168920214959.3096128.780259299986215400.b4-ty@linux.dev> In-Reply-To: <20230706152240.685684-1-smostafa@google.com> References: <20230706152240.685684-1-smostafa@google.com> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230712_155059_426121_37C725C9 X-CRM114-Status: UNSURE ( 8.74 ) X-CRM114-Notice: Please train this message. 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 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 -- Best, Oliver _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel