commit | 9f8fd69460b30bc3817deabd1d76455248b76da2 | [log] [tgz] |
---|---|---|
author | Mark McLoughlin <markmc@redhat.com> | Tue May 12 12:43:19 2009 +0100 |
committer | Anthony Liguori <aliguori@us.ibm.com> | Wed May 20 09:24:23 2009 -0500 |
tree | 97711064f2075a58f76ee68f103802399b55f6b2 | |
parent | 42fa1c2e226bd62e8df145f3509b692b65a6170c [diff] |
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 <markmc@redhat.com>
diff --git a/kvm-all.c b/kvm-all.c index 0ac4b1e..73e814a 100644 --- a/kvm-all.c +++ b/kvm-all.c
@@ -338,8 +338,10 @@ 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));