Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 78AC21039893 for ; Fri, 27 Feb 2026 20:35:37 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vw4YE-0006E7-5h; Fri, 27 Feb 2026 15:35:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vw4YC-0006CB-K0 for qemu-devel@nongnu.org; Fri, 27 Feb 2026 15:35:04 -0500 Received: from tor.source.kernel.org ([172.105.4.254]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vw4YB-0006Vn-8M for qemu-devel@nongnu.org; Fri, 27 Feb 2026 15:35:04 -0500 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id B238760126; Fri, 27 Feb 2026 20:35:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F5BAC116C6; Fri, 27 Feb 2026 20:34:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772224500; bh=xzCkwnEHVjgR8gWWLd33wYa0CC3QGqKgARqIMbKM5ys=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=WHZoFjie7lBHTGkQjmX/qSTEHgXj0GI7CnFwKfPvLkuoDzEAFw46UiHFqfpepjj7A Vo/zTkIRlmq0bwNN2KTEYITwvPUIQ2nM6Y8KdwFEjKiHLM8sOEPdymVE5d7U0W/gog AWhGEhxcZPqrwGo17ggEELFhguw8t2scOXbx9fHBMlElcLSf3mkeno0Mk7VwdTZhfW aaV2tIICcTBksWed9FN5YBIFJbRTOTvxv6bjadRQsX/1BngIHeloJCwDo2ZLyDgEiX gnO1CgjMvaS1rpcCO18qOf2/lcDIvAK0vNwZwh7gxqU2v+h6Fi4p5Prin/OID8eESX AWJWe4yaOlvPw== Message-ID: <7facab80-c59f-4869-a68d-2e61acd15cb3@kernel.org> Date: Fri, 27 Feb 2026 21:34:55 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 1/1] numa: add 'memmap-type' option for memory type configuration To: fanhuang , 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 References: <20260226105023.256568-1-FangSheng.Huang@amd.com> <20260226105023.256568-2-FangSheng.Huang@amd.com> From: David Hildenbrand Content-Language: en-US In-Reply-To: <20260226105023.256568-2-FangSheng.Huang@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=172.105.4.254; envelope-from=david@kernel.org; helo=tor.source.kernel.org X-Spam_score_int: -9 X-Spam_score: -1.0 X-Spam_bar: - X-Spam_report: (-1.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.706, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.401, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org 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 > --- > 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 :) -- Cheers, David