Skip to contentSkip to conversation

xen/sched: move some per-vcpu items to struct sched_item

RFC PATCH Juergen Gross 1 participant 1 message Apr 1, 2019

lore
Share & tools
lore
#0 lore raw
Quoted 28 lines · Jan Beulich
Quoted 21 lines
Quoted 1 line
Quoted 1 line · On 01.04.19 at 07:59, <[email protected]> wrote:
Quoted 8 lines · Juergen Gross
Quoted 6 lines · Andrew Cooper

If at all possible, I'd prefer to see about disentangling the bits which actually need external use, and putting them in sched.h, and making sched-if.h properly private to the schedulers. I actually even started a cleanup series which moved all of the scheduler infrastructure into common/sched/, but found a disappointing quantity of sched-if.h being referenced externally.

Quoted 6 lines

I can add something like that to my series if you want. So:

- moving schedule.c, sched_*.c and cpupool.c to common/sched/
- move stuff from sched-if.h to sched.h if needed outside of common/sched/
- move sched-if.h to common/sched/

Questions to especially the scheduler maintainers and "the REST": should we move the scheduler stuff to xen/common/sched/ or would /xen/sched/ be more appropriate?

Quoted 6 lines

Maybe it would be worthwhile to move e.g. the context switching from xen/arch/*/domain.c to xen/sched/context_<arch>.c? I think this code is rather scheduler related and moving it to the sched directory might help hiding some scheduler internals from other sources, especially with my core scheduling series. IMO this would make the xen/sched/ directory the preferred one.

Quoted 6 lines

FWIW, I don't really mind such a move as long as it won't result in then having to expose various arch-internals just to make them usable from xen/sched/context_<arch>.c (or whatever it's going to be named - the name is a little longish for my taste).

But may I recommend not to do too many things all in one go?

Yes. And the naming can be discussed later then.

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel