mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-31 14:02:05 -06:00
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>
This commit is contained in:
parent
42fa1c2e22
commit
9f8fd69460
1 changed files with 3 additions and 1 deletions
|
@ -338,8 +338,10 @@ int kvm_init(int smp_cpus)
|
||||||
int ret;
|
int ret;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (smp_cpus > 1)
|
if (smp_cpus > 1) {
|
||||||
|
fprintf(stderr, "No SMP KVM support, use '-smp 1'\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
}
|
||||||
|
|
||||||
s = qemu_mallocz(sizeof(KVMState));
|
s = qemu_mallocz(sizeof(KVMState));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue