From: Arnaud Patard Date: Thu, 25 Mar 2010 18:02:58 +0000 (+0000) Subject: intel-iommu: Fix boot inside 64bit virtualbox with io-apic disabled X-Git-Tag: v2.6.35-rc1~434^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f506e07e0a3dff34427cece255a8f390a78d5a0;p=pandora-kernel.git intel-iommu: Fix boot inside 64bit virtualbox with io-apic disabled Commit 074835f0143b83845af5044af2739c52c9f53808 ("intel-iommu: Fix kernel hand if interrupt remapping disabled in BIOS") is adding a check for interrupt remapping disabled and is dereferencing the dmar_tbl pointer without checking its value. Unfortunately, this value is null when booting inside a 64bit virtual box guest with io-apic disabled, leading to a crash. With a check on it, the guest is now booting. It's triggering a WARN() in clockevent_delta2ns but it's better than not booting at all and allows the user to see there's something wrong on their io-apic setup. Signed-off-by: Arnaud Patard Signed-off-by: David Woodhouse --- Reading git-diff-tree failed