|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 07/60] xen/sched: build a linked list of struct sched_unit
On 19.07.19 02:01, Dario Faggioli wrote: On Tue, 2019-05-28 at 12:32 +0200, Juergen Gross wrote:In order to make it easy to iterate over sched_unit elements of a domain build a single linked list and add an iterator for it.How about a ',' between domain and build? Okay. For completeness add another iterator for_each_sched_unit_vcpu() which will iterate over all vcpus if a sched_unit (right now only one). This"over all vcpus of a sched_unit" ? Oh, of course! will be needed later for larger scheduling granularity (e.g. cores). Signed-off-by: Juergen Gross <jgross@xxxxxxxx>One question:
Yes. I'm making use of the fact that all vcpus in a unit are consecutive
as I'm re-using the already existing list of vcpus in a domain:
dom->vcpu0->vcpu1->vcpu2->vcpu3
^ ^
! !
unit0-+ !
!
unit2---------------+
Juergen
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |