[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v9 5/6] xen/x86: move NUMA process nodes nodes code from x86 to common


  • To: Wei Chen <wei.chen@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 18 Nov 2022 14:10:55 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yYkz69mvailF3/Dnf5UMLrpVpwRVCUcsht9JOvU8pFY=; b=kvs4gyxsITu6d6OMY63dc5JvxRnNlQJqhzEsOIgFzuh+J9RyhHkM9qbjVgUh3rd3vflGCITb6ooazVNhHnV5Oxd4mUIuzFl6Ji98dHIqtJf1caQN4z7oomYX9o4eDECD5kbF+BBnA9gw/4+5Nc8iGPoajaxNzgjV6DpBWMo4eN6qb2VR051MFf83yD5O93FIS4Q6JOPLukqGmUYYxrzJEA0vh2pFfIBctuS/K17iQpUnTzfh3PBPnNAIkLHF+tJb1X3vd/M3VBbbbyo8SBCMiQ7cBRz8yqqdSMLLUUaYh7yXj3M4EnJUKaHe1Llwi4Kg1jTiTGM6mQrQJhkUiAcFnw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FxkN2mFNq2ywYwIcinIgOd+tBJqzgJMGjt+TYy2zr7id2hJBBcLOTlnNAYJqWfCWwiICntvoqHVQ5jyAWJiSvJf4Gvafj3JWZYbgb46SczrnxvN64/nEJbGjgcymrzJOV2vj0G4W7SyMWpR6MD1yW6kyn92USh5dqsnRhWopA10RC0js/Te3AWLNtKVZ6UVda2ZDBGFb5vk3lAQ+9zfTqiFxPXnZ+w0TWWD3/SO/H7YxfBQQYkfh//dSUd4JWJlNKAA6FouEHCPE5ZW4YwWoPyOO5XuDX/V1pcgNDACHxnoGuf+aWrepltUjEdyMBo2k4SKrP0iKE8YWiAv29u5jqQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: nd@xxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 18 Nov 2022 13:11:02 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 18.11.2022 11:45, Wei Chen wrote:
> x86 has implemented a set of codes to process NUMA nodes. These
> codes will parse NUMA memory and processor information from
> ACPI SRAT table. But except some ACPI specific codes, most
> of the process code like memory blocks validation, node memory
> range updates and some sanity check can be reused by other
> NUMA implementation.
> 
> So in this patch, we move some variables and related functions
> for NUMA memory and processor to common as library. At the
> same time, numa_set_processor_nodes_parsed has been introduced
> for ACPI specific code to update processor parsing results.
> With this helper, we can reuse most of NUMA memory affinity init
> code from ACPI. As bad_srat and node_to_pxm functions have been
> used in common code to do architectural fallback and node to
> architectural node info translation. But it doesn't make sense
> to reuse the functions names in common code, we have rename them
> to neutral names as well.
> 
> PXM is an ACPI specific item, we can't use it in common code
> directly. So we introduced an numa_fw_nid_name for each NUMA
> implementation to set their specific firmware NUMA node name.
> In this case, we do not need to retain a lot of per-arch code
> but still can print architectural log messages for different
> NUMA implementations. A default value "???" will be set to
> indicate an unset numa_fw_nid_name.
> 
> mem_hotplug is accessed by common code if memory hotplug is
> activated. Even if this is only supported by x86, export the
> variable so that other architectures could support it in the future.
> 
> As asm/acpi.h has been removed from common/numa.c, we have to
> move NR_NODE_MEMBLKS from asm/acpi.h to xen/numa.h in this patch
> as well.
> 
> Signed-off-by: Wei Chen <wei.chen@xxxxxxx>

Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>





 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.