Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp440078rwp; Wed, 12 Jul 2023 16:13:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlHcIBCGOYp6PlHOgMB0g04ixNVoAxcQXJEPnuUytC0b2no8TW/n6ICsTFwRQpNk90x2mFQg X-Received: by 2002:a05:6a00:2492:b0:64d:5b4b:8429 with SMTP id c18-20020a056a00249200b0064d5b4b8429mr62066pfv.18.1689203635904; Wed, 12 Jul 2023 16:13:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689203635; cv=none; d=google.com; s=arc-20160816; b=t/5kD5fqc1JoY0O3tYLAlvK50BwgWPB8I7SPnPuC/WWLR5Z1lWnm828oPIah1Qc5ZN 3Q8bM7i6lv+mk4rLdUpHHdc/RBq0XS7JTPC0jcef9M6Jn77Ju0nWvOY3j5Wfo66fnEqt Ty+2hz1AhD2I6YqXq9DFm/vBdcr+CdzWga3RYmC1f26CGfrMO6E1ekqdlaEDzXEbzSAM r/IsE+CAcY1ISPqADyhEqXoGqJt1kjdZjpAc/OkC28sDyx+uMJn7GK47mcGNpyijtOCy PmNFGE/14GMDyK4EUph/TY7UkpcFU9c5LbihBstN9CfNFJHadgzVAjEDvcBP37w/A4S9 ou4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UGwO+NFWVQ6+B443EQUy8r3A++Fa14LZLWf0tT7Rus0=; fh=pDOr7Rxet/WS3TTrfiIGuaTnc03I7c7IxJDAHFnmsq8=; b=YP7Q5zdtmXxHMLOy4b43pjMLW2WYf6Pu8GVK2HKcEjaT9EQHVGkSRO34cLzuQzklxF 8P/+XyPRHDkFt948RMOV1SAdxI17tlJuZQCqMhxecgKtZxkMH5nCAdNgNCdOwJuTZNar HWmi2c2CrjHtoeOD9aGloX5hgjPpe4GigEqxtVwusB0dINaGHtHUKIvgDknJB/lCIDtL kHi0pF/BEqLGKJV6dpHzoKGKdiaoHqVJ7m0ZixF6T4JvSQaPxZeP7gIQDjQVeIaQ8Kax AbdVeQnOVmJELk0JuyX0O/cJq6XjTv35wqxwSfyoK7OcJ/Iv/mXxZCrsF5ZLuIskeBCc c5gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=UxHnr5rV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k68-20020a633d47000000b0055793097dbesi3949690pga.469.2023.07.12.16.13.43; Wed, 12 Jul 2023 16:13:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=UxHnr5rV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232625AbjGLWuv (ORCPT + 99 others); Wed, 12 Jul 2023 18:50:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbjGLWut (ORCPT ); Wed, 12 Jul 2023 18:50:49 -0400 Received: from out-32.mta1.migadu.com (out-32.mta1.migadu.com [IPv6:2001:41d0:203:375::20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78A761991 for ; Wed, 12 Jul 2023 15:50:46 -0700 (PDT) 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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