]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Add range checking for scheduler tunables when changed by API
authorPeter Krempa <pkrempa@redhat.com>
Tue, 4 Sep 2012 13:17:07 +0000 (15:17 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 7 Sep 2012 05:52:48 +0000 (07:52 +0200)
commit972e914f59aa90bb727c4b5596e77f7bacdeb703
treeb9b97b6595cbceffa5e809f5e93de2bcabf9e1be
parent3e250b3669b5f18bacc7fa12d34afc2331c1402a
qemu: Add range checking for scheduler tunables when changed by API

The quota and period tunables for cpu scheduler accept only a certain
range of values. When changing the live configuration invalid values get
rejected. This check is not performed when changing persistent config.

This patch adds a separate range check, that improves error messages
when changing live config and adds the check for persistent config.
This check is done only when using the API. It is still possible to
specify invalid values in the XML.
src/qemu/qemu_driver.c