[pve-devel] [PATCH qemu-server] add warning for iothread with invalid scsi controller

Dominik Csapak d.csapak at proxmox.com
Tue May 3 14:00:28 CEST 2016


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/QemuServer.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 02a689c..e7c3c75 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -3287,6 +3287,8 @@ sub config_to_command {
 	    if($conf->{scsihw} && $conf->{scsihw} eq "virtio-scsi-single" && $drive->{iothread}){
 		$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";
 	    }
 
 	    my $queues = '';
-- 
2.1.4





More information about the pve-devel mailing list