mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-22 22:03:55 +03:00
PCI: use warnings/strict and fix setting $vga from config2command
fixes commit 74c17b7a23c8a953d1dcec9bd53449d71d88cd5d which moved this code here, but forgot to pass $vga ref, as the module was not using warning nor strict mode this was not caught.. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f7d1505b0c
commit
41af2dfc25
@ -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 = {};
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user