Am Mittwoch, den 10.09.2008, 07:49 +0200 schrieb Daniel Veillard:
On Tue, Sep 09, 2008 at 10:55:26PM +0100, Henri Cook wrote:
A good news - sorry I wasn't aware of the current stance on arbitrary parameters and can say I completely agree with it.
Scheduler Parameters API sounds interesting - i'll see if I can find time to look into it - if there's anyone who already knows how it works that sees this as a quick patch though, massive points
http://libvirt.org/html/libvirt-libvirt.html#virDomainSetSchedulerParameters
A couple of months ago I tried to implement this for kvm. I failed on rpc though. It should be as "easy" as setting setpriority(2).
http://libvirt.org/html/libvirt-libvirt.html#virSchedParameter
http://libvirt.org/html/libvirt-libvirt.html#virDomainGetSchedulerParameters
it's not fantastic, it's a free form API, you need to be consistent in the name and type of parameters returned by Get and allow a subset to be modified by Set.
Daniel