From: Jean Guyader Date: Thu, 12 Mar 2009 17:33:45 +0000 (+0000) Subject: Do not remove the pass through network card, X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9119aeb07ed8a405233ef7da1f7d67e0014bf691;p=xenclient%2Fioemu.git Do not remove the pass through network card, when we do a netif unplug. --- diff --git a/hw/pci.c b/hw/pci.c index fee6067a..b5c517cd 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -682,7 +682,8 @@ void pci_unplug_netifs(void) dev = bus->devices[x]; if (dev && dev->config[0xa] == 0 && - dev->config[0xb] == 2) { + dev->config[0xb] == 2 && + strcmp(dev->name, "DIRECT PCI")) { /* Found a netif. Remove it from the bus. Note that we don't free it here, since there could still be references to it floating around. There are only