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

Re: [PATCH v7 2/6] xen/x86: move generically usable NUMA code from x86 to common


  • To: Wei Chen <Wei.Chen@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 7 Nov 2022 11:14:25 +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=QSzASySL2a91ziBxdlEU5QHsVQQ0z3LYXMU8idMlzaI=; b=mahJm0EJOtZEcR22/SFWvOqPN2jezn7qYBpqIr1uktvgkGGbVFpPIy7s1JSeGzJ2NtnFS/XvuUGWn0RkUOU6Dw8iq/3cCvBrL+MvSLqHCzmSaKyfpmSHQld4ApytF/9XB461cJ28XBXL7/PIT6O1PqB5LgToUK50D2zCvMq9fzGfr+5JzSKkGHyZd1rh9CpTv02STSqumtGSpoIKIj2Fi+HAzKULSOO7AJ9WQ4mejjCrBMvk7oxTyGPgq4JUU0TpIwvGlFZ7th7nQGHrUO10piV9388QHxtpYtps6v+xRFDJxHFUs7G7K624DdAIbJJISeGwYLeDwFtfTzJr5n9bZA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IQHn86ryhl4Hw+Dx0/3CJEs6MNKozWFvyerb3Z+lbOzcGZtegElW47/X7QFwxy4xSPGqVcMPkFiBlJgbJaxpi6l5a44RpATV9B8tjaq7iO49d4MQ0J2dJ7so1ircaViv+X4+raEqZMbxVwaDsY2yF2rO4Yc00SgxPkUupZm6KGBpWav0jWR1RZAy5FErrxZbWBUNU+aQxCEWKcLQ6MXJq+fBS6sVFe/3fPm1fom5nlJUU4wj9vj3uutsiFi3Q7WFOhFFs1Xw8PfXNL4Ptjsbcqjghc0uyZdSa0ygZrmbPm+fOKarsYpjBYUZ5v1wTc8jA/L0viTb/uQzy5ghpzLWBQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: nd <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" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 07 Nov 2022 10:14:30 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 07.11.2022 11:09, Wei Chen wrote:
> Hi Jan,
> 
>> -----Original Message-----
>> From: Jan Beulich <jbeulich@xxxxxxxx>
>> Sent: 2022年11月3日 22:26
>> To: Wei Chen <Wei.Chen@xxxxxxx>
>> Cc: nd <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
>> Subject: Re: [PATCH v7 2/6] xen/x86: move generically usable NUMA code
>> from x86 to common
>>
>> On 20.10.2022 08:14, Wei Chen wrote:
>>> There are some codes in x86/numa.c can be shared by common
>>> architectures to implememnt NUMA support. Just like some
>>> variables and functions to check and store NUMA memory map.
>>> And some variables and functions to do NUMA initialization.
>>>
>>> In this patch, we move them to common/numa.c and xen/numa.h
>>> and use the CONFIG_NUMA to gate them for non-NUMA supported
>>> architectures. As the target header file is Xen-style, so
>>> we trim some spaces and replace tabs for the codes that has
>>> been moved to xen/numa.h at the same time.
>>>
>>> As acpi_scan_nodes has been used in a common function, it
>>> doesn't make sense to use acpi_xxx in common code, so we
>>> rename it to numa_process_nodes in this patch too. After that
>>> if we still use CONFIG_ACPI_NUMA in to gate numa_process_nodes
>>> in numa_initmem_init, that doesn't make sense. As CONFIG_NUMA
>>> will be selected by CONFIG_ACPI_NUMA for x86. So, we replace
>>> CONFIG_ACPI_NUMA by CONFIG_NUMA to gate numa_process_nodes.
>>>
>>> As arch_numa_disabled has been implememnted for ACPI NUMA,
>>> we can rename srat_disabled to numa_disabled and move it
>>> to common code as well.
>>>
>>> The macro node_to_first_cpu(node) hasn't been used anywhere,
>>> so we drop it in this patch too.
>>>
>>> Because some architectures allow to use all 64 physical address
>>> bits, but some architectures are not (like Arm64 allows 52, 48
>>> bits). In this case, we use min(PADDR_BITS, BITS_PER_LONG - 1)
>>> to calculate the shift when only one node is in the system in
>>> this patch too.
>>>
>>> Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
>>
>> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
>> with one small further request (could be taken care of also while
>> committing if no other need for a v8 arises):
>>
> 
> Thanks. This series is in merge conflict status now, do I need to
> send a v8 to fix the merge conflict?

Generally yes. While committers _may_ be willing to fix up conflicts,
strictly speaking the committer role ought to be a purely mechanical
one, i.e. not touching patches at all.

> If yes, I will fix above as well, after PATCH#5 be reviewed.

And I've been meaning to get to that one ... Then again this series
can't be committed anyway before 4.17 was branched off.

Jan



 


Rackspace

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