Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4894598rwd; Tue, 30 May 2023 11:25:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ485xBJ3B0Iptpu4tQi1ux02bJFwxhdeky9X6L2HZSPxUYC/CbeuU0BbAGroBxYSJJXB7kD X-Received: by 2002:a17:90b:4c0e:b0:255:de13:4683 with SMTP id na14-20020a17090b4c0e00b00255de134683mr3463373pjb.19.1685471107602; Tue, 30 May 2023 11:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685471107; cv=none; d=google.com; s=arc-20160816; b=ccLsDkCWtB0Ta/okaMKO1V/agVv1ZuYl8BNdVmqLMlzZJOjkXVuTdMP5CXHz188/wC bVFoThku37F4NemhKGn/2BW8eW4F9x7AjnFo6WOjHlM1r70SMS3jhWeDDmMWrcHYuwNA 4GdoRKPxXYZ/WSb3CrZq9c3kyut4lWwc8I+wF4gk7IxL1htoqezFmutLEE060T9hL50f wUd8q0k8USFIuEyaI22ourBXsy6xNSqZsAP4ifjc7k/md2iWdsi+6mHsfPD4LAcyaP5M Lqf6wUcmnETucR8ZW55aBXN0vYt5IOs1ZoMKmu0KgSa+zZb2QJlf7f87AFjKZiaVh2Go dNcA== 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=YTW2WZcJbmr3F/89QdtMcHmMfxHGHqRJaYPa9+0DRL8=; b=jsgQ4tunE1hpmoTV+Z1xFdJDuofEMEu31ySQZP+r+Nu4fCR90DYSLHOboHCbnTjK4g 7ciHqPFjxzVvuq0nYuUq80JLmeomVcqlASJmFk72QMZaKia4pzgnBJWNU5vkkLw/Nmz2 a/D+DOfUPNgQpMNZh3h1MncShwZg0JQ7kqKcahPBEw+o2KueVD/VUuzEpLIfQJI73iNr nxWQu5+mD8bNxIEcL3V1I30IZLJXWmyUU2Xz9leULp2DXVHedtUDZ9CBM1VluzE4KBQx qree4T/5G9Hy2xxf6IKzLdxKMxg2kJ2D5GoscH+G7byMknme0VRaouWytzaSBVqwwgtL K5iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="v/5QRLtE"; 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 ch14-20020a17090af40e00b00256b986e608si1697444pjb.132.2023.05.30.11.24.51; Tue, 30 May 2023 11:25:07 -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="v/5QRLtE"; 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 S232684AbjE3SC2 (ORCPT + 99 others); Tue, 30 May 2023 14:02:28 -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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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