]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix blkdeviotune for shutoff domain
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 23 May 2013 11:07:34 +0000 (13:07 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 24 May 2013 11:29:20 +0000 (13:29 +0200)
commit5af3ce827767707097affc5e001eab8cbabc28a7
tree072d51f270a68c4f7c0e4abe196a0fd7926d840d
parenteb21408f4493a8348a2b643215d48d4c72de8238
Fix blkdeviotune for shutoff domain

Function qemuDomainSetBlockIoTune() was checking QEMU capabilities
even when !(flags & VIR_DOMAIN_AFFECT_LIVE) and the domain was
shutoff, resulting in the following problem:

 virsh # domstate asdf; blkdeviotune asdf vda --write-bytes-sec 100
 shut off

 error: Unable to change block I/O throttle
 error: unsupported configuration: block I/O throttling not supported with this QEMU binary

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=965016
src/qemu/qemu_driver.c