mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
vt-d: [CVE-2011-1898] Ensure that "iommu=required" enables interrupt remapping.
Ensure that when Xen boots with "iommu=required" it will also insist that interrupt remapping is supported and enabled. It arranges that booting with that option on vulnerable hardware will fail, rather than appearing to succeed but actually being vulnerable to guests. From: Allen Kay <allen.m.kay@intel.com> Signed-off-by: Keir Fraser <keir@xen.org>
This commit is contained in:
1 parent
10fbbbcab8
commit
cce9aba653
1 file changed
+5
@@ -1971,6 +1971,8 @@ static int init_vtd_hw(void)
|
||||
"ioapic_to_iommu: ioapic 0x%x (id: 0x%x) is NULL! "
|
||||
"Will not try to enable Interrupt Remapping.\n",
|
||||
apic, IO_APIC_ID(apic));
|
||||
if ( force_iommu )
|
||||
panic("intremap remapping failed to enable with iommu=required/force in grub\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1984,6 +1986,9 @@ static int init_vtd_hw(void)
|
||||
{
|
||||
dprintk(XENLOG_WARNING VTDPREFIX,
|
||||
"Interrupt Remapping not enabled\n");
|
||||
|
||||
if ( force_iommu && platform_supports_intremap() )
|
||||
panic("intremap remapping failed to enable with iommu=required/force in grub\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||