From: Mark McLoughlin Date: Tue, 12 May 2009 11:43:19 +0000 (+0100) Subject: kvm: add error message for when SMP is requested X-Git-Tag: v0.10.5~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2fbc3b4c81b43c748967855610175ebc567063c6;p=thirdparty%2Fqemu.git kvm: add error message for when SMP is requested Right now, if you try e.g. '-smp 2' you just get 'failed to initialize KVM'. Signed-off-by: Mark McLoughlin Signed-off-by: Anthony Liguori --- diff --git a/kvm-all.c b/kvm-all.c index 2b7d5350304..7435d6794ce 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -286,8 +286,10 @@ int kvm_init(int smp_cpus) int ret; int i; - if (smp_cpus > 1) + if (smp_cpus > 1) { + fprintf(stderr, "No SMP KVM support, use '-smp 1'\n"); return -EINVAL; + } s = qemu_mallocz(sizeof(KVMState));