[Libvir] Add scheduler patch?

Atsushi SAKAI sakaia at jp.fujitsu.com
Tue Jun 5 11:38:23 UTC 2007


Hi, Daniel

Yes, Credit Scheduler just sets 2 parameter only.

Please see following code.
http://xen.begi.net/xen-unstable/S/1538.html#L701

Thanks
Atsushi SAKAI


Daniel Veillard <veillard at redhat.com> wrote:

> On Tue, Jun 05, 2007 at 07:42:31PM +0900, Atsushi SAKAI wrote:
> > Hi, Daniel
> > 
> > Thank you for reviewing.
> > 
> > About xenHypervisorSetSchedulerParameters() in case of credit scheduler.
> > I just set not changed parameter at first.
> > I guess no problem on this.
> > Any problem?
> > 
> > +            /* credit scheduler parameters 
> > +             * following values do not change the parameters 
> > +             */
> > +            op_dom.u.getschedinfo.u.credit.weight = 0;
> > +            op_dom.u.getschedinfo.u.credit.cap    = (uint16_t)~0U;
> 
>   yes I have seen that, but I wonder what happens when only one parameter
> is not 0, does the hypercall set only that parameter ?
> That does no prevent pushing that first version but that something which 
> should be double checked to avoid catastrophic behaviour on edge cases.
> 
> Daniel
> 
> -- 
> Red Hat Virtualization group http://redhat.com/virtualization/
> Daniel Veillard      | virtualization library  http://libvirt.org/
> veillard at redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
> http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/





More information about the libvir-list mailing list