[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH RFC v2 1/4] xen: add real time scheduler rt
Hi Andrew, Thank you very much for your comments!
2014-07-29 18:36 GMT+08:00 Andrew Cooper <andrew.cooper3@xxxxxxxxxx>: --
âThis is a good suggestion and I have modified it for the next version.Â
â
âI see. I changed the cpustr to char[1024]. This should solve this issue.â
Â
âNo, it should not be NULL. I changed it to ASSERT() for next version.â Â
âSorry! :-( Corrected it. â
âChanged, thanks!
â
âI think it should be fine. I double checked the _init function in sched_credit2.c. It has the similar operation: first assign prv to ops->sched_data and then set the value of prv.Â
Of course, I can switch âthem. But I'm not sure if that really matter. :-) Â
âChanged. Thanks!
â
âI think we have to cast it to void * âbecause the definition of this function asks the return type to be void *. In addition, the credit2 scheduler also did the same cast in Âthis _alloc_domdata function. So I guess this should be fine?
Â
 âThis is a good point! I will pass the size of the array to the kernel and check that the number of the array's elements is not smaller than the number of vcpus.
 ÂYou also unconditionally leak local_sched, but there is no need âI will add the xfree() after copy_to_guest().Â
I have a question: how can I avoid allocating the local_sched? Â
âDS (Deferrable Server) is just one kind of server mechanisms for global Earliest Deadline First scheduling. âWe can add other server mechanisms in the same file sched_rt.c to extend this Real Time scheduler. But we don't want to change/affect user's interface when we add more server mechanisms.
The .opt_name will affect the user's interface when user choose the rt scheduler, If we change it to rt_ds, we will have to change it to rt again when we have more server mechanisms implemented. Then users will have to change their configuration (i.e., the command line value sched=) to the new name rt. Because this could potentially affect users' interface, I think it's better to use rt here. What do you think?
Â
âAgree. I have changed it to uint16_t because the vcpu_index is uint16_t in the tool stack.
Thank you very much for your comments and suggestions! Looking forward to your reply! ;-) 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 |