xen/sched: move some per-vcpu items to struct sched_item
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 makingsched-if.hproperly 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 ofsched-if.hbeing referenced externally.Quoted 6 lines
I can add something like that to my series if you want. So:
- moving
schedule.c, sched_*.c andcpupool.cto common/sched/
- move stuff fromsched-if.htosched.hif needed outside of common/sched/
- movesched-if.hto 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.cto 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