]> git.proxmox.com Git - qemu-server.git/commitdiff
fix #3890 - GUI: warn for unlikely iothread config
authorMatthias Heiserer <m.heiserer@proxmox.com>
Mon, 13 Jun 2022 13:54:25 +0000 (15:54 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 8 Nov 2022 16:49:51 +0000 (17:49 +0100)
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>
PVE/QemuServer.pm

index cce8e2163493e6fec1b2119340c3cd121708664c..baee8bc1be2e22c907db09a9c50ba54f90ab4722 100644 (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 = '';