From nobody Mon Sep 16 08:15:11 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X6d4v5NSnz5WkY2; Mon, 16 Sep 2024 08:15:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X6d4v35xzz4RTj; Mon, 16 Sep 2024 08:15:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726474511; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uyDimxQlkhX5ISDSLaYvr8Td/wPUrK4lKfXNYZgUsAM=; b=GYy13yoX8guqX8VburQ+MgkMw6akOsCtD+MHoTmv3brpBL7oGlg1zpz4oBWs6vL7ojQy0Q aWqWkl1B6dxDzuWvWuJZcmLj7RCSvzdeyIzsVuvEEYLqg/E8F4kdeKYRSAPNeL+MI/9DHP aKmVx5cXfBl6IAvNhyVDYn77wA+Le9dEPzd0X9zBFqRYvHlwEKMSN8Ffh8yEpu0yC5CvxJ ck5ZAUkry3MR2drQxFEIoRt1TZcTpZlbp+RZZLfFhozXcG70VbtGI7n9OL9zC3QsSpKX7Z ZiXPZHwoSfXZkgNPaE8B2fXOA69geyv9DTM7qExQEQAfwApNXca+B3LxbzIJtQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726474511; a=rsa-sha256; cv=none; b=Rw+asC7d/kvb6ZIfxac/kogvxWiF7ThqYoWsmmPVihvvYfsaKM56BAHGR4v1V2BDjEE7h3 WyhRNtVNc4xpi2WR/uUB1KdsKnuYnsDjBIsE/rEGWMLE/9Gmirv0kzLklFrWUyCcSOkRBv +3vaVHxwxZgvYeQJprzybX6qWgRyaWIPNQLMDb+IoShjlHQCFJp/ScgB6AWx7zI1bpKd5Q f4WXNgqakfJeLTeni9XxENmuKt9JsUj80bxXCaTHXK4LI4SsqwUC9Z4pZEfppyguXmZ/Eb JZYzjsO0Th0i98rEC10L2/Jm7AaMVIDrlZrYcHL8RHe1XJNI90XD6e5RP3napg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726474511; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uyDimxQlkhX5ISDSLaYvr8Td/wPUrK4lKfXNYZgUsAM=; b=UzCcrf3JSLpXKDh6ve/jGCZBsXVzFd0njAj3ueCFa5sfRinDsou5ndCgRGqVXID1QzEyVS aU341dywiBVyiXo/RBF0BL2AP9RAlzwRaGAaLOLycMixan25sMkQRPwR/1vtzf0mLFLS76 B+X/vde0t79yxtvwwXuzm1HFcY5HBcUDNMy7/gGdbeIAheYZIgl2BwRDGthiadnUH0Ha1M y95bg5l2AuQ/UIQMdJ06Jw4t2El5FbkyOtLeHjJ0Qf7GbAGsDWL3PXNbvVTjfO28cbBVYs Ll17kpJi2j8KW7KV/yf6VpNeNnacaqG1Xr2ghuomdHolmbUdtH4g8vYtR6Antg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X6d4v2PBPznB7; Mon, 16 Sep 2024 08:15:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48G8FBZQ027378; Mon, 16 Sep 2024 08:15:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48G8FBYf027375; Mon, 16 Sep 2024 08:15:11 GMT (envelope-from git) Date: Mon, 16 Sep 2024 08:15:11 GMT Message-Id: <202409160815.48G8FBYf027375@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 678bc2281c37 - main - la57: do not set global bit for PML5 entry List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 678bc2281c3727e920604545240d9115de3d1bd3 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=678bc2281c3727e920604545240d9115de3d1bd3 commit 678bc2281c3727e920604545240d9115de3d1bd3 Author: Konstantin Belousov AuthorDate: 2024-09-14 17:15:51 +0000 Commit: Konstantin Belousov CommitDate: 2024-09-16 08:13:51 +0000 la57: do not set global bit for PML5 entry The bit is reserved for PLM5, causing #PF on KVA access on real hardware, unlike QEMU. Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/amd64/amd64/pmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index b513c0c9c957..eadcb726b6c2 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -2226,7 +2226,7 @@ pmap_bootstrap_la57(void *arg __unused) * entering all existing kernel mappings into level 5 table. */ v_pml5[pmap_pml5e_index(UPT_MAX_ADDRESS)] = KPML4phys | X86_PG_V | - X86_PG_RW | X86_PG_A | X86_PG_M | pg_g; + X86_PG_RW | X86_PG_A | X86_PG_M; /* * Add pml5 entry for 1:1 trampoline mapping after LA57 is turned on.