From 8f3e88af00a29f851843574c2ce7c407d0a0820a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= Date: Sun, 29 Jun 2014 21:41:37 +0200 Subject: [PATCH] Reset device only if has_fl_reset is defined MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kamil TrzciƄski --- PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index ed46df12..252fb13f 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3370,7 +3370,7 @@ sub vm_start { die "can't unbind/bind to stub pci device '$pciid'\n" if !pci_dev_bind_to_stub($info); } - die "can't reset pci device '$pciid'\n" if !pci_dev_reset($info); + die "can't reset pci device '$pciid'\n" if $info->{has_fl_reset} and !pci_dev_reset($info); } }