From 58b51e1486668b071a4520b1d31af437c6064a17 Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Thu, 1 Sep 2011 09:48:27 -0400 Subject: [PATCH] --- yaml --- r: 263628 b: refs/heads/master c: ed467e69f16e6b480e2face7bc5963834d025f91 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/x86/xen/smp.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index d2c9d8300978..b98051749cbe 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d198d499148a0c64a41b3aba9e7dd43772832b91 +refs/heads/master: ed467e69f16e6b480e2face7bc5963834d025f91 diff --git a/trunk/arch/x86/xen/smp.c b/trunk/arch/x86/xen/smp.c index e79dbb95482b..d4fc6d454f8d 100644 --- a/trunk/arch/x86/xen/smp.c +++ b/trunk/arch/x86/xen/smp.c @@ -32,6 +32,7 @@ #include #include +#include #include "xen-ops.h" #include "mmu.h" @@ -207,6 +208,15 @@ static void __init xen_smp_prepare_cpus(unsigned int max_cpus) unsigned cpu; unsigned int i; + if (skip_ioapic_setup) { + char *m = (max_cpus == 0) ? + "The nosmp parameter is incompatible with Xen; " \ + "use Xen dom0_max_vcpus=1 parameter" : + "The noapic parameter is incompatible with Xen"; + + xen_raw_printk(m); + panic(m); + } xen_init_lock_cpu(0); smp_store_cpu_info(0);