diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 418a2a0f..3be7e240 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3214,7 +3214,7 @@ sub config_to_command { # host pci device passthrough my ($kvm_off, $gpu_passthrough, $legacy_igd) = PVE::QemuServer::PCI::print_hostpci_devices( - $vmid, $conf, $devices, $winversion, $q35, $bridges, $arch, $machine_type, $bootorder); + $vmid, $conf, $devices, $vga, $winversion, $q35, $bridges, $arch, $machine_type, $bootorder); # usb devices my $usb_dev_features = {}; diff --git a/PVE/QemuServer/PCI.pm b/PVE/QemuServer/PCI.pm index 92adb90d..2ee142fc 100644 --- a/PVE/QemuServer/PCI.pm +++ b/PVE/QemuServer/PCI.pm @@ -1,5 +1,8 @@ package PVE::QemuServer::PCI; +use warnings; +use strict; + use PVE::JSONSchema; use PVE::SysFSTools; @@ -357,7 +360,7 @@ sub parse_hostpci { } sub print_hostpci_devices { - my ($vmid, $conf, $devices, $winversion, $q35, $bridges, $arch, $machine_type, $bootorder) = @_; + my ($vmid, $conf, $devices, $vga, $winversion, $q35, $bridges, $arch, $machine_type, $bootorder) = @_; my $kvm_off = 0; my $gpu_passthrough = 0;