 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v1 3/4] libxl: add rt scheduler
 Hi George, 2014-09-03 11:33 GMT-04:00 George Dunlap <George.Dunlap@xxxxxxxxxxxxx>: 
 âThank you very much for your suggestion! I modified the code as you said after Wei pointed this out. In the next patch, it will use the GC mechanisms to handle the memory allocation. â 
 ââ âYes, next release will change as you and Wei said. (I have actually changed it for the next release. :-)â ) Â 
 âDo you mean that I pass the libxl_rt_vcpu structure as the parameter for the function Âxc_sched_rt_domain_get(CTX->xch, domid, sdom, num_vcpus), i.e., replace the sdom with the libxl_rt_vcpu data. Then I can avoid copying from the libxc data sdom to the libxl_rt_vcpu? âIf so, I think it's doable and will change it.â  
 âI saw the toolstack for credit and credit2 scheduler also check the validity of the new parameters. That's why I check the validity of the parameters at the toolstack. For example, in function sched_credit_domain_set() @ file tools/libxl/libxl.c does the check as follows:  ÂÂif (scinfo->weight != LIBXL_DOMAIN_SCHED_PARAM_WEIGHT_DEFAULT) {     if (scinfo->weight < 1 || scinfo->weight > 65535) {       LOG(ERROR, "Cpu weight out of range, "         "valid values are within range from 1 to 65535");       return ERROR_INVAL;     }     sdom.weight = scinfo->weight;   } Just to confirm, should I not follow what credit does in the libxl.c and check the validity of the parameters in hypervisor as you suggested? Please bear with me about this question because I want to make sure I'm heading to the correct direction. :-) 
 âGot it! Thank you very much! This is my bad and I will change it. :-( â Â 
 âHmm, yes, users should specify the vcpu index, the new period and the new budget to set a vcpu's parameter. They have to give us the index of the vcpu to set, otherwise, we don't know which vcpu the new parameters are set to. :-)Â âWe can definitely allow users to only specify period or budget to just set the period or budget. If you think that's a better way to do it. I can modify it. â:-) Â 
 âSure! â I totally agree! When every one agrees with the interface, I can modify it accordingly very quickly. The difficult thing is the consensus of how the interface should look like :-P âThank you very much for your comments and suggestions! â âMengâ ----------- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |