[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 10:20 GMT-04:00 George Dunlap <George.Dunlap@xxxxxxxxxxxxx>:
I did this because of Jan's comment "Also, you need to pad the structure to a multiple of 8 bytes, or
its layout will differ between 32- and 64-bit (tool stack) callers." I think what he said make sense so I added the padding here. :-) Here is the link:â http://marc.info/?l=xen-devel&m=140661680931179&w=2â
Â
I agree that this is not a performance-critical bit of code. âI can do either way as you suggested.Â
âIf I remove the padding, it means the structure won't be a multiply of 8 bytes and its layout will differ between 32- and 64-bit (tool stack) callers. If that's fine, I'm totally fine with it. Just need consensus. ;-)Â
Â
âYes. â Â
âI think it's a better idea to Âpass in an array with information about vcpus to get/set vcpus' information.
â I only need to change the code related to setting a vcpu's information.
âI have a question:â âWhen we set a vcpu's information by using an array, we have two choices:
a) just create an array with one vcpu element, and specify the index of the vcpu to modify; The concern to this method is that we only uses one element of this array, so is it a good idea to use an array with only one element?
âb) create an array with all vcpus of this domain, modify the parameters of the vcpu users want to change, and then bounce the array to hypervisor to reset these vcpus' parameters.â The concern to this method is that we don't need any other vcpus' information to set a specific vcpu's parameters. Bouncing the whole array with all vcpus information seems expensive and unnecessary?
âDo you have any suggestion/advice/preference on this?â
âI don't really like about the idea of reading the vcpu's information one-by-oneâ. :-) If a domain has many vcpus, say 12 vcpus, we will issue 12 hypercalls to get all vcpus' information of this domain. Because we only need to issue one hypercall to get all information we want, the extra hypercalls causes more overhead. This did simplify the implementation, but may cause more overhead.Â
Thank you very much!
â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 |