]> Git Repo - qemu.git/commitdiff
kvm-all: exit in case max vcpus exceeded
authorMarcelo Tosatti <[email protected]>
Wed, 26 Feb 2014 02:22:07 +0000 (23:22 -0300)
committerPaolo Bonzini <[email protected]>
Thu, 27 Feb 2014 18:30:51 +0000 (19:30 +0100)
Rather than fall back to TCG (so the user has to discover
whats happening, in case of no access to qemu stdout/stderr).

Signed-off-by: Marcelo Tosatti <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
kvm-all.c

index fd8157ad5e3baaea1b94ab1c96feaaccebebeb3e..f299532e27b6610c3075213fc3bb4c220509b927 100644 (file)
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1420,11 +1420,10 @@ int kvm_init(void)
                     nc->name, nc->num, soft_vcpus_limit);
 
             if (nc->num > hard_vcpus_limit) {
-                ret = -EINVAL;
                 fprintf(stderr, "Number of %s cpus requested (%d) exceeds "
                         "the maximum cpus supported by KVM (%d)\n",
                         nc->name, nc->num, hard_vcpus_limit);
-                goto err;
+                exit(1);
             }
         }
         nc++;
This page took 0.026222 seconds and 4 git commands to generate.