From 9119aeb07ed8a405233ef7da1f7d67e0014bf691 Mon Sep 17 00:00:00 2001 From: Jean Guyader Date: Thu, 12 Mar 2009 17:33:45 +0000 Subject: [PATCH] Do not remove the pass through network card, when we do a netif unplug. --- hw/pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5