[vbox-dev] Patch needed to build VBox kernel module with 3.1
Larry Finger
Larry.Finger at lwfinger.net
Tue Aug 2 09:47:38 PDT 2011
Linus has not yet released kernel 3.1-rc1, but when he does, the patch below
will be needed to build the kernel modules for VB. The patch is needed because
the include file <asm/amd_iommu.h> has been renamed and moved to
<linux/amd-iommu.h>.
This material is released under the MIT license.
Larry
===============================================
Index: vboxhost/vboxpci/linux/VBoxPci-linux.c
===================================================================
--- vboxhost.orig/vboxpci/linux/VBoxPci-linux.c
+++ vboxhost/vboxpci/linux/VBoxPci-linux.c
@@ -35,7 +35,11 @@
#ifdef VBOX_WITH_IOMMU
#include <linux/dmar.h>
#include <linux/intel-iommu.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0)
#include <asm/amd_iommu.h>
+#else
+#include <linux/amd-iommu.h>
+#endif
#endif
More information about the vbox-dev
mailing list