]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainSetBlockIoTune: Skip monitor call for empty cdrom
authorPeter Krempa <pkrempa@redhat.com>
Thu, 7 Jan 2021 09:19:22 +0000 (10:19 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 8 Jan 2021 08:18:00 +0000 (09:18 +0100)
commit3e0d9131cc6328faf21fdea82eac7808cbf39753
tree6705b7362daba75b3cd680e407c1a934a9c83106
parent8792b74774fb8246954f1bc19111b82ae1f94483
qemuDomainSetBlockIoTune: Skip monitor call for empty cdrom

Similarly to startup of the VM qemu doesn't like setting throttling for
an empty drive. Just skip it since we do the correct thing once new
media is inserted.

Resolves: https://gitlab.com/libvirt/libvirt/-/issues/117
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Tested-by: Han Han <hhan@redhat.com>
src/qemu/qemu_driver.c