[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v1 1/4] xen: add real time scheduler rt
Hi George, 2014-09-03 9:40 GMT-04:00 George Dunlap <George.Dunlap@xxxxxxxxxxxxx>:
âditched now. Thanks!â Â I'm just doing a first pass, so just a few quick comments to begin with. âThank you very much for your review! :-)â
âI introduce âXEN_DOMCTL_SCHEDOP_getnumvcpus as a schedop because we need to know the number of vcpus a domain has when the tool stack wants to display the parameters of EACH vcpu.Â
I think the operation you meant in getdomaininfo is XEN_DOMCTL_max_vcpus (in file xen/common/domctl.c)? If so, I think this operation is setting the max vcpus for a domain instead of getting the number of vcpus this domain has. Therefore, I don't think I can reuse the operation XEN_DOMCTL_max_vcpus in getdomaininfo.Â
The detailed reason of why I need to get the number of vcpus a domain has is as follows:
When the tool stack (command xl sched-rt -d domain) displays the parameters of EACH vcpu, the tool stack will allocate an array whose size is "sizeof(struct xen_domctl_sched_rt_params) * num_vcpus_of_this_domain" and bounce this array to the hypervisor. After hypervisor fills out the parameters of each vcpu, this array will be bounced out to tool stack to display to users.
In order to know how large this array should be, we need to know the number of vcpus this domain has. Please let me know if you have any other concerns or questions. :-)
Thank you very much! Best,
â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 |