From: Ian Jackson Date: Tue, 16 Feb 2010 16:09:06 +0000 (+0000) Subject: passthrough: magic protocol passthrough fix fix X-Git-Tag: xen-4.0.0-rc4~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=3c4013fefe5f901c4a30e75f1d96909ce745efd2;p=qemu-xen-4.1-testing.git passthrough: magic protocol passthrough fix fix The previous changeset 60b80e3ee319e908069d1603e5b73f815acdffac had a bug qemu-xen-unstable, in that test_pci_slot is only in 3.4-testing. This patch makes it use the new devfn-based interface. Contributed-by: Stefano Stabellini Signed-off-by: Ian Jackson --- diff --git a/hw/pci.c b/hw/pci.c index fc6b019f7..a1c1f161b 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -859,7 +859,7 @@ void pci_unplug_netifs(void) if (dev && dev->config[0xa] == 0 && dev->config[0xb] == 2 && - test_pci_slot(x >> 3) != 1) { + test_pci_devfn(x) != 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