]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Allow multiple parameters for schedinfo
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 15 Mar 2013 13:42:42 +0000 (14:42 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 3 Apr 2013 06:49:30 +0000 (08:49 +0200)
commite7cd2844ca2b0d716a520667eff286713963e2ec
tree69219c6584cdc48f56090242152e7e23bb1d7e66
parent43b6f304bce5937f1e3a852b20b52a772b39b95f
Allow multiple parameters for schedinfo

virsh schedinfo was able to set only one parameter at a time (not
counting the deprecated options), but it is useful to set more at
once, so this patch adds the possibility to do stuff like this:

virsh schedinfo <domain> cpu_shares=0 vcpu_period=0 vcpu_quota=0 \
emulator_period=0 emulator_quota=0

Invalid scheduler options are reported as well.  These were previously
reported only if the command hadn't updated any values (when
cmdSchedInfoUpdate returned 0).

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=810078
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=919372
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=919375
tests/virsh-schedinfo
tools/virsh-domain.c
tools/virsh.pod