From f2eb5edef455d4d0cb23b856801e64aeb877d151 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Thu, 27 Aug 2015 16:24:38 +0200 Subject: [PATCH] feature #3028: Keep used PCI devices when updating monitoring --- src/host/HostShare.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/host/HostShare.cc b/src/host/HostShare.cc index 66c96a6cdc..02ac1d0ce3 100644 --- a/src/host/HostShare.cc +++ b/src/host/HostShare.cc @@ -248,6 +248,11 @@ void HostSharePCI::set_monitorization(vector &pci_att) { pci_it = pci_devices.find(*jt); + if ( pci_it->second->vmid != -1 ) + { + continue; + } + remove(pci_it->second->attrs); delete pci_it->second->attrs;