[pve-devel] Fwd: [PATCH] Reset device only if has_fl_reset is defined

Alexandre DERUMIER aderumier at odiso.com
Tue Jul 22 21:21:02 CEST 2014


lost patch, I think we need t oapply it.


----- Mail transféré ----- 

De: "Kamil Trzciński" <ayufan at ayufan.eu> 
À: pve-devel at pve.proxmox.com 
Envoyé: Dimanche 29 Juin 2014 21:41:37 
Objet: [pve-devel] [PATCH] Reset device only if has_fl_reset is defined 


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 

_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 


More information about the pve-devel mailing list