]> xenbits.xensource.com Git - libvirt.git/commit
qemu: blkiotune: Avoid accessing non-existing disk configuration
authorPeter Krempa <pkrempa@redhat.com>
Wed, 20 Aug 2014 08:49:49 +0000 (10:49 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 20 Aug 2014 09:04:53 +0000 (11:04 +0200)
commit653137eb957a278b556c6226424aad5395a38a61
treee1a45127903c5792f84756bb0d09914b335cd7b1
parentcf976d9dcf4e592261b14f03572bb519531ebbce
qemu: blkiotune: Avoid accessing non-existing disk configuration

When a user would try changing the persistent IO tuning settings for a
disk that was hotplugged to a vm in a transient way, the
qemuDomainSetBlockIoTune API would use the same index for both the
live and config disk array. The disk was missing from the config array
though causing a crash of libvirtd.

To fix the issue, determine the indexes separately.

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