[pve-devel] [PATCH] Reset device only if has_fl_reset is defined
Kamil Trzciński
ayufan at ayufan.eu
Sun Jun 29 21:41:37 CEST 2014
Signed-off-by: Kamil Trzciński <ayufan at ayufan.eu>
---
PVE/QemuServer.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index abed0c1..0c81d95 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);
}
}
--
1.7.10.4
More information about the pve-devel
mailing list