Re: [Xen-devel] [PATCH 4/4] sched: Use the auto-generated list of schedulers

2015-12-18 Thread Andrew Cooper
On 18/12/15 17:24, Jonathan Creekmore wrote: >> On Dec 18, 2015, at 10:43 AM, Jan Beulich wrote: >> > On 18.12.15 at 17:00, wrote: >>> Jan Beulich writes: >>> On 17.12.15 at 21:59, wrote: > +extern const struct scheduler *__schedulers_start[], *__schedulers_end[]; > +#define NUM_

Re: [Xen-devel] [PATCH 4/4] sched: Use the auto-generated list of schedulers

2015-12-18 Thread Jonathan Creekmore
> On Dec 18, 2015, at 10:43 AM, Jan Beulich wrote: > On 18.12.15 at 17:00, wrote: >> Jan Beulich writes: >> On 17.12.15 at 21:59, wrote: +extern const struct scheduler *__schedulers_start[], *__schedulers_end[]; +#define NUM_SCHEDULERS >> (((uintptr_t)__schedulers_end-(uint

Re: [Xen-devel] [PATCH 4/4] sched: Use the auto-generated list of schedulers

2015-12-18 Thread Jan Beulich
>>> On 18.12.15 at 17:00, wrote: > Jan Beulich writes: > On 17.12.15 at 21:59, wrote: >>> +extern const struct scheduler *__schedulers_start[], *__schedulers_end[]; >>> +#define NUM_SCHEDULERS > (((uintptr_t)__schedulers_end-(uintptr_t)__schedulers_start) \ >>> +/ siz

Re: [Xen-devel] [PATCH 4/4] sched: Use the auto-generated list of schedulers

2015-12-18 Thread Jonathan Creekmore
Andrew Cooper writes: > On 17/12/2015 20:59, Jonathan Creekmore wrote: >> Instead of having a manually-curated list of schedulers, use the array >> that was auto-generated simply by compiling in the scheduler files as >> the sole source of truth of the available schedulers. >> >> CC: George Dunla

Re: [Xen-devel] [PATCH 4/4] sched: Use the auto-generated list of schedulers

2015-12-18 Thread Jonathan Creekmore
Jan Beulich writes: On 17.12.15 at 21:59, wrote: >> +extern const struct scheduler *__schedulers_start[], *__schedulers_end[]; >> +#define NUM_SCHEDULERS >> (((uintptr_t)__schedulers_end-(uintptr_t)__schedulers_start) \ >> +/ sizeof(struct scheduler *)) >> +static c

Re: [Xen-devel] [PATCH 4/4] sched: Use the auto-generated list of schedulers

2015-12-18 Thread Jan Beulich
>>> On 17.12.15 at 21:59, wrote: > +extern const struct scheduler *__schedulers_start[], *__schedulers_end[]; > +#define NUM_SCHEDULERS > (((uintptr_t)__schedulers_end-(uintptr_t)__schedulers_start) \ > +/ sizeof(struct scheduler *)) > +static const struct scheduler **sche

Re: [Xen-devel] [PATCH 4/4] sched: Use the auto-generated list of schedulers

2015-12-18 Thread Andrew Cooper
On 17/12/2015 20:59, Jonathan Creekmore wrote: > Instead of having a manually-curated list of schedulers, use the array > that was auto-generated simply by compiling in the scheduler files as > the sole source of truth of the available schedulers. > > CC: George Dunlap > CC: Dario Faggioli > Sign

Re: [Xen-devel] [PATCH 4/4] sched: Use the auto-generated list of schedulers

2015-12-17 Thread Dario Faggioli
On Thu, 2015-12-17 at 14:59 -0600, Jonathan Creekmore wrote: > Instead of having a manually-curated list of schedulers, use the > array > that was auto-generated simply by compiling in the scheduler files as > the sole source of truth of the available schedulers. > > CC: George Dunlap > CC: Dario

[Xen-devel] [PATCH 4/4] sched: Use the auto-generated list of schedulers

2015-12-17 Thread Jonathan Creekmore
Instead of having a manually-curated list of schedulers, use the array that was auto-generated simply by compiling in the scheduler files as the sole source of truth of the available schedulers. CC: George Dunlap CC: Dario Faggioli Signed-off-by: Jonathan Creekmore --- xen/common/schedule.c