Re: [PATCH v6 01/15] xen/common: add cache coloring common code

2024-02-05 Thread Jan Beulich
On 03.02.2024 11:57, Carlo Nonato wrote: > On Thu, Feb 1, 2024 at 1:59 PM Jan Beulich wrote: >> On 29.01.2024 18:17, Carlo Nonato wrote: >>> --- a/xen/arch/Kconfig >>> +++ b/xen/arch/Kconfig >>> @@ -31,3 +31,20 @@ config NR_NUMA_NODES >>> associated with multiple-nodes management. It is

Re: [PATCH v6 01/15] xen/common: add cache coloring common code

2024-02-05 Thread Jan Beulich
On 03.02.2024 11:57, Carlo Nonato wrote: > On Wed, Jan 31, 2024 at 4:57 PM Jan Beulich wrote: >> On 29.01.2024 18:17, Carlo Nonato wrote: >>> +Background >>> +** >>> + >>> +Cache hierarchy of a modern multi-core CPU typically has first levels >>> dedicated >>> +to each core (hence using

Re: [PATCH v6 01/15] xen/common: add cache coloring common code

2024-02-03 Thread Carlo Nonato
Hi Jan, On Thu, Feb 1, 2024 at 1:18 PM Jan Beulich wrote: > > On 29.01.2024 18:17, Carlo Nonato wrote: > > --- /dev/null > > +++ b/docs/misc/cache-coloring.rst > > @@ -0,0 +1,87 @@ > > +Xen cache coloring user guide > > += > > + > > +The cache coloring support in Xen

Re: [PATCH v6 01/15] xen/common: add cache coloring common code

2024-02-03 Thread Carlo Nonato
Hi Jan, On Thu, Feb 1, 2024 at 1:59 PM Jan Beulich wrote: > > On 29.01.2024 18:17, Carlo Nonato wrote: > > --- a/xen/arch/Kconfig > > +++ b/xen/arch/Kconfig > > @@ -31,3 +31,20 @@ config NR_NUMA_NODES > > associated with multiple-nodes management. It is the upper bound of > > the

Re: [PATCH v6 01/15] xen/common: add cache coloring common code

2024-02-03 Thread Carlo Nonato
Hi Jan, On Wed, Jan 31, 2024 at 4:57 PM Jan Beulich wrote: > > On 29.01.2024 18:17, Carlo Nonato wrote: > > Last Level Cache (LLC) coloring allows to partition the cache in smaller > > chunks called cache colors. Since not all architectures can actually > > implement it, add a HAS_LLC_COLORING

Re: [PATCH v6 01/15] xen/common: add cache coloring common code

2024-02-01 Thread Jan Beulich
On 29.01.2024 18:17, Carlo Nonato wrote: > --- a/xen/include/xen/sched.h > +++ b/xen/include/xen/sched.h > @@ -626,6 +626,11 @@ struct domain > > /* Holding CDF_* constant. Internal flags for domain creation. */ > unsigned int cdf; > + > +#ifdef CONFIG_LLC_COLORING > +unsigned

Re: [PATCH v6 01/15] xen/common: add cache coloring common code

2024-02-01 Thread Jan Beulich
On 29.01.2024 18:17, Carlo Nonato wrote: > --- a/xen/arch/Kconfig > +++ b/xen/arch/Kconfig > @@ -31,3 +31,20 @@ config NR_NUMA_NODES > associated with multiple-nodes management. It is the upper bound of > the number of NUMA nodes that the scheduler, memory allocation and >

Re: [PATCH v6 01/15] xen/common: add cache coloring common code

2024-02-01 Thread Jan Beulich
On 29.01.2024 18:17, Carlo Nonato wrote: > --- /dev/null > +++ b/docs/misc/cache-coloring.rst > @@ -0,0 +1,87 @@ > +Xen cache coloring user guide > += > + > +The cache coloring support in Xen allows to reserve Last Level Cache (LLC) > +partitions for Dom0, DomUs and Xen

Re: [PATCH v6 01/15] xen/common: add cache coloring common code

2024-02-01 Thread Jan Beulich
On 31.01.2024 16:57, Jan Beulich wrote: > On 29.01.2024 18:17, Carlo Nonato wrote: >> +Command line parameters >> +*** >> + >> +More specific documentation is available at >> `docs/misc/xen-command-line.pandoc`. >> + >> ++--+---+

Re: [PATCH v6 01/15] xen/common: add cache coloring common code

2024-01-31 Thread Jan Beulich
On 29.01.2024 18:17, Carlo Nonato wrote: > Last Level Cache (LLC) coloring allows to partition the cache in smaller > chunks called cache colors. Since not all architectures can actually > implement it, add a HAS_LLC_COLORING Kconfig and put other options under > xen/arch. > > LLC colors are a

[PATCH v6 01/15] xen/common: add cache coloring common code

2024-01-29 Thread Carlo Nonato
Last Level Cache (LLC) coloring allows to partition the cache in smaller chunks called cache colors. Since not all architectures can actually implement it, add a HAS_LLC_COLORING Kconfig and put other options under xen/arch. LLC colors are a property of the domain, so the domain struct has to be