]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Yet another check for blkdeviotune values
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 7 Jun 2016 13:24:13 +0000 (15:24 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 9 Jun 2016 15:16:38 +0000 (17:16 +0200)
commit5f4c50d528c8a7297c04c485b7b2ffd8ce859682
tree0dd94f2ae1758065282cab9ff34b3306dcbcbce4
parent93a2fb230a012ed7ba04f27ac4a00330a45205ff
qemu: Yet another check for blkdeviotune values

If you want to set block device I/O tuning values that end with '_max'
and there is nothing else set, libvirt emits an error.  In particular:

  error: internal error: Unexpected error

That's an unknown error.  That is because *_max values depend on their
respective non-_max values.  QEMU even says that in the error message
sent as a response to the monitor command:

  "error": {"class": "GenericError", "desc": "bps_max/iops_max require
  corresponding bps/iops values"}

the problem was that we didn't know that and there was no check for it.
Adding such check makes sure that there will be less confused users.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_driver.c