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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 223C4C7EE24 for ; Tue, 30 May 2023 18:02:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232613AbjE3SC3 (ORCPT ); Tue, 30 May 2023 14:02:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233048AbjE3SCE (ORCPT ); Tue, 30 May 2023 14:02:04 -0400 Received: from out-18.mta0.migadu.com (out-18.mta0.migadu.com [91.218.175.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4401CA3 for ; Tue, 30 May 2023 11:01:53 -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=1685469711; 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=YTW2WZcJbmr3F/89QdtMcHmMfxHGHqRJaYPa9+0DRL8=; b=v/5QRLtEoombNtt+OOiLmFWsyg32+NKE+BEak9MXWHACKSaIj4LmJivYz+94pXHqf2WbFK 1Xtqv05pJTvcYhpEQyTjyuUkuZQnOsIqs7bST5GMHi98Rck9LMVesKA7Qxs/3b+8SE8E/z f58m02RHd/vTGR+670um7/9j91svoHo= From: Oliver Upton To: linux-kernel@vger.kernel.org, Mostafa Saleh , linux-arm-kernel@lists.infradead.org, maz@kernel.org, kvmarm@lists.linux.dev Cc: Oliver Upton , bgardon@google.com, suzuki.poulose@arm.com, gshan@redhat.com, tabba@google.com, yuzenghui@huawei.com, will@kernel.org, james.morse@arm.com, qperret@google.com, catalin.marinas@arm.com Subject: Re: [PATCH v3] KVM: arm64: Use BTI for nvhe Date: Tue, 30 May 2023 18:01:40 +0000 Message-ID: <168546969288.1201076.8549235994369669662.b4-ty@linux.dev> In-Reply-To: <20230530150845.2856828-1-smostafa@google.com> References: <20230530150845.2856828-1-smostafa@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 30 May 2023 15:08:45 +0000, Mostafa Saleh wrote: > CONFIG_ARM64_BTI_KERNEL compiles the kernel to support ARMv8.5-BTI. > However, the nvhe code doesn't make use of it as it doesn't map any > pages with Guarded Page(GP) bit. > > kvm pgtable code is modified to map executable pages with GP bit > if BTI is enabled for the kernel. > > [...] Applied to kvmarm/next, thanks! [1/1] KVM: arm64: Use BTI for nvhe https://git.kernel.org/kvmarm/kvmarm/c/b53d4a272349 -- Best, Oliver