updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vmware-patch / vmmon-3.2.0.diff
blob27330b801a3c7ae89476e5e3480baff5c40a1b6e
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
4 @@ -42,6 +42,12 @@
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)
12 +#endif
14 typedef struct PassthruDevice {
15 uint32 bdf;
16 struct pci_dev *pdev;