]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
kvm: add error message for when SMP is requested
authorMark McLoughlin <markmc@redhat.com>
Tue, 12 May 2009 11:43:19 +0000 (12:43 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 20 May 2009 18:21:36 +0000 (13:21 -0500)
Right now, if you try e.g. '-smp 2' you just get 'failed to
initialize KVM'.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
kvm-all.c

index 2b7d5350304450ae884ec0dc23414a206de1fd6c..7435d6794ce5065d7d1415eb32b501443fee88a5 100644 (file)
--- 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));