diff options
author | Mark McLoughlin <markmc@redhat.com> | 2009-05-12 12:43:19 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-05-20 09:24:23 -0500 |
commit | 9f8fd69460b30bc3817deabd1d76455248b76da2 (patch) | |
tree | 97711064f2075a58f76ee68f103802399b55f6b2 /kvm-all.c | |
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>
Diffstat (limited to 'kvm-all.c')
-rw-r--r-- | kvm-all.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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)); |