[vbox-dev] Patch needed to build VBox kernel module with 3.1

Klaus Espenlaub klaus.espenlaub at oracle.com
Wed Aug 3 11:36:52 GMT 2011


On 02.08.2011 18:47, Larry Finger wrote:
> 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.

Thanks a lot for the contribution. Has been applied internally and will 
soon show up in the public repository.

Klaus

>
> 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
>
>
>
>
> _______________________________________________
> vbox-dev mailing list
> vbox-dev at virtualbox.org
> http://vbox.innotek.de/mailman/listinfo/vbox-dev




More information about the vbox-dev mailing list