From 7de7f675c2b91d1ac4bc065954d2a211f1ffdf5b Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 13 Jul 2020 09:27:16 +0200 Subject: [PATCH] fix mdev cmdline generation during refactoring, the vmid got lost, but is necessary to get the correct mdev id Fixes commit 74c17b7a23c8a953d1dcec9bd53449d71d88cd5d Signed-off-by: Dominik Csapak [ reference fixed commit ] Signed-off-by: Thomas Lamprecht --- PVE/QemuServer.pm | 2 +- PVE/QemuServer/PCI.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index c3b682cd..86e10be8 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -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 = {}; diff --git a/PVE/QemuServer/PCI.pm b/PVE/QemuServer/PCI.pm index f1e2bb33..cb368458 100644 --- a/PVE/QemuServer/PCI.pm +++ b/PVE/QemuServer/PCI.pm @@ -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;