From 2fbc3b4c81b43c748967855610175ebc567063c6 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Tue, 12 May 2009 12:43:19 +0100 Subject: 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 --- kvm-all.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kvm-all.c b/kvm-all.c index 2b7d535030..7435d6794c 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)); -- cgit v1.2.1