mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-29 18:34:50 +00:00
forbid hot-unplug of virtioscsi + iothread drive
qemu (<=2.3) currently segfault on drive_del Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
fc8b40fd5f
commit
8bcf3068eb
@ -3379,6 +3379,10 @@ sub vm_deviceunplug {
|
|||||||
|
|
||||||
} elsif ($deviceid =~ m/^(scsi)(\d+)$/) {
|
} elsif ($deviceid =~ m/^(scsi)(\d+)$/) {
|
||||||
|
|
||||||
|
#qemu 2.3 segfault on drive_del with virtioscsi + iothread
|
||||||
|
my $device = parse_drive($deviceid, $conf->{$deviceid});
|
||||||
|
die "virtioscsi with iothread is not hot-unplugglable currently" if $device->{iothread};
|
||||||
|
|
||||||
qemu_devicedel($vmid, $deviceid);
|
qemu_devicedel($vmid, $deviceid);
|
||||||
qemu_drivedel($vmid, $deviceid);
|
qemu_drivedel($vmid, $deviceid);
|
||||||
qemu_deletescsihw($conf, $vmid, $deviceid);
|
qemu_deletescsihw($conf, $vmid, $deviceid);
|
||||||
|
Loading…
Reference in New Issue
Block a user