On Fri, 12 Feb 2010, Zhai, Edwin wrote:
> [bugs:]
>
> 1. Pass-through NICs are also unplugged, although them have different
> path with vnif and emulated NIC.
You are right, that is a bug and this patch should fix it.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
dev = bus->devices[x];
if (dev &&
dev->config[0xa] == 0 &&
- dev->config[0xb] == 2) {
+ dev->config[0xb] == 2 &&
+ test_pci_slot(x >> 3) != 1) {
/* 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