diff options
author | Barry Song <Barry.Song@csr.com> | 2011-10-24 02:40:40 -0700 |
---|---|---|
committer | Barry Song <Barry.Song@csr.com> | 2011-10-24 02:45:43 -0700 |
commit | 1e11bec9b09a28f81dd3173fec6b1c6c56b5e299 (patch) | |
tree | cddb92f82bda3a5f362bb6d9f775d25dd1205e6b /arch/x86/xen/smp.c | |
parent | 2558bd99cb1426a05ac8f1c78dc9c75a83ceb4bb (diff) | |
parent | 91c2ebb90b1890abc648ba9dec5608cbc97e1cb9 (diff) |
Merge branch 'l2x0' of rmk tree into prima2-l2x0
Diffstat (limited to 'arch/x86/xen/smp.c')
-rw-r--r-- | arch/x86/xen/smp.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c index e79dbb95482..d4fc6d454f8 100644 --- a/arch/x86/xen/smp.c +++ b/arch/x86/xen/smp.c @@ -32,6 +32,7 @@ #include <xen/page.h> #include <xen/events.h> +#include <xen/hvc-console.h> #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); |