aboutsummaryrefslogtreecommitdiff
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 13:21:36 -0500
commit2fbc3b4c81b43c748967855610175ebc567063c6 (patch)
tree1fa0b59bf410db933091b55345d3ffdeda454a79
parent8765893e9ee3136e1301b06180c05cdf848bce9a (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> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--kvm-all.c4
1 files changed, 3 insertions, 1 deletions
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));