[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 22/48] xen/sched: switch schedule() from vcpus to sched_units
On 09.08.2019 16:58, Juergen Gross wrote: > --- a/xen/common/schedule.c > +++ b/xen/common/schedule.c > @@ -248,6 +248,20 @@ static inline void vcpu_runstate_change( > v->runstate.state = new_state; > } > > +static inline void sched_unit_runstate_change(struct sched_unit *unit, > + bool running, s_time_t new_entry_time) > +{ > + struct vcpu *v = unit->vcpu_list; > + > + if ( running ) > + vcpu_runstate_change(v, RUNSTATE_running, new_entry_time); > + else > + vcpu_runstate_change(v, > + ((v->pause_flags & VPF_blocked) ? RUNSTATE_blocked : > + (vcpu_runnable(v) ? RUNSTATE_runnable : RUNSTATE_offline)), > + new_entry_time); > +} I find it puzzling that this gets introduced, but won't survive till the end of the series. I can only guess that you can't do without the separation intermediately. Making such transient state more apparent from the description would be nice imo. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |