[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v1 3/4] libxl: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler



On Mon, May 11, 2015 at 9:06 AM, Dario Faggioli
<dario.faggioli@xxxxxxxxxx> wrote:
>
> On Thu, 2015-05-07 at 12:05 -0500, Chong Li wrote:
> > Change sched_rtds_domain_get/set functions to support per-VCPU settings for 
> > RTDS scheduler.
> >

>
> > +    rc = xc_domain_getinfo(CTX->xch, domid, 1, &info);
> > +    if (rc < 0) {
> > +        LOGE(ERROR, "getting domain info");
> > +        return ERROR_FAIL;
> > +    }
> > +    num_vcpus = info.nr_online_vcpus;
> >
> It looks like the most of other places in libxl where this is necessary
> use libxl_list_vcpu(), which, if you want to open code it, uses
> info.max_vcpu_id. I'd do the same.

Do you mean invoking libxl_list_vcpu() here, or still using
xc_domain_getinfo() (but get the
total number of vcpus by info.max_vcpu_id instead of
info.nr_online_vcpus)? I'm asking
because it seems that libxl_list_vcpu() does much more things than what I need.

>
> Regards,
> Dario
>

Chong

-- 
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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.