#include "exec-all.h"
#include "qemu-xen.h"
+#ifdef CONFIG_PASSTHROUGH
+#include "hw/pass-through.h"
+#endif
+
+extern int igd_passthru;
+
//#define DEBUG_PCI
struct PCIBus {
dev = bus->devices[x];
if (dev &&
dev->config[0xa] == 0 &&
- dev->config[0xb] == 2 &&
- test_pci_slot(x >> 3) != 1) {
+ dev->config[0xb] == 2
+#ifdef CONFIG_PASSTHROUGH
+ && test_pci_slot(x >> 3) != 1
+#endif
+ ) {
/* 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