1 diff -u -r vmmon-only/linux/iommu.c vmmon-only/linux/iommu.c
2 --- vmmon-only/linux/iommu.c 2011-08-23 02:11:45.000000000 +0200
3 +++ vmmon-only/linux/iommu.c 2011-11-09 15:19:36.000000000 +0100
5 #define PCI_BDF_SLOTFUNC(bdf) PCI_DEVFN(PCI_SLOT(bdf), PCI_FUNC(bdf))
6 #define PCI_BDF_BUS(bdf) (((bdf) >> 8) & 0xff)
8 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 42, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(3, 0, 0)) || LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
9 +#include <linux/pci.h>
10 +#define iommu_found() iommu_present(&pci_bus_type)
11 +#define iommu_domain_alloc() iommu_domain_alloc(&pci_bus_type)
14 typedef struct PassthruDevice {