From: David Hildenbrand <david@kernel.org>
To: "Huang, FangSheng (Jerry)" <FangSheng.Huang@amd.com>,
qemu-devel@nongnu.org, imammedo@redhat.com, gourry@gourry.net,
jonathan.cameron@huawei.com
Cc: apopple@nvidia.com, dan.j.williams@intel.com,
Zhigang.Luo@amd.com, Lianjie.Shi@amd.com
Subject: Re: [PATCH v6 1/1] numa: add 'memmap-type' option for memory type configuration
Date: Wed, 4 Mar 2026 18:16:02 +0100 [thread overview]
Message-ID: <d60cf470-be2a-4ca5-b6d2-e01b548c03cb@kernel.org> (raw)
In-Reply-To: <f36e249f-820d-4033-81c3-2b172453d1aa@amd.com>
On 3/2/26 10:01, Huang, FangSheng (Jerry) wrote:
>
>
> On 2/28/2026 4:34 AM, David Hildenbrand wrote:
>> On 2/26/26 11:50, fanhuang wrote:
>>> Add a 'memmap-type' option to NUMA node configuration that allows
>>> specifying the memory type for a NUMA node.
>>>
>>> Supported values:
>>> - normal: Regular system RAM (E820 type 1, default)
>>> - spm: Specific Purpose Memory (E820 type 0xEFFFFFFF)
>>> - reserved: Reserved memory (E820 type 2)
>>>
>>> The 'spm' type indicates Specific Purpose Memory - a hint to the guest
>>> that this memory might be managed by device drivers based on guest
>>> policy.
>>> The 'reserved' type marks memory as not usable as RAM.
>>>
>>> Note: This option is only supported on x86 platforms.
>>>
>>> Usage:
>>> -numa node,nodeid=1,memdev=m1,memmap-type=spm
>>>
>>> Signed-off-by: fanhuang <FangSheng.Huang@amd.com>
>>> ---
>>> hw/core/numa.c | 24 ++++++++++++
>>> hw/i386/acpi-build.c | 8 ++++
>>> hw/i386/e820_memory_layout.c | 72 ++++++++++++++++++++++++++++++++++++
>>> hw/i386/e820_memory_layout.h | 12 +++---
>>> hw/i386/pc.c | 48 ++++++++++++++++++++++++
>>> include/system/numa.h | 7 ++++
>>> qapi/machine.json | 24 ++++++++++++
>>> qemu-options.hx | 14 ++++++-
>>> 8 files changed, 202 insertions(+), 7 deletions(-)
>>
>> I didn't take a look at the x86 implementation bits. The high-level
>> concept LGTM.
>>
>> In an ideal world, we'd only indicate the property if actually supported
>> by the machine. Not sure if that is easy to achieve with the "-numa"
>> option. So I guess this has to do :)
>>
> Hi David,
>
> Thanks for the review and the LGTM on the high-level concept!
>
> Regarding the per-machine property visibility — agreed, it would be
> cleaner. Currently we handle it with a runtime error when memmap-type
> is used on non-x86 machines, which seems like a reasonable compromise
> given the "-numa" option structure.
>
> I was wondering if there's anything else you or the other maintainers
> would like me to address in the current v6?
Not from my side, so
Acked-by: David Hildenbrand <david@kernel.org>
on the core bits.
--
Cheers,
David
next prev parent reply other threads:[~2026-03-04 17:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-26 10:50 [PATCH v6 0/1] numa: add 'memmap-type' option for memory type configuration fanhuang
2026-02-26 10:50 ` [PATCH v6 1/1] " fanhuang
2026-02-27 20:34 ` David Hildenbrand
2026-03-02 9:01 ` Huang, FangSheng (Jerry)
2026-03-04 17:16 ` David Hildenbrand [this message]
2026-03-04 17:19 ` Gregory Price
2026-03-05 10:39 ` Huang, FangSheng (Jerry)
2026-03-05 21:06 ` Gregory Price
2026-03-06 5:48 ` Huang, FangSheng (Jerry)
2026-03-05 12:32 ` [PATCH v6 0/1] " Jonathan Cameron via qemu development
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=d60cf470-be2a-4ca5-b6d2-e01b548c03cb@kernel.org \
--to=david@kernel.org \
--cc=FangSheng.Huang@amd.com \
--cc=Lianjie.Shi@amd.com \
--cc=Zhigang.Luo@amd.com \
--cc=apopple@nvidia.com \
--cc=dan.j.williams@intel.com \
--cc=gourry@gourry.net \
--cc=imammedo@redhat.com \
--cc=jonathan.cameron@huawei.com \
--cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.