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

RE: [PATCH 06/37] xen/arm: use !CONFIG_NUMA to keep fake NUMA API


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Wei Chen <Wei.Chen@xxxxxxx>
  • Date: Fri, 24 Sep 2021 10:21:19 +0000
  • Accept-language: en-US
  • 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=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=zKZgEUAaQkZ8hVm0rcV+n6jvTYurK20EOZky1CvKFdc=; b=MCaArhi/C9m+fSezfFyXsLF1kukx5/k+xTj2OFqspOZuqMWmByw+ksoqef6kWCvLv5h5GaOkiZtV5tP0sLY25RlwNjSL9jxyudQqcsDniYJ6ShN4FKQuumPFaCL3OL0dQgRNjNv3OZeQ++J5Nm0oAsy+8U8uZF0MUD1yV2elJ0Vkt6MHULixz7P28EWTqza4Xf3A3LxSFysDU+ZSQ7geMbzmhCSdEenMr9NX+VTTr5qlbTIKSLtSw5rSlnk7OSHtiEJcp6qZqQU3sxv9qfYMJzVVpMfnaSHxDfVHlEXUOeS3Gwh+w0Bx98UdFDv7Fhhd12mcPp8s7twUEO/vPjFPyg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e4drZaJ53Z3VWnX3uxLNKuyy9ySw+LMJjKeSulZOkuj/n6FjQq9zE8H7NpeFJ7lsycl7U11MGxc/7j3bw/9qv+H3avYXHLaxFefzBJLxwh/aXx+yIs4UxkxfCYbWkbK7hO/gs/AHQPFWXlLzQ8AByyny0Wae7vkV6uEwDYyzF6ZetR7vBBTTLZ6cJesRO1NEudVaqFHTXUbcfdjaW8nJqHpOWKqpJ3RuR0N296xm5gTTDAH4HaSinc0bgf84xXG//kC8OUcLEueLQ2sXF6ZvF73orda2A35gL7/8kFJt/q8dcwCaJueFpCx2wsxrnxb2x7TUyKbHAth3lJhoQ+hcgw==
  • Authentication-results-original: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=arm.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "julien@xxxxxxx" <julien@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Delivery-date: Fri, 24 Sep 2021 10:21:52 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHXsHMNLLzNj13Mj0W39ByxhAsuC6uyTsaAgACsBgA=
  • Thread-topic: [PATCH 06/37] xen/arm: use !CONFIG_NUMA to keep fake NUMA API

> -----Original Message-----
> From: Stefano Stabellini <sstabellini@xxxxxxxxxx>
> Sent: 2021年9月24日 8:05
> To: Wei Chen <Wei.Chen@xxxxxxx>
> Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx; sstabellini@xxxxxxxxxx; julien@xxxxxxx;
> Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
> Subject: Re: [PATCH 06/37] xen/arm: use !CONFIG_NUMA to keep fake NUMA API
> 
> On Thu, 23 Sep 2021, Wei Chen wrote:
> > We have introduced CONFIG_NUMA in previous patch. And this
>                                    ^ a
> 
> > option is enabled only on x86 in current stage. In a follow
>                                 ^ at the
> 
> > up patch, we will enable this option for Arm. But we still
> > want users can disable the CONFIG_NUMA through Kconfig. In
>              ^ to be able to disable CONFIG_NUMA via Kconfig.
> 
> 
> > this case, keep current fake NUMA API, will make Arm code
>                  ^ the
> 
> > still can work with NUMA aware memory allocation and scheduler.
>         ^ able to work
> 
> >
> > Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
> 
> With the small grammar fixes:
> 
> Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
> 
> 

Thanks, I will fix them in next version.

> > ---
> >  xen/include/asm-arm/numa.h | 4 ++++
> >  1 file changed, 4 insertions(+)
> >
> > diff --git a/xen/include/asm-arm/numa.h b/xen/include/asm-arm/numa.h
> > index 9d5739542d..8f1c67e3eb 100644
> > --- a/xen/include/asm-arm/numa.h
> > +++ b/xen/include/asm-arm/numa.h
> > @@ -5,6 +5,8 @@
> >
> >  typedef u8 nodeid_t;
> >
> > +#ifndef CONFIG_NUMA
> > +
> >  /* Fake one node for now. See also node_online_map. */
> >  #define cpu_to_node(cpu) 0
> >  #define node_to_cpumask(node)   (cpu_online_map)
> > @@ -25,6 +27,8 @@ extern mfn_t first_valid_mfn;
> >  #define node_start_pfn(nid) (mfn_x(first_valid_mfn))
> >  #define __node_distance(a, b) (20)
> >
> > +#endif
> > +
> >  static inline unsigned int arch_have_default_dmazone(void)
> >  {
> >      return 0;
> > --
> > 2.25.1
> >

 


Rackspace

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