Re: [PATCH v2 3/9] xen/x86: move generically usable NUMA code from x86 to common

2022-07-13 Thread Jan Beulich
On 12.07.2022 15:13, Jan Beulich wrote: > On 08.07.2022 16:54, Wei Chen wrote: >> --- /dev/null >> +++ b/xen/common/numa.c >> @@ -0,0 +1,439 @@ >> +/* >> + * Generic VM initialization for NUMA setups. >> + * Copyright 2002,2003 Andi Kleen, SuSE Labs. >> + * Adapted for Xen: Ryan Harper >> + */ >>

RE: [PATCH v2 3/9] xen/x86: move generically usable NUMA code from x86 to common

2022-07-13 Thread Wei Chen
PATCH v2 3/9] xen/x86: move generically usable NUMA code > from x86 to common > > On 08.07.2022 16:54, Wei Chen wrote: > > --- /dev/null > > +++ b/xen/common/numa.c > > @@ -0,0 +1,439 @@ > > +/* > > + * Generic VM initialization for NUMA setups. > > + * Copyrig

Re: [PATCH v2 3/9] xen/x86: move generically usable NUMA code from x86 to common

2022-07-12 Thread Jan Beulich
On 08.07.2022 16:54, Wei Chen wrote: > --- /dev/null > +++ b/xen/common/numa.c > @@ -0,0 +1,439 @@ > +/* > + * Generic VM initialization for NUMA setups. > + * Copyright 2002,2003 Andi Kleen, SuSE Labs. > + * Adapted for Xen: Ryan Harper > + */ > + > +#include > +#include > +#include > +#includ

[PATCH v2 3/9] xen/x86: move generically usable NUMA code from x86 to common

2022-07-08 Thread Wei Chen
There are some codes in x86/numa.c can be shared by architectures to implement 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 th