]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Adjust maxparams logic for qemuDomainGetBlockIoTune
authorJohn Ferlan <jferlan@redhat.com>
Mon, 7 Nov 2016 13:43:01 +0000 (08:43 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 5 Dec 2016 23:12:08 +0000 (18:12 -0500)
commitc84ad82a2dc21bf39f257183b891e236ee714a37
treee69eb94778fe38ca43981ed5a017b8c650775dd9
parentd3364dfdc836468dc37e1ae33c69070bf0d07b08
qemu: Adjust maxparams logic for qemuDomainGetBlockIoTune

Rather than using negative logic and setting the maxparams to a lesser
value based on which capabilities exist, alter the logic to modify the
maxparams based on a base value plus the found capabilities. Reduces the
chance that some backported feature produces an incorrect value.
src/qemu/qemu_driver.c