]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: alias: Fix calculation of memory device aliases
authorPeter Krempa <pkrempa@redhat.com>
Wed, 6 Apr 2016 15:32:12 +0000 (17:32 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 7 Apr 2016 07:54:40 +0000 (09:54 +0200)
commitbe6e92f541ab27019de530f1f08ec9b2912765a9
treef9d81083f463143251d2071bbf6b07206c5889c8
parentbd19b4b25beb22335571b80d6a4a32f7012b87e1
qemu: alias: Fix calculation of memory device aliases

For device hotplug, the new alias ID needs to be checked in the list
rather than using the count of devices. Unplugging a device that is not
last in the array will make further hotplug impossible due to alias
collision.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1324551
src/qemu/qemu_alias.c
src/qemu/qemu_alias.h
src/qemu/qemu_hotplug.c