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

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


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Wei Chen <Wei.Chen@xxxxxxx>
  • Date: Wed, 9 Nov 2022 10:10:10 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=2; 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=m7KOwHGezCjhItd6i0Hy/vun2FBA+HxEjTeZbTd+yUc=; b=Or2pRFfRnrLWGaIXla+tOouVOBQNfXu8JCBGg/RK5UrrsjvfocN0d09sD76sGZbROq+I0GIKInl3bvYQzbT8+XRnsIiX5PKTB3/LfW5wPLyjafueRNiZ3VXezvRviSYiD8azp4lDvsFAQ0c8o9r4wbNgMljQEgMvBU6fIpCMqbejrzSiUOJNKFsFM8QWV2ZBXBYSYYW2I6cRhjS0x6EKN6u2aYDSEeHm4y9W9lnXTZJwtB9TCAeRRDgLk5d2kX69Ddd90renFTYnkMjyHIgloxl4xo8oIJo9gF/IcT/WkRbn3TKSzhlebUiy0OxDt4a0h19FCBvjK66FEcUJryxZ6w==
  • 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=m7KOwHGezCjhItd6i0Hy/vun2FBA+HxEjTeZbTd+yUc=; b=dHkF6Aie8b9aAPZqEwsLZ/Ot5tXR6M/zEb0s5zWnY3lDjcftCboGLi0oS1u+tLQok55Du11BV5aM1jg/iXz/v5C8WbVzJavQyhXg88BF4MQHzaTuSMsz3EzjSC/V2yDJL6ZWf9tni09tP1081/dUygk8k4WB8xCYhlk+Juw3IGJnaVswP5dJSkNLKs7SoTmHLWNNzXNx6ahUsnqaVtCsYeJ8cUyWbI6s4fffAARoD4ge9QAsItitwXlr38X3cecRi2gTnr1KWfTk3+WITUFMcIT4YN9BVQrrjrZYuHT6PpL+HlRt9oMFtQSfQ1hSnfeaF1NVB4xmoaI+Nl8qKd8hyg==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=kg8IFAVEfNfFCBG/bEU+zjizMh3chWlbwB24dhLh8ynufMIy1XJHoJLAoIumtwaTStr2omVwz5bV/NKMrTDn4Wh6y4l4MULyOKQJrB8efD+9ZA5D6G8tVc3ZpUxqRQ6I2sE6usYX1hcr4u54MTE7p2S8208M0x5kEcESsnelBuONfDpFt6UAC9hBIoboy9OBrtQ5kbKsSm6gLJwWTv6easJILbnbGEUxe/1345lMUVcmlJExAGxtcGaA0dO2DKTQ987I2FbuqlQBYXM4rQS3m49VtSTY720+cgpYOKZcIBUnLRE+B6ZI+XmESPHajUJ8iyhtjNoMaSi/9VH4wUzVjQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gk1Ds5nUbpWQ5yiI417DXoHIiVaANzjZ2/ll0yB6ahlieemNPyNKODW6gE7Q+rWU6YDQ0GbeVGFg9RK845KltKYyO+t/DIVtJ49voRs+SyQ0HmCMk4IYZB6/qGq6j2Rm9xTkvQL9PhYkode/+tS9ZRqUzfp4snzFAOrwTo17jJ/3AAGerR/U/txJaP1Zciy7CfTzcSyZBL9p5N/yImJMNO8HC14314Gi9wku/4ysaCgxsUkpKtkBYEBq5MH0pfQBRoj5ueymmp8p0VPWUkjxjdEOB92oIZWrIuo44utar39Y1+QpRRO7zND9TpyxoWbxRMI2irFKOcNOYGo7hSEB/A==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.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: Wed, 09 Nov 2022 10:10:30 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHY5EtSdgmFSeaU8UGG/Ef8aqU5eq41XS4AgAEIj3CAAA1igIAACvYA
  • Thread-topic: [PATCH v7 5/6] xen/x86: move NUMA process nodes nodes code from x86 to common

Hi Jan,

> -----Original Message-----
> From: Jan Beulich <jbeulich@xxxxxxxx>
> Sent: 2022年11月9日 17:30
> 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 5/6] xen/x86: move NUMA process nodes nodes code
> from x86 to common
> 
> On 09.11.2022 09:51, Wei Chen wrote:
> >> -----Original Message-----
> >> From: Jan Beulich <jbeulich@xxxxxxxx>
> >> Sent: 2022年11月9日 0:55
> >>
> >>> @@ -341,159 +247,14 @@ acpi_numa_memory_affinity_init(const struct
> >> acpi_srat_mem_affinity *ma)
> >>>           pxm &= 0xff;
> >>>   node = setup_node(pxm);
> >>>   if (node == NUMA_NO_NODE) {
> >>> -         bad_srat();
> >>> +         numa_fw_bad();
> >>>           return;
> >>> -                         }
> >>> -         } while (found && start < end);
> >>> -
> >>> -         if (start < end) {
> >>> -                 printk(KERN_ERR "NUMA: No NODE for RAM range: "
> >>> -                         "[%"PRIpaddr", %"PRIpaddr"]\n", start, end - 1);
> >>> -                 return 0;
> >>> -         }
> >>> - }
> >>> - return 1;
> >>> + numa_fw_nid_name = "PXM";
> >>
> >> ... this to be happening too late. Not because I can see a way for
> current
> >> code to use the variable earlier, but because of the risk of future
> code
> >> potentially doing so. Afaics srat_parse_regions() is called quite a bit
> >> earlier, so perhaps the field should (also?) be set there, presumably
> >> after acpi_table_parse() has succeeded. I've included "(also?)" because
> I
> >> think to be on the safe side the setting here may want keeping, albeit
> >> perhaps moving up in the function.
> >>
> >
> > When I was composing this patch, I also thought current place to call
> this
> > "PXM" setting would be a little late. But since there is only one
> function
> > that uses this prefix right now, I thought it was acceptable at the time.
> > But obviously your concerns make sense, I will move this call to
> > srat_parse_regions after acpi_table_parse has been done successfully.
> 
> As said - perhaps not move, but copy. There is an (extremely unlikely)
> case
> where srat_parse_regions() would not be called at all.
> 

Got it, understand now.

Cheers,
Wei Chen

> Jan

 


Rackspace

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