The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Brendan Jackman <jackmanb@google.com>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	Andy Lutomirski <luto@kernel.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
	Borislav Petkov <bp@alien8.de>,
	x86@kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] x86: update comment about pgd_list
Date: Mon, 11 May 2026 12:49:08 -0700	[thread overview]
Message-ID: <1aa93abe-5145-439a-bd8e-a0d4375da889@zytor.com> (raw)
In-Reply-To: <DIFTEC3WXWML.1SRCEBVWN5JBR@google.com>

On 2026-05-11 04:35, Brendan Jackman wrote:
> On Mon Mar 23, 2026 at 2:25 PM UTC, Brendan Jackman wrote:
>> This venerable comment got detached from its context when the code moved
>> in commit 394158559d4c ("x86: move all the pgd_list handling to one
>> place"). Put it back next to its context. It was originally on
>> pgd_list_add() but it actually describes pgd_list so put it there.
>>
>> While moving it, update it to strip away stale and superfluous info.
>> pageattr.c doesn't exist any more. pgd_list is now required
>> for all x86 architectures. Also be slightly more precise about what PGDs
>> are in this list.
>>
>> Signed-off-by: Brendan Jackman <jackmanb@google.com>
>> ---
>> Changes in v2:
>> - Moved it next to pgd_list instead of back to old location
>> - Strip away stale bits from the comment
>> - Added note about PGDs that _aren't_ in this list
>> - Link to v1: https://lore.kernel.org/r/20260311-pgd_list-comment-v1-1-4ea51b41adee@google.com
> 
> Hi Dave,
> 
> I think this is ready?
> 
> (I don't see it in tip/master, apologies if I'm looking in the wrong
> place).

The PAE code comment should still remain.

I don't know if the 32-bit PAE code is still suffering from Xen-induced drain
bramage (using a whole page to store 32 bytes), but it is nevertheless true in
a fashion -- as there are a maximum of 3 kernel PDE pages, they are considered
the de facto top level of the kernel page tables.

	-hpa


  reply	other threads:[~2026-05-11 19:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260323-pgd_list-comment-v2-1-77ccf2dc77e8@google.com>
2026-05-11 11:35 ` [PATCH v2] x86: update comment about pgd_list Brendan Jackman
2026-05-11 19:49   ` H. Peter Anvin [this message]
2026-05-11 20:43     ` Dave Hansen
2026-05-11 18:27 ` [tip: x86/mm] x86: Update " tip-bot2 for Brendan Jackman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1aa93abe-5145-439a-bd8e-a0d4375da889@zytor.com \
    --to=hpa@zytor.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=jackmanb@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox