projects
/
qemu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42fa1c2
)
kvm: add error message for when SMP is requested
author
Mark McLoughlin
<markmc@redhat.com>
Tue, 12 May 2009 11:43:19 +0000
(12:43 +0100)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Wed, 20 May 2009 14:24:23 +0000
(09:24 -0500)
Right now, if you try e.g. '-smp 2' you just get 'failed to
initialize KVM'.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
kvm-all.c
patch
|
blob
|
history
diff --git
a/kvm-all.c
b/kvm-all.c
index
0ac4b1e
..
73e814a
100644
(file)
--- 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));