From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F185606A680 for ; Tue, 1 Dec 2026 15:08:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=Erxa++u+ Received: by kanga.kvack.org (Postfix) id F1BAA6B05D3; Tue, 1 Dec 2026 10:08:12 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id ECCC36B05E5; Tue, 1 Dec 2026 10:08:12 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DE19B6B05E8; Tue, 1 Dec 2026 10:08:12 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 9D63C6B05D3 for ; Tue, 1 Dec 2026 10:08:12 -0500 (EST) Received: from smtpin26.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay05.hostedemail.com (Postfix) with ESMTP id BAA8840EF9 for ; Tue, 1 Dec 2026 15:08:11 +0000 (UTC) X-FDA: 85495744782.26.506D73D Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by imf18.hostedemail.com (Postfix) with ESMTP id E66FF1C0009 for ; Tue, 1 Dec 2026 15:08:09 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=google.com header.s=20260707 header.b=Erxa++u+; spf=pass (imf18.hostedemail.com: domain of 32OIOawoKCDkeocjpbcojibjjbgZ.Xjhgdips-hhfqVXf.jmb@flex--jthoughton.bounces.google.com designates 209.85.214.198 as permitted sender) smtp.mailfrom=32OIOawoKCDkeocjpbcojibjjbgZ.Xjhgdips-hhfqVXf.jmb@flex--jthoughton.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; a=rsa-sha256; d=hostedemail.com; s=arc-20220608; cv=none; t=1796137690; b=G9DzqvYfcTzwjeI0036vUL2TKkbjCJbcq+LPBm6e8aNuIib6zK4ItmAOARhmQbUuiwNE16 RXdbcdmqEEMQztw9FOySQn9PSWEyj9tzPSBxvEJwIEpoJcu9ULNF47hqPbzWdrW//4yg0e cqy9+9CwxlqdRW8JCU9i6XCBathH7Q0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1796137690; h=from:from:sender: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:in-reply-to: references:dkim-signature; bh=g6HuuWJXG3L2qdyxrVyieOil30FIQQxHb26Cc0nVy54=; b=gkjtMl9z7lgzhNSOffvjNYmgMn40GgksHbp5HFAzGYgINFl91RUmyRcM7oGD9znHzS7QPY SjwhSKY3guKtYPmyeHQAUxPw9FPO94Hw7q+qlRpY7yjQbXmeCN5iibnUZF7f53Ef4G2+GJ X3/YroEsHV/SxCqU5cJGZnOspB3u8go= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=google.com header.s=20260707 header.b=Erxa++u+; spf=pass (imf18.hostedemail.com: domain of 32OIOawoKCDkeocjpbcojibjjbgZ.Xjhgdips-hhfqVXf.jmb@flex--jthoughton.bounces.google.com designates 209.85.214.198 as permitted sender) smtp.mailfrom=32OIOawoKCDkeocjpbcojibjjbgZ.Xjhgdips-hhfqVXf.jmb@flex--jthoughton.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-2f05c68629cso86163055ad.1 for ; Tue, 01 Dec 2026 07:08:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796137688; x=1796742488; darn=kvack.org; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=g6HuuWJXG3L2qdyxrVyieOil30FIQQxHb26Cc0nVy54=; b=Erxa++u+SsWupS88CcI8XRwekBGYcJIJPYNTo0S2TMqL0Z0ftLEMr6mRWJdnyL40cT 0hBZpWEuDkQZSIzAoId+iNnhEX0VqFfn+Pq2Zs6Ddh/EJm6PjjTHKGcjEmgcf0yba75r Q4OHpbQRLrf2R/JDbohl5lDUZtT9c90YAAzfdjgVBot1qguYmY08YM4uZn1ml/W+14VO bm9xxvpNjFZA2VRLtYlUN3dFnr4/1XqtPSVtS7tZaZB9GWvJr/Jf+VfttScWd9LM6Vd9 3OEU84ZhjqVapeFf+HRszYITS/VQDqFjEle1IwM8BTz4mI/cyz/AE1wraHJcRXyFmAty aIkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796137688; x=1796742488; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=g6HuuWJXG3L2qdyxrVyieOil30FIQQxHb26Cc0nVy54=; b=mRmsUTXQDaRda33pdRk0TJlRb0yJpMS5xkD9p4jIOQ+VWcX4mATacRI7VE3c2CXHgq POjAMr1duo4IC6AF3oAzqNxZuC28Hi3z2BS0bjM+m3Sm51CUdTbOFIydQWXZ6ZkGAtLJ h4kwv74WIxFHNjgD7G2/vkBxg5Yvwvm/d0qQpzXf90AYzYNLBb5z96FHCfgD0UGUNRBy wnBuVfr7a/YOuVo/1PON5GpMJY5hMhmIKwhESNE4dLz8MVjjWD+VoIFmp0YGwy6/gQa0 wNBJ+3meyuAZ/iyW9wiXdMhFkPEGci7m4OWABJZWSGWdNnR1uL02iKpfNyGLsx0KX3kG Kuaw== X-Forwarded-Encrypted: i=1; AL+hErHRbM12aqRBvxS08uepM08Ayz4GUTsfMzAneRGhgPMoBTLFf1gAMXobYiinCXRYXjKWW0zTiOFkDw==@kvack.org X-Gm-Message-State: APuU4Z+8PPbseRorLhU9DFrKCtzZCfzjSTNItkq0THoJ6wOv7+6Itgwd cZlYjo3sEJOc6VVQzegKL8AxCNaZkcrO+kYI3qyq5NGUBbTryO8K645I4XYk5ztPeIQYKzS+YPD 4XYlIns32a7Ql3TBfI2YQFA== X-Received: from plpj15.prod.google.com ([2002:a17:903:3d8f:b0:2ef:a836:c1be]) (user=jthoughton job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:eccf:b0:2f0:25ea:8fa8 with SMTP id d9443c01a7336-2f03f176abamr406797445ad.19.1796137688189; Tue, 01 Dec 2026 07:08:08 -0800 (PST) Date: Tue, 1 Dec 2026 15:07:42 +0000 X-Archived-By: Mime-Version: 1.0 X-Mailer: git-send-email 2.56.1.839.g22a8290db9-goog Message-ID: <20261201150801.2239894-1-jthoughton@google.com> Subject: [PATCH v4 00/18] Another attempt at HVO support on arm64 From: James Houghton To: Will Deacon , Catalin Marinas , Muchun Song , Oscar Salvador , Andrew Morton Cc: Kefeng Wang , Nikos Nikoleris , Linu Cherian , Mark Rutland , David Hildenbrand , Ryan Roberts , Nanyong Sun , Yu Zhao , Frank van der Linden , David Rientjes , James Houghton , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" X-Rspam-User: X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: E66FF1C0009 X-Spam-Status: No, score=-26.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_PASS, SPF_PASS,USER_AGENT_GIT,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=4.0.1 X-Stat-Signature: dk7uts4w4xcnhst7u7foa4u1rweiuxa8 X-HE-Tag: 1796137689-489484 X-HE-Meta: U2FsdGVkX1+h1wkEcG2Y8ks1SGUvtn+B3cvXaIYtl+GSPq9l50K+zBCQNpdLI4G7sd+x9E6GmvA00W9sf8+oKT3goy/hpBR94aj+ryJvydwRP4gzB1vEQTfOCSGOBgjAg2z1EyAXLA54BUxqb2QyGkTAidTuU9LXlS+1lQlZDjBT9gZnjg2ZvagVJ+Yv/Fi+m2elhrPfqjgF56xZ2LYRAzrINNoE+0WH61iDvqOlgjw+FCzwICJya+A1gkrH6uCCZNkRCdL7awlENZuttSFmhfHGpfqgzgG4/rkx142neMHZzGRuf4Zqu1OPkIseMZlmFSDQjayo51ODQ4anJ6w2znOaC7EgvniMTM6XmJ+BwUWKo2NkE2L8G/Gd7zhZQ+Add977zH2cd20/CQHbxo86etNA0C0Biaas97lpHTKOsXfDLFEyIRv+C7ovpAkNgpzQaUfZQC/Pt0TG68spujYImpx5BlgtqnEofPd9sMaWj6QAIsuHIpVzpz14KfZv1aUswjoxkjinxEP8JB8fJU4EoOIKueiy0QIKD23zJXEqOx3XyEHQBpC6CdDNf6izCUAqErEBscBK0+FuFehZhAjN3MgouQTkus0NoHWU3+y01P8QsbhDhVgl99d3gvghPKxBcZLl4cULb358jiAi5+Tk8naD7raHpXOFpHZ7LGdVmouH6mxRFK7U0I3UWNth3J2OYJTXfiET79o1vsvdlnxiSv3+sHEdEgI8O0uiUNRZjbrW3R+h7b05KG40Xa5P9ia3uZdL6QCe7NvtVLfQqeIuQfsJJXclCkrGRCtdW/LpMPuhJz1nOFm/mTr0kGcYuvYwzKKThi+z8gtzI0RcHl+ZlKRRMSOhubroG3ApN34S7lYBVKa3K43CkZmB6D6GBRvawlfaHMKLuSOlorcJdSG1HrzxPFZU2e4T2oBNRLrIApBzDX4P+uSE7IE6oxF+bms8gXtBpC4/DBqUSIJm1Z7 cAmwOtcr d68YfIx7/QONDKSNd9d/G8v5dZuVBT2VDzKOAqHlWorhShuYUh48uB5sWaekyXkEr9zYeN+ZGqBDLR1QSNqp51YXU4zUYwVcK3vzhD6Kn93YOizHwhWTQVhW8yOozy51yryk9tdcSo6vDzCRwrQ/QRzqC/bF+5w7ZXbtVO7PiWM6BkhIhhurLiGgMyYnGPF66SmxIVh1TOn+V2xl1r2R+wLb1ce8sS0TFeaO24sodwzPufdj6cGutZ0OZ7WWur/TdbgilQ8UwxnOFkhtGy8Hcl2MXcjLpynwa7Apo0lUwHBIqWlRK6M7qMGCQmlBVUZr46oAXF/FUfYFyik8xH6sTe/sHGstFzYNaBSz3wIqElALU9CqzbCaKkUTqwQHz9uj4/1u6y4reYg3kIPvnTTY/HKmFYteo3YTjAvDCEonETK+u5bwdNA6TVMqcvYzNYAjJDgDnpVod+7yal+5lNW4K/BtJYcT6CXUiDGsrf7Rv5xiGXKt3nEY9JCPLqK7c//2yjXrjVaGcZACsuVnnWMBMaA7WoVs0HWJrX1YWvAsbpP0cyBEfLmM9N4tfydtSb3pyqXYtDccvZExD/Uaw9hrdRa7BT1lQU8NScKvhQ0g7rAZVXn/47XSmnEvOfOafZAKJyCCuRI0czF8bCqinZX+AJnFOTLwDa/OVYuE19LIJHeOmADG1/0eTwVojTRH/5JSzOdg5YL2MHxFjoyFTUyCrkPcpcZNCHT6J4K+pUv21Nxvy/FSNTFCcNzj+JXnfZ3cDaY/0x7Cm+7z5BXeyubmgpxuBqiEZiISe1VipWWuL0oErYQ27U1cOr80ME4eTrZrAvf0cO2QC3TzCYfY7mK7MPrUp6K0G7CroKjJwzw8ATnOS3zk= Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hi everyone, This is v4 of the series to enable HVO on arm64. This version of the series is based on mm-new (872ceec1e3ca). I've uploaded the series here as well: http://github.com/48ca/linux hvo-v4 As with last time, the last 5 patches are optional, and I've tagged them as RFC, as it's unclear if using the AF trick to do BBM-less block -> table transitions is architecturally sound without BBML3. The patches should be mergeable if it is in fact sound. The biggest changes since v3: - bbm_through_af is now an ARM64_CPUCAP_EARLY_LOCAL_CPU_FEATURE instead of a system feature. In v3, BBML3 support was only checked on the CPU that finalized the system capabilities, so a system where only some CPUs support BBML3 could have enabled HVO. Now every early CPU is checked, and late CPUs that lack the feature are rejected. (Thanks Catalin and Sashiko!) - Renamed try_update_vmemmap_pte() to vmemmap_update_pte(), try_populate_vmemmap_pmd() to vmemmap_update_pmd(), and arch_support_vmemmap_remap() to arch_supports_vmemmap_remap(). The generic vmemmap_update_pte() and vmemmap_update_pmd() are now opt-out (architectures override them by defining the macro) instead of opt-in, so x86, riscv, and LoongArch no longer need to define ARCH_WANTS_GENERIC_POPULATE_VMEMMAP_{PTE,PMD}. (Thanks Muchun!) - Dropped "hugetlb_vmemmap: Expose whether HVO is enabled to architecture code". Instead, arm64 now parses hugetlb_free_vmemmap= itself with its own early_param(), so that vmemmap_optimize_enabled can stay private to HugeTLB. (Thanks Muchun!) And some smaller changes: - vmemmap_remap_range() now only flushes the part of the range that was actually remapped, and doesn't flush at all if nothing was remapped. (Thanks Sashiko!) - hugetlb_vmemmap_restore_folios() now also flushes the TLB when restoring a folio fails partway through. (Thanks Sashiko!) - "hugetlb: Optimize bootmem folios that were not pre-HVOed" now restores the early return in hugetlb_vmemmap_optimize_folios() when there is nothing to optimize, and its comment is condensed. (Thanks Muchun and Sashiko!) - The arm64 BUILD_BUG_ON() on VMEMMAP_START alignment is now guarded by compound_info_has_mask(). (Thanks Muchun!) - Removed references to "pre-HVO" from the arm64 vmemmap_populate() comment and dropped an arm64-specific comment from vmemmap_split_pmd(). (Thanks Muchun!) - New arch_supports_vmemmap_remap() doc comment. (Thanks Muchun!) - The arm64 vmemmap_update_pmd() now invalidates a single page when clearing the AF on a block entry, instead of PMD_SIZE, which could escalate to flush_tlb_all() without FEAT_TLBIRANGE. (Thanks Sashiko!) - The changelog for "arm64: Support hugetlb vmemmap optimization" now explains that BBML3 is needed because HVO shatters in-use vmemmap PMD block mappings. - Selftest: re-online memory blocks at the end of every stress phase instead of only on exit, and fail if mktemp -d fails. (Thanks Sashiko!) I have not changed vmemmap_update_pte() to return void, as Muchun suggested; please see my reply from v2[2]. I'd appreciate any thoughts from the arm64 folks on this. v3: https://lore.kernel.org/linux-mm/20261122184453.2668189-1-jthoughton@google.com/ v2: https://lore.kernel.org/linux-mm/20261003002123.505555-1-jthoughton@google.com/ v1: https://lore.kernel.org/linux-mm/20260708031129.3503195-1-jthoughton@google.com/ Claude Opus 5.5 was used while drafting this version of the series. Like the last versions, it was used to draft the selftests, and in this version, it helped address review feedback. Thanks! And now for the rest of the background of these patches, updated from v3's cover letter: -- Background and Structure -- This patch series uses a trick with the Access Flag on CPUs that support hardware update of the AF to update vmemmap page table entries without introducing a time window where CPUs accessing the vmemmap might fault. By avoiding faults, the HugeTLB vmemmap optimization (HVO) can be implemented correctly on arm64 in a much more straightforward way than previously attempted, most recently here[1] (please see [1] for a breakdown of the other approaches attempted before). For large-memory systems that allocate most of their available memory to HugeTLB, HVO saves a huge amount of memory (1.5% of system memory). This series has a few parts: 1. Use LDCLR to clear the AF for PTEs (patch 1). 2. Some preliminary HVO changes to support HVO on Arm (patches 2-7). 3. arm64 changes to enable HVO (patches 8-11). 4. Fault injection and a stress test (patches 12-13). 5. Drop the BBML3 requirement for HVO (patches 14-18). Part 5 is optional, and whether or not the claims it makes about the Arm memory model are accurate is not 100% clear. -- The AF trick -- The trick is that translations with the AF unset cannot be cached in the TLB (see Rule R_DWZCQ in the Arm ARM), so they can be atomically updated without needing a full break-before-make sequence. So the PTE update sequence becomes: 1. Atomically clear the AF on the existing PTE. 2. Invalidate the TLB. 3. cmpxchg the AF=0 PTE with the new PTE. If this fails, goto 1. If there is a CPU on the system that does not support hardware access flag updates, clearing the AF is problematic, as those CPUs might fault on the vmemmap usage. Therefore, HVO compatibility checks all CPUs for HW AF updates. -- Application to HVO -- HVO relies on the following page table transitions: - When enabling HVO for a page, PMD block entries in the vmemmap are shattered into PMD table entries. The first vmemmap page of the folio is copied to a newly allocated page and remapped to it, and the remaining PTEs are remapped to a shared page of tail struct pages (that is, there is an OA change for every PTE). - When disabling HVO for a page, the PTEs that map the shared tail page are remapped to newly reallocated pages of struct pages. The PMD block -> table transition is not undone. In part 3 of this series, I use the Access Flag trick to do the PTE updates. We rely on BBML3 for the PMD block -> table transition. In part 5, I re-use the Access Flag trick to do the PMD block -> table transition without needing BBML3. For systems that support BBML3, the logic is unchanged. Because the in-place updates can fail (if the cmpxchg keeps losing the race with hardware AF updates), HVO now handles failures at any point: a failed optimization is rolled back, and if the rollback or a later restore fails, the folio is left partially optimized (and remains marked as such) rather than being freed with a broken vmemmap. -- Late-onlining of CPUs that do not support HW AF -- HVO support is modeled as an early local CPU feature (called "BBM through AF"). It is checked on every early CPU. If not all early CPUs support the feature, attempts to HVO pages will fail, and the HVO sysctl will be hidden. If it is enabled, late CPUs that do not support it are rejected. To avoid penalizing systems that have asymmetric support for BBM-through-AF (i.e., HW AF, as BBML3 cannot be mismatched), BBM-through-AF will check that HVO is in fact enabled. Because BBM-through-AF needs to know if HVO will be enabled when CPU features are detected, HVO cannot be dynamically enabled, hence the patches that do this. (There are other ways to solve this, please see v1). -- Litmus test -- The following Herd litmus test demonstrates the PTE update routine: AArch64 TTDFaultlessUpdate Variant=vmsa TTHM=HA { uint64_t x=1; uint64_t y=2; [PTE(x)]=(oa:PA(x), af:1); 0:X0=PTE(x); 1:X0=PTE(x); 0:X1=x; 1:X1=x; pteval_t 0:X2=(oa:PA(x), af:0); pteval_t 0:X3=(oa:PA(y), af:1); } P0 | P1 ; LDR X4,[X0] | L0: ; MOV X5,X4 | LDR X2,[X1] ; CAS X4,X2,[X0] | ; DSB ISHST | ; LSR X9,X1,#12 | ; TLBI VAALE1IS,X9 | ; DSB ISH | ; ISB | ; CAS X2,X3,[X0] | ; exists 0:X5=0:X4 /\ (* First CAS must succeed *) (fault(P1:L0) \/ ~(1:X2=2 \/ 1:X2=1)) (* This test should not contain "Warning-BBM-expected". *) -- Testing -- I've tested this series with the included selftest, which stresses the optimization, unoptimizing, and failure cases. [1] https://lore.kernel.org/linux-arm-kernel/20241107202033.2721681-1-yuzhao@google.com/ [2] https://lore.kernel.org/linux-mm/CADrL8HWNaurYHGnpvC9qwr6bVU74YhhucCuhoVYcvqmSX+R6+Q@mail.gmail.com/ James Houghton (18): arm64/pgtable: Clear AF with LDCLR on supported systems hugetlb_vmemmap: Always flush TLB if needed upon PTE remapping hugetlb_vmemmap: Leave pages partially HVOed upon restore failure hugetlb_vmemmap: Use vmemmap_update_pte to update in-use PTEs hugetlb_vmemmap: Allow architectures to dynamically disallow HVO hugetlb: Optimize bootmem folios that were not pre-HVOed hugetlb_vmemmap: Allow architectures to make HVO enablement boot-time only arm64: Add bbm_through_af capability arm64: Implement vmemmap_update_pte using the AF trick arm64/mm: Align vmemmap to maximal folio size arm64: Support hugetlb vmemmap optimization hugetlb_vmemmap: Add fault injection for in-place vmemmap PTE updates selftests/mm: Add HugeTLB vmemmap optimization stress test hugetlb_vmemmap: Use vmemmap_update_pmd for replacing in-use PMDs arm64: Implement vmemmap_update_pmd using AF trick arm64: Drop BBML3 requirement for HVO hugetlb_vmemmap: Add fault injection for in-place vmemmap PMD splits selftests/mm: Add HVO pmd-split fault injection tests .../admin-guide/kernel-parameters.txt | 2 + Documentation/admin-guide/sysctl/vm.rst | 3 + .../fault-injection/fault-injection.rst | 8 + arch/arm64/Kconfig | 2 + arch/arm64/include/asm/cpufeature.h | 5 + arch/arm64/include/asm/pgalloc.h | 61 +++ arch/arm64/include/asm/pgtable.h | 74 +++- arch/arm64/kernel/cpufeature.c | 48 +++ arch/arm64/mm/init.c | 18 +- arch/arm64/mm/mmu.c | 9 + arch/arm64/tools/cpucaps | 1 + fs/Kconfig | 3 +- include/linux/pgalloc.h | 23 + include/linux/pgtable.h | 39 ++ lib/Kconfig.debug | 9 + mm/Kconfig | 7 + mm/hugetlb.c | 7 + mm/hugetlb_vmemmap.c | 170 ++++++-- mm/hugetlb_vmemmap.h | 2 + tools/testing/selftests/mm/Makefile | 2 + .../selftests/mm/hugetlb_vmemmap_stress.sh | 392 ++++++++++++++++++ .../selftests/mm/ksft_hugetlb_vmemmap.sh | 4 + tools/testing/selftests/mm/run_vmtests.sh | 4 + 23 files changed, 853 insertions(+), 40 deletions(-) create mode 100755 tools/testing/selftests/mm/hugetlb_vmemmap_stress.sh create mode 100755 tools/testing/selftests/mm/ksft_hugetlb_vmemmap.sh base-commit: 872ceec1e3caf227655a58f7407a9c8493dcf56f -- 2.56.1.839.g22a8290db9-goog