mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
intel-iommu: Fix boot inside 64bit virtualbox with io-apic disabled
Commit 074835f014 ("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 <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
parent
dda5654927
commit
4f506e07e0
1 changed files with 2 additions and 0 deletions
|
|
@ -1466,5 +1466,7 @@ int __init dmar_ir_support(void)
|
|||
{
|
||||
struct acpi_table_dmar *dmar;
|
||||
dmar = (struct acpi_table_dmar *)dmar_tbl;
|
||||
if (!dmar)
|
||||
return 0;
|
||||
return dmar->flags & 0x1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue