5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-02-02 09:47:13 +03:00

fix #3890 - GUI: warn for unlikely iothread config

Previously, only a plaintext line in the task log showed something was off.
Now, the GUI will show it as a warning.

Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
This commit is contained in:
Matthias Heiserer 2022-06-13 15:54:25 +02:00 committed by Thomas Lamprecht
parent 058fe7bc48
commit d80ad18c67

View File

@ -3959,7 +3959,9 @@ sub config_to_command {
$iothread .= ",iothread=iothread-$controller_prefix$controller";
push @$cmd, '-object', "iothread,id=iothread-$controller_prefix$controller";
} elsif ($drive->{iothread}) {
warn "iothread is only valid with virtio disk or virtio-scsi-single controller, ignoring\n";
log_warn(
"iothread is only valid with virtio disk or virtio-scsi-single controller, ignoring\n"
);
}
my $queues = '';