Re: [libvirt] [PATCH 5/7] Implement schedular tunables API using cgroups

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

 



On Fri, Jul 17, 2009 at 09:04:27AM -0400, Daniel P. Berrange wrote:
> * src/qemu_driver.c:  Add driver methods qemuGetSchedulerType,
>   qemuGetSchedulerParameters, qemuSetSchedulerParameters
[...]
> +    for (i = 0; i < nparams; i++) {
> +        virSchedParameterPtr param = &params[i];
> +
> +        if (STREQ(param->field, "cpu_shares")) {

   Hum, the type should be checked first as a safety since this comes
directly from the user and those SchedParameter are really error prone.
The name "cpu_shares" need to be documented too.

  Once type is checked on input, ACK,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]