mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00: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 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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue