From: Liang Li Subject: [RFC] Add the panic info when disable VT-d Date: Mon, 19 Jan 2015 17:00:47 +0800 Message-ID: <1421658047-21242-1-git-send-email-liang.z.li@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: yang.z.zhang@intel.com, andrew.cooper3@citrix.com, Liang Li , keir@xen.org, jbeulich@suse.com List-Id: xen-devel@lists.xenproject.org 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 --- 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