From nobody Mon Sep 16 23:02:33 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 4X70mp1CfNz5WLQR; Mon, 16 Sep 2024 23:02:34 +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 4X70mn6BtRz4S5N; Mon, 16 Sep 2024 23:02:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726527753; 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=8X87GIMGXHGPLhXC1Ma3v5aHXbVa7cdwxFlAaszRB9U=; b=Z+Rwbuws6sRExLyi/e37tA5aV2h/vpaSA/irLOOfGoBQqmVXrQ6lb8qnymi8rT1jFEofLn lB/bF43Thc2EAPfdN1F02M6eDDfgFofxFAjoEUTHb9WFJJTymuo6kVJjKIZNbQPHN8WDzT Ug4EUttiMg31XxKgqb/mzr0p+YrUCcwc3PNTznh9hm5UCKSnHnAigErvOK0r5TZNuH3d3J HS3amV2LkD1JnnPLXJFdr3ivbwtFYCacgiYLgTEk2XOYM8v7hhna2S9WmwKN86UWj6j/L+ Q2FVIVDNHnZXWYbtYskaZgxo7KifkLCEASbWaW5VjUI2jVcBHIuQEPXAkDfQVQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726527753; a=rsa-sha256; cv=none; b=Dc96s1crZZ3xFj8E1/8vSs5cuBDiE1mdA1mY5oWQPAVMHEH2YPxE3uyPf4kOPrZJ/k9BCv 1FFIsEVT++TkkZJ5DYYIx973cjt92uSgQblySPlVRSKdH4BvQ5tcp4tWYiBLKrzPpIUItf fX9t3NXHMPucs8bD9GxlIlgoq3TyWoZxbisLYnk2LeUTXqCfFf7rxuSOEatUzmR9c+4Wfl 0uWwm0fNZWRFSBvylRr2MiiTj36eNPJ2U0iDGtvYmugYHLqptN9To7yOhsHGMJuTN5JCY9 Mgwzr6gPPIHCe6pQlRbKJPh7qNGQ9rfs4JFStBm9W4LnhsJJc7v13RdbvwQwdA== 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=1726527753; 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=8X87GIMGXHGPLhXC1Ma3v5aHXbVa7cdwxFlAaszRB9U=; b=QA0vmXVfPp4mXdB9njxuF9IZqxkeqOd4qrA+FDjy6A4gcsl54ne7B/yGVusNMU3XHxeXRd Oo85WjjUlLk7kCtFswCGnS88wxFoq1EdORF+zd7EhH2e6wMdr7VO4/bVMsRfIPKRTGivYH S/zawEUGiJqB6/PPQcGrvx8mcWAU+gVBRSGuPwq4Uvq5jNkqci71uaup5IyWjT4A5UlUKY kahWLh7a5uA//s5Hm9NpiDcJMZOhQWzcm1cImSeNyfHUhYK6stHKrZD2x1GxnQNqKkdzBt RvDKFd+T9TWXhxJB1PJZJbCuiPXEwiBRXI5autji7AEQbxRQb2IpqQR0ruJRbg== 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 4X70mn5pFHz1CxX; Mon, 16 Sep 2024 23:02:33 +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 48GN2X6j043065; Mon, 16 Sep 2024 23:02:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48GN2X87043062; Mon, 16 Sep 2024 23:02:33 GMT (envelope-from git) Date: Mon, 16 Sep 2024 23:02:33 GMT Message-Id: <202409162302.48GN2X87043062@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: 4f82af24f111 - main - amd64 pmap: do not set PG_G for usermode pmap pml5 kernel 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: 4f82af24f1113a7df224daded227d4e9de582c0b Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=4f82af24f1113a7df224daded227d4e9de582c0b commit 4f82af24f1113a7df224daded227d4e9de582c0b Author: Konstantin Belousov AuthorDate: 2024-09-16 17:57:23 +0000 Commit: Konstantin Belousov CommitDate: 2024-09-16 23:02:14 +0000 amd64 pmap: do not set PG_G for usermode pmap pml5 kernel entry Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/amd64/amd64/pmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index f7e3ef4233ee..fd4697a266e3 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -4375,7 +4375,7 @@ pmap_pinit_pml5(vm_page_t pml5pg) * entering all existing kernel mappings into level 5 table. */ pm_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 | pmap_cache_bits(kernel_pmap, VM_MEMATTR_DEFAULT, false); /* @@ -4412,7 +4412,7 @@ pmap_pinit_pml5_pti(vm_page_t pml5pgu) */ pm_pml5u[pmap_pml5e_index(UPT_MAX_ADDRESS)] = pmap_kextract((vm_offset_t)pti_pml4) | - X86_PG_V | X86_PG_RW | X86_PG_A | X86_PG_M | pg_g | + X86_PG_V | X86_PG_RW | X86_PG_A | X86_PG_M | pmap_cache_bits(kernel_pmap, VM_MEMATTR_DEFAULT, false); }