summaryrefslogtreecommitdiff
path: root/kvm-all.c
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-05-12 12:43:19 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-05-20 09:24:23 -0500
commit9f8fd69460b30bc3817deabd1d76455248b76da2 (patch)
tree97711064f2075a58f76ee68f103802399b55f6b2 /kvm-all.c
parent42fa1c2e226bd62e8df145f3509b692b65a6170c (diff)
downloadqemu-9f8fd69460b30bc3817deabd1d76455248b76da2.tar.gz
qemu-9f8fd69460b30bc3817deabd1d76455248b76da2.tar.bz2
qemu-9f8fd69460b30bc3817deabd1d76455248b76da2.zip
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>
Diffstat (limited to 'kvm-all.c')
-rw-r--r--kvm-all.c4
1 files changed, 3 insertions, 1 deletions
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));