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 13:21:36 -0500 |
commit | 2fbc3b4c81b43c748967855610175ebc567063c6 (patch) | |
tree | 1fa0b59bf410db933091b55345d3ffdeda454a79 | |
parent | 8765893e9ee3136e1301b06180c05cdf848bce9a (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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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)); |