From: sashiko-bot@kernel.org
To: "Pankaj Gupta" <pankaj.gupta@amd.com>,
"Thomas Gleixner" <tglx@kernel.org>,
"Ingo Molnar" <mingo@redhat.com>,
"Borislav Petkov" <bp@alien8.de>,
"Dave Hansen" <dave.hansen@linux.intel.com>,
x86@kernel.org, "Jonathan Corbet" <corbet@lwn.net>,
"Shuah Khan" <skhan@linuxfoundation.org>,
rdunlap@infradead.org
Cc: "Arnd Bergmann" <arnd@arndb.de>,
"Dapeng Mi" <dapeng1.mi@linux.intel.com>,
"Marco Elver" <elver@google.com>,
"H . Peter Anvin" <hpa@zytor.com>,
"Tom Lendacky" <thomas.lendacky@amd.com>,
"Ard Biesheuvel" <ardb@kernel.org>,
"Kiryl Shutsemau" <kas@kernel.org>,
"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
"Mike Rapoport" <rppt@kernel.org>,
linux-mm@kvack.org, linux-efi@vger.kernel.org,
Pankaj.gupta.linux@gmail.com,
"Ethan Nelson-Moore" <enelsonmoore@gmail.com>,
"Karl Mehltretter" <kmehltretter@gmail.com>
Subject: Re: [PATCH v2] Documentation: kernel-parameters: memmap= and mem= in confidential guests
Date: Fri, 04 Dec 2026 11:36:32 +0000 [thread overview]
Message-ID: <sashiko-outbox-249696@kernel.org> (raw)
In-Reply-To: <20261203113547.250526-1-pankaj.gupta@amd.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] Documentation: memmap= best-effort warning omits hole-creating
variants
- [Low] Documentation: commit subject mentions confidential guests
absent from diff
--
commit 375ba6787248885f8395ae9c50ef874b593daa3b
Author: Pankaj Gupta <pankaj.gupta@amd.com>
Documentation: kernel-parameters: memmap= and mem= in confidential guests
This commit documents in Documentation/admin-guide/kernel-parameters.txt
that the mem= and memmap= boot parameters are best effort and may break
consistency among platform firmware memory descriptions.
Link: https://lore.kernel.org/all/96be8f5a-8f65-48ff-8263-1d5d5f706354@intel.com/
> Documentation: kernel-parameters: memmap= and mem= in confidential guests
[Severity: Low]
Should the commit subject be updated to match the generalized change?
The documentation text no longer mentions confidential guests, so a
subject stating that mem= and memmap= are best effort would better match
the diff while keeping confidential guests in the body as motivation.
> diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> index dce9b8f3ae980..9636e662fed1f 100644
> --- a/Documentation/admin-guide/kernel-parameters.txt
> +++ b/Documentation/admin-guide/kernel-parameters.txt
[ ... ]
> @@ -3971,6 +3975,10 @@ Kernel parameters
> Example:
> memmap=100M@2G,100M#3G,1G!1024G
>
> + This option is best effort and may break the mutual
> + consistency of the various memory descriptions provided
> + by the platform firmware.
> +
> memmap=nn[KMG]#ss[KMG]
> [KNL,ACPI,EARLY] Mark specific memory as ACPI data.
> Region of memory to be marked is from ss to ss+nn.
[Severity: Low]
Does this note miss the hole-creating memmap= variants?
The wording says "This option" and sits only under memmap=nn[KMG]@ss[KMG],
which adds RAM. The hole-creating forms like memmap=nn[KMG]$ss[KMG] (and
the #, !, and % entries) have no warning or cross-reference back here, so
users configuring those variants will miss the caveat.
Rewording this to apply to all memmap= forms and cross-referencing it from
the other entries (as memmap=exactmap does) would ensure all variants are
covered.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203113547.250526-1-pankaj.gupta@amd.com?part=1
prev parent reply other threads:[~2026-12-04 11:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 11:35 [PATCH v2] Documentation: kernel-parameters: memmap= and mem= in confidential guests Pankaj Gupta
2026-12-03 13:40 ` Mike Rapoport
2026-12-04 11:08 ` Gupta, Pankaj
2026-12-03 15:20 ` Dave Hansen
2026-12-03 16:14 ` Ard Biesheuvel
2026-12-04 11:13 ` Gupta, Pankaj
2026-12-04 11:36 ` sashiko-bot [this message]
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=sashiko-outbox-249696@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=Pankaj.gupta.linux@gmail.com \
--cc=ardb@kernel.org \
--cc=arnd@arndb.de \
--cc=bp@alien8.de \
--cc=corbet@lwn.net \
--cc=dapeng1.mi@linux.intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=elver@google.com \
--cc=enelsonmoore@gmail.com \
--cc=hpa@zytor.com \
--cc=ilias.apalodimas@linaro.org \
--cc=kas@kernel.org \
--cc=kmehltretter@gmail.com \
--cc=linux-efi@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mingo@redhat.com \
--cc=pankaj.gupta@amd.com \
--cc=rdunlap@infradead.org \
--cc=rppt@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=skhan@linuxfoundation.org \
--cc=tglx@kernel.org \
--cc=thomas.lendacky@amd.com \
--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