From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f41.google.com (mail-dl1-f41.google.com [74.125.82.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F4762D73BC for ; Fri, 27 Feb 2026 20:07:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772222829; cv=none; b=aXgV/sdTBeJctGwZbUK271tgH/E3xycU0foDNwoHjYWq9i0HkFefZOBw6La6eth72ArptPrA96EZb2d0QBnnqpXc+U0FYv0aAR01n0s4wdO+lxU73aQwUUZpW0PVmDJ4pIj+HKjtjlFK7lJz9RQkB/iAfAAw1YpW1ipuRvMQNJ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772222829; c=relaxed/simple; bh=IF3MQT3bYeXnP3YO0Q1Pl6nnBU9QmQblexgrw7yEgwo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VKgvqdwcGlZhae7THQ1sHPdNSFvswI7zDnvkvuYoDIH+PrzRZyFmjvYxVmtNOQTsRR+uXOb//0TWp4N5i1saor9IMqyyeAU6BepUlAJoEOB+HcjQjekP00hOqdseNTlVEYv/c1vCaGHMNSOiAH3AFYkBow2K7xwuUoP6IiHc99c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hlPlUG4T; arc=none smtp.client-ip=74.125.82.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hlPlUG4T" Received: by mail-dl1-f41.google.com with SMTP id a92af1059eb24-1271195d2a7so1453602c88.0 for ; Fri, 27 Feb 2026 12:07:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772222827; x=1772827627; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=PjSuOZ+2Hbog2cPlQd+doqzqpzgxwzZPQF2OTOGrX78=; b=hlPlUG4TFsSbsk7og6b5C3tyoEvRSCOhj/Ey1LlUZ8r6cVN3+6YCQaok+1vfrGIU6I r2cPyyThc7XDqGDKz/b07NvusmUU/H5OZe4+dA+M5Unm2zvlceOWoOewxXUUsohNsM1O iT7DlB4f3vAR5RLf/1nxfZS66bRiLpbk9oh0a5LXc8JSlDUD+wOrjlETHLvGtxxQDbDP qkTpLBrHPlybnohB0w493NWp8PH5yGPqc/kRuYA8rIvWc901rGT2uXYPobyMruJqj/aB K7gOZToI0QnNIXqHsgBp2/3yTMFi0Fynt2qtAZNzGWi5YS5adq1lEE1n21lVjWKyURlW z7bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772222827; x=1772827627; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PjSuOZ+2Hbog2cPlQd+doqzqpzgxwzZPQF2OTOGrX78=; b=h2dSk93xAXhSYdX9G6ihH3URZHGVyGMkd1YOc1YlGQj4bWE5BHJoE/jmv0Zuc0wp1A qBWDyxkxRhL0ZAud6hCUV2mX+WC/AYnrO1EyFCG3/Ig5SV1ztwPrF4U82Y9hBwaGmoov aYk57XkchElwQkz8UNih2sc04WtrWY/WqXWcNGsYjRqiLJv9iVuvij7MjVLAHul+VhL9 EePls2aKZ+bnjq4K1cvuqYR+bAIzmQnK2XONBfkhWNdcqCLn3imh94YDrMyHmk8YuUgj PdjQ9HikPo3kHGDBo97IKoAcKoFmNI3zh/La+iJZH77ryFiySHeA/UCKzCgx5bZCQFPx VyPA== X-Gm-Message-State: AOJu0Yy/3Sj4rViJqGbuU+y+0C0/stXBRnO65WhdcyzOvEEwuaRf+UlA +m1wwzwbPVKAx4cxboGrqAHeMMCmwDOJtompFSw7f3epdNgMKWU5ucWwuW5bTA== X-Gm-Gg: ATEYQzzfpsuLY8bXlnuSWXf0LzVvCowjPhb1sP4HFHPYCSQExguYns2PkVaCZjU848D W8L2S8ntk/ovehjpOMZiEP0MAmv0dMooeUMNanfo2cAPLSu/EdkdQfiEMoZ8ogO1FPq40kWDIJm Cz94se20nJyPG2f1+JR4M05bc2HqeNAlmMBNEayQpETHUVeBpBGZB94Qh9tECNsFb0r/bs3mZSM b8/WgDzByzPaYS5zNXlvWQfCGQ2+4yHvKlxvd/H8E5L/xFsnOaP5biYiKMviU26JgSRu6YHxn5p 1O3xOVbheRn8gRgrlJYHWUQlG5DgCiWjLWgDAa8jQ87pfYTrHmJZbTfOkzeUnC/qFeAWmfYsopc OOegGlZfIiSrLxHqKVqGwW6sH8I5DiIZsogK4cyhAaNEjpCJF6465vp7DBiaSaukHor5vuIRy+G 2ORkCgHDuc30qeNhL/rol69t+C3k1UnAzs1CQmljlNlkklR9+0tbDAp1m9NrmV2nYWNkwSJK3YU o756CWhyTKZD3Q= X-Received: by 2002:a05:7022:b8f:b0:123:3bba:fc4c with SMTP id a92af1059eb24-1278fd2e6c6mr1713684c88.38.1772222826690; Fri, 27 Feb 2026 12:07:06 -0800 (PST) Received: from fedora (c-67-164-59-41.hsd1.ca.comcast.net. [67.164.59.41]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-127899df36asm5492002c88.4.2026.02.27.12.07.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Feb 2026 12:07:05 -0800 (PST) Date: Fri, 27 Feb 2026 12:07:03 -0800 From: "Vishal Moola (Oracle)" To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org, "Mike Rapoport (Microsoft)" , Dave Hansen Cc: "Matthew Wilcox (Oracle)" , akpm@linux-foundation.org, Andy Lutomirski , Peter Zijlstra Subject: Re: [PATCH v6 0/4] Convert x86/mm/pat to generic page table apis Message-ID: References: <20260219020354.321088-1-vishal.moola@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260219020354.321088-1-vishal.moola@gmail.com> On Wed, Feb 18, 2026 at 06:03:50PM -0800, Vishal Moola (Oracle) wrote: > set_memory.c has a call to pagetable_free(), while the allocation sites > use get_free_pages(). This causes issues separately allocating ptdescs > from struct page. > > It turns out that we can just use the appropriate generic pagetable > apis for allocation/freeing. This helps simplify and standardize the > code. > > In the short term, this helps enable Matthew's work to allocate frozen > pagetables[1]. And in the long term, this will help us cleanly split > ptdesc allocations from struct page[2]. > > [1] https://lore.kernel.org/linux-mm/20251113140448.1814860-1-willy@infradead.org/ > [2] https://lore.kernel.org/linux-mm/20251020001652.2116669-1-willy@infradead.org/ > > ------ > > Based on current mm-new. Hi Dave, Do you have any more comments for this series? If not, could you please take this through the x86 tree. Thanks :) > v6: > - Drop the renaming of *page* functions > - Use existing page table api instead of creating new apis > - Split the pmd and populate_pgd() changes into separate patches > - Reword the cover letter to describe the new approach > > v5 link: > https://lore.kernel.org/all/20260211195233.368497-1-vishal.moola@gmail.com/ > > Vishal Moola (Oracle) (4): > x86/mm/pat: Convert pte code to use page table apis > x86/mm/pat: Convert pmd code to use page table apis > x86/mm/pat: Convert populate_pgd() to use page table apis > x86/mm/pat: Convert split_large_page() to use ptdescs > > arch/x86/mm/pat/set_memory.c | 36 ++++++++++++++++++++++++------------ > 1 file changed, 24 insertions(+), 12 deletions(-) > > -- > 2.53.0 >