]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: reject blockiotune if qemu too old
authorEric Blake <eblake@redhat.com>
Fri, 4 May 2012 16:24:17 +0000 (10:24 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 4 May 2012 22:13:56 +0000 (16:13 -0600)
commit13f9a19326a7727e07ab689ea5392255fbd5cd4f
tree117ab7ea46beaa2c3adc7b1461957056a2930337
parent98cec052882c9acb5e3b8bc3f8e8a37a2cdb2982
qemu: reject blockiotune if qemu too old

Commit 4c82f09e added a capability check for qemu per-device io
throttling, but only applied it to domain startup.  As mentioned
in the previous commit (98cec05), the user can still get an 'internal
error' message during a hotplug attempt, when the monitor command
doesn't exist.  It is confusing to allow tuning on inactive domains
only to then be rejected when starting the domain.

* src/qemu/qemu_driver.c (qemuDomainSetBlockIoTune): Reject
offline tuning if online can't match it.
src/qemu/qemu_driver.c