[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v1 1/4] xen: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler
On Fri, May 8, 2015 at 2:49 AM, Jan Beulich <JBeulich@xxxxxxxx> wrote: >>> On 07.05.15 at 19:05, <lichong659@xxxxxxxxx> wrote: Here, the lock is used in the same way as the ones in the two cases above (XEN_DOMCTL_SCHEDOP_get/putinfo). So I think if race free is guaranteed in that two cases, the lock in this case works race free as well.
I don't quite understand what the "stale" means. The array here (local_sched[ ]) and the array (in libxc) that local_sched[ ] is copied to are both used for this get operation only. When users set per-vcpu parameters, there are also dedicated arrays for that set operation. Â
The section protected by the lock is only the "list_for_each" loop, whose running time is limited by the number of vcpus of a domain (32 at most). If this does cause problems, I think adding a "hypercall_preempt_check()"Â at the outside "for" loop may help. Is that right?
Do you mean "switch ( op->cmd )" ? I'm afraid that would make it look more complicated.Â
Chong Li
Department of Computer Science and Engineering
Washington University in St.louis _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |