From nobody Sat Oct 05 15:08: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 4XLTM53ZV8z5YSMw; Sat, 05 Oct 2024 15:08:33 +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 4XLTM533s1z4CVD; Sat, 5 Oct 2024 15:08:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728140913; 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=C7ewSU1NqJ13ELxjL+c2D50DEl8u6If4oxuHytb7aNE=; b=hy9CEHhU0aBzBTP283YXoI1E+C5dhsIGtNBw13gGm5pF4BN5w15rTfDte0WsloPYinne0G uIxbDtEyxIqyoCT1WBoKjkC2O6CbZ+y7pdyp6qtn18/pAnThvXqUZXEwFson29xnGCQzQ/ YjQA15pov028p4CFKP5ymj50uKrp24vO8WdlQUWPWSlN10XhBuC1+SATIqJ+EhjiTNi4A8 YD9EQf1/O8hyBBbXrrp8VFPBl2G/bHNsB55BhNDP0ESFxHtDMHRb11X62DqFFKmnK6Izo8 Mg5jBzx+3KOhOv34GsCs+90LsPHv88VnfFqpTOLP2rADTs1S/6EcwHvPVtuT9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728140913; 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=C7ewSU1NqJ13ELxjL+c2D50DEl8u6If4oxuHytb7aNE=; b=gaL4WyUiCGybL45phNPZYG1SfbMkWzgL+o+HaxsRG/qK3dm697VGpG2A70tBMuJC68keAq ZMORLnQJvKq4+qBKneNgo6W1vZ/SbgsvcHyPnENjApWoFgKf57y16D9UvTE9PHxbxcQwhi +VYo8GezvVrP/fkSApbK8s3Rf0cZPNsZsiZPZJ7SdCYyo80dlDrLdmmrYKj2C29nhcsuyZ ZcC30yTphNgyVxCeQWWS9u+ARvn4GkCfolegmmOxOg8kUq3T+ykUts+MmEyo1B1cYE6qAu 07q8ykN75YhyDAJTwxKe5WnSFsP3ecM9S+RoMVDBleIErzVE8lPtBipkpXskyA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728140913; a=rsa-sha256; cv=none; b=NOmhdUeMcQfFg/bQ9DUxY1UuL5c21tNW/EHN/xYZ703DsF7mbfw6dp99NXWT8ydQyrIOZ8 AG7f+gNSq1AWgHUGtPgmO2f39sN7Xw2oFsAXJ0xCiZus4N9KaRBuPxBVC31nh4UP+RRNrh WxyPxDDeEtOw6N7ILK1WKW73qOptzJXL/uV3NovCVubhQ8S5y0+fWD4uP3zY98kpv3HJHA D2p70525T8Ib6t64OhC8AIxe8ymPr9QKlgRD893yOm6856djA44iwQ2+tEDYYONoX47GdJ TgYxZHnDNdW9jyBihoiduxhmtrCEot9pUEOv9F3757XjcnCUyJ+3whEwIwOnIg== 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 4XLTM52gkczN3N; Sat, 5 Oct 2024 15:08: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 495F8XMo004396; Sat, 5 Oct 2024 15:08:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 495F8XMC004393; Sat, 5 Oct 2024 15:08:33 GMT (envelope-from git) Date: Sat, 5 Oct 2024 15:08:33 GMT Message-Id: <202410051508.495F8XMC004393@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Bojan =?utf-8?Q?Novkovi=C4=87?= Subject: git: 149e1af6ae49 - main - vm_kern: Use VM_ALLOC_NOFREE when allocating 'zero_region' page 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: bnovkov X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 149e1af6ae4936fac0a907d4c62d745c179b4dc5 Auto-Submitted: auto-generated The branch main has been updated by bnovkov: URL: https://cgit.FreeBSD.org/src/commit/?id=149e1af6ae4936fac0a907d4c62d745c179b4dc5 commit 149e1af6ae4936fac0a907d4c62d745c179b4dc5 Author: Bojan Novković AuthorDate: 2024-10-05 15:05:40 +0000 Commit: Bojan Novković CommitDate: 2024-10-05 15:05:40 +0000 vm_kern: Use VM_ALLOC_NOFREE when allocating 'zero_region' page Allocate the 'zero_region' page using VM_ALLOC_NOFREE since it never gets released. Differential Revision: https://reviews.freebsd.org/D46885 Reviewed by: alc, markj, kib --- sys/vm/vm_kern.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c index fb7c80b767ed..22776e2196b0 100644 --- a/sys/vm/vm_kern.c +++ b/sys/vm/vm_kern.c @@ -762,7 +762,8 @@ kmem_init_zero_region(void) * zeros, while not using much more physical resources. */ addr = kva_alloc(ZERO_REGION_SIZE); - m = vm_page_alloc_noobj(VM_ALLOC_WIRED | VM_ALLOC_ZERO); + m = vm_page_alloc_noobj(VM_ALLOC_WIRED | VM_ALLOC_ZERO | + VM_ALLOC_NOFREE); for (i = 0; i < ZERO_REGION_SIZE; i += PAGE_SIZE) pmap_qenter(addr + i, &m, 1); pmap_protect(kernel_pmap, addr, addr + ZERO_REGION_SIZE, VM_PROT_READ);