From 9f8fd69460b30bc3817deabd1d76455248b76da2 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Tue, 12 May 2009 12:43:19 +0100 Subject: [PATCH] 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 --- kvm-all.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kvm-all.c b/kvm-all.c index 0ac4b1e1e0..73e814a31d 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -338,8 +338,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)); -- 2.11.4.GIT