[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [RFC] Add the panic info when disable VT-d



Before the chang, if setting iommu=0 option in xen boot option, the
painc info is "Couldn't enable IOMMU and iomm=required/force", this
will confuse the users because the iommu has been disabled.

Signed-off-by: Liang Li <liang.z.li@xxxxxxxxx>
---
 xen/arch/x86/apic.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/xen/arch/x86/apic.c b/xen/arch/x86/apic.c
index 39cd9e5..50f795f 100644
--- a/xen/arch/x86/apic.c
+++ b/xen/arch/x86/apic.c
@@ -915,6 +915,11 @@ void __init x2apic_bsp_setup(void)
             return;
         }        
         printk("x2APIC: Already enabled by BIOS: Ignoring cmdline disable.\n");
+    } else {
+        if ( !iommu_enable) {
+            panic("x2APIC should be disabled while IOMMU is disabled,"
+                  "try to set x2apic=0 in cmdline and disable x2apic in BIOS");
+        }
     }
 
     if ( !iommu_supports_eim() )
-- 
1.9.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.