[libvirt] [PATCH v2] Allow multiple parameters for schedinfo
Eric Blake
eblake at redhat.com
Tue Apr 2 23:22:27 UTC 2013
On 03/21/2013 10:22 AM, Martin Kletzander wrote:
> 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
>
> Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
> ---
> v2:
> - correctly report unsupported options
> - man page updated
>
> tests/virsh-schedinfo | 4 +-
> tools/virsh-domain.c | 119 ++++++++++++++++++++++++++++----------------------
> tools/virsh.pod | 4 +-
> 3 files changed, 72 insertions(+), 55 deletions(-)
ACK.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130402/4426d750/attachment-0001.sig>
More information about the libvir-list
mailing list