]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer.pm
fix #3608: unbreak removal of scsi controller
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 9 Sep 2021 12:40:42 +0000 (14:40 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 9 Sep 2021 15:46:02 +0000 (17:46 +0200)
commit9a66c311acabf2b4f93dec654d8a70fac6169c79
tree7ced680ba829e44ce8cb9a21a4c6a4b243c6228f
parentae776a62889a5795960b8f53d46232ad7f3e99e7
fix #3608: unbreak removal of scsi controller

the assumption that the index of the controller matches that of the last
removed drive only holds for virtio-scsi-single controller, which makes
the old code print a warning when removing the last drive of a
non-virtio-scsi-single controller except when the indices line up by
chance.

we can simply only call a simplified qemu_iothread_del when removing a
scsi disk of a VM with the virtio-scsi-single controller, and skip the
call for the other controllers which don't support io-threads anyway.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/QemuServer.pm