Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5375188rwp; Mon, 17 Jul 2023 03:04:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlFvqiAg2vMdW/eN1UYCLmjoNC7tN4ZhCWxn2UtwPTM+xrFdfzrWtX7ySyRyVpUBQ96G8ny9 X-Received: by 2002:a05:6a20:7f94:b0:12e:cbce:444a with SMTP id d20-20020a056a207f9400b0012ecbce444amr14691668pzj.37.1689588242637; Mon, 17 Jul 2023 03:04:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689588242; cv=none; d=google.com; s=arc-20160816; b=K2g6WPDFBmmOpHuJPAV+2FxRiubmsDliQHKbIsERAjJeavShVeXLM1S8z886l1bHAd aKYq2ETpqNLnCx302cz4z0eFc6ciSOvzCDd3lEb+C3aYoVy/mlll4f0gvMInWlU8PXAT a7Rtyvxl52rMCPrQH4ohJwmXYqreQfbUYpYOJux2IDUkumQ2XbxJqMsvT6nl9c+o1apA psrrdnGnwcAnVlpRW0TlgttQDbA2Ob66iGHbyCYFfbfQ+5wBzW7gTvDPHzMyqeG9CvHc rN/wQW8Oe0bkwn0Us++D2inIw/xiCbK8e2UC0cPJE8IOeMA1RlvHKGJxXcTR68ZhnEmc j/mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xcfAMuwOY+oPetXy5qABvv5WWymZbV8JjdfSgt/USaw=; fh=/vDNxcjs4f2Sp80/BmrcYBiVUsSHCxLHiFUC4LvYdiw=; b=0rBIDgCL7PxoFxSAEuI2dYpprdhOf9MIIOVTTtlFq865yBR3b4+QOXxBbOUDs9i5WV os/TuaAmYqnqUfrRSTeCMTHIIDzcP1MzEv2di8E4/Q7WV3zWl6jYdf9xXkKCEPFKxDKS 8+9YjXb3xzBwuTKebvc4uATt+6qxdKRqrd8B88GUv3fvqgYmI0y4UajrOnbNL4hJt7ox GK3vwij/4utsmZziIfm+48ysErypUFt/I8p3Zp5u8tHyaddr8WLgfGk+Yb3SwIfD/7jH YIvl4Ffi/qUPCHbOl1cC4gOB3EgQV2Oq/1EFeZiqQUR3f7ShuGolf7mfnJk8HkzlRtCO dkSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=P84DhTSz; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cq8-20020a056a00330800b0067b9a49b078si3997200pfb.12.2023.07.17.03.03.50; Mon, 17 Jul 2023 03:04:02 -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=@google.com header.s=20221208 header.b=P84DhTSz; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230416AbjGQJso (ORCPT + 99 others); Mon, 17 Jul 2023 05:48:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230487AbjGQJs0 (ORCPT ); Mon, 17 Jul 2023 05:48:26 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 272D5A4 for ; Mon, 17 Jul 2023 02:48:25 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-51e24210395so12249a12.0 for ; Mon, 17 Jul 2023 02:48:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689587303; x=1692179303; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=xcfAMuwOY+oPetXy5qABvv5WWymZbV8JjdfSgt/USaw=; b=P84DhTSzyZDW2DrvdeoORjpxBqoxHEIEega8g9wKlZ9UXX5Rd5HZwc48jZnp3QPFBD yMZ6Atn9BHZiRyvS425DKqZp9zKGPq4dlGK/eGNfEJiv90y7kxnRL5FJtgtkO7FSNRN1 BQ32Y+V0stntMjhKObS3+Xhfis2KnVUC7EZDWDG2mFfvljm3l7D54xbNPHWFrd+UmACj eWJw/0Y1bybARKARRhGifrAZgP39Wqm+kCrcVDOclfYdGkD7IHhU9CC0lTat6uhn+XRL dSYu9KPvCBWPFnzP1gNnXYS3N/BNg4BeFLLhmayWbC8D50puIZ98DJ2ENGize8qawdzs ZXKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689587303; x=1692179303; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xcfAMuwOY+oPetXy5qABvv5WWymZbV8JjdfSgt/USaw=; b=IdSEEC9QbfEvgrczuLtgHgMS2WyKqfZdX+T3y///BXM6kmua+umQGKLtjB7OPyuUBG txuVOBWIZwesukaLiRYYNKWu07tspiPBI3X+YvWUo4qatNGjOqc++f5WUJcmVnhOjv04 qMrgohjAKbk6c4Yhlp/kRfq2KETbeUx+Fzun93TbwXigxbWh/ZC28zC94cnfYqHcOe+D zjTgSz/SapepSJPV4G2DA0tjrEDwULw2ftN13VSY5g6A+sHust1ddEiOZTPOQxW/fq9a JSpys18Lvs447EapPfAVG5LknVBX5OFl0Vd/9TdPVfnktZa8PBCUGMTAdpkdOSprwbiB oDxw== X-Gm-Message-State: ABy/qLatBuO7I28iJVQN1MZk3sVfkdiPuhbmHHLCyyWYG1bLrNBu21tS +TipUTg10BZSk1dWpR+Y33sYoQ== X-Received: by 2002:a50:c346:0:b0:51e:5773:891d with SMTP id q6-20020a50c346000000b0051e5773891dmr611167edb.4.1689587303303; Mon, 17 Jul 2023 02:48:23 -0700 (PDT) Received: from google.com (44.232.78.34.bc.googleusercontent.com. [34.78.232.44]) by smtp.gmail.com with ESMTPSA id y17-20020adfee11000000b0031274a184d5sm18752365wrn.109.2023.07.17.02.48.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jul 2023 02:48:22 -0700 (PDT) Date: Mon, 17 Jul 2023 09:48:18 +0000 From: Mostafa Saleh 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 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <168920214959.3096128.780259299986215400.b4-ty@linux.dev> X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,FSL_HELO_FAKE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 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.