fix mdev cmdline generation

during refactoring, the vmid got lost, but is necessary to get
the correct mdev id

Fixes commit 74c17b7a23
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
[ reference fixed commit ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-07-13 09:27:16 +02:00 committed by Thomas Lamprecht
parent d85703a49b
commit 7de7f675c2
2 changed files with 2 additions and 2 deletions

View File

@ -3103,7 +3103,7 @@ sub config_to_command {
# host pci device passthrough
my ($kvm_off, $gpu_passthrough, $legacy_igd) = PVE::QemuServer::PCI::print_hostpci_devices(
$conf, $devices, $winversion, $q35, $bridges, $arch, $machine_type);
$vmid, $conf, $devices, $winversion, $q35, $bridges, $arch, $machine_type);
# usb devices
my $usb_dev_features = {};

View File

@ -357,7 +357,7 @@ sub parse_hostpci {
}
sub print_hostpci_devices {
my ($conf, $devices, $winversion, $q35, $bridges, $arch, $machine_type) = @_;
my ($vmid, $conf, $devices, $winversion, $q35, $bridges, $arch, $machine_type) = @_;
my $kvm_off = 0;
my $gpu_passthrough = 0;