]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: support getting and setting parameters for the Credit2
authorDario Faggioli <dfaggioli@suse.com>
Wed, 29 Jan 2020 11:05:15 +0000 (12:05 +0100)
committerJim Fehlig <jfehlig@suse.com>
Thu, 30 Jan 2020 00:27:08 +0000 (17:27 -0700)
commit849052ec61e18780713bec171748e859e32dfd6d
tree664cf8b60178dac83d37b382df8782eda9ca1901
parentf0f34056ab26eaa9f903a51cd1fa155088fd640f
libxl: support getting and setting parameters for the Credit2

With Credit2 being Xen default scheduler, it's definitely the case to
allow Credit2's scheduling parameters to be get and set via libvirt.

This is easy, as Credit and Credit2 have (at least as of now) the very
same parameters ('weight' and 'cap'). So we can just let credit2 pass
the scheduler-type check and the same code will work for both.

Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
src/libxl/libxl_driver.c