]> xenbits.xensource.com Git - xenclient/ioemu.git/commitdiff
Do not remove the pass through network card,
authorJean Guyader <jean.guyader@eu.citrix.com>
Thu, 12 Mar 2009 17:33:45 +0000 (17:33 +0000)
committerJean Guyader <jean.guyader@eu.citrix.com>
Thu, 12 Mar 2009 17:33:45 +0000 (17:33 +0000)
when we do a netif unplug.

hw/pci.c

index fee6067ab5521cfc0aa505d9c642ca5d361c8c67..b5c517cdf3ce76720970170636d8a0c187a3122d 100644 (file)
--- 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