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:
Mark McLoughlin 2009-05-12 12:43:19 +01:00 committed by Anthony Liguori
parent 42fa1c2e22
commit 9f8fd69460

View file

@ -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));