diff options
Diffstat (limited to 'accel/kvm/kvm-cpus.c')
-rw-r--r-- | accel/kvm/kvm-cpus.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/accel/kvm/kvm-cpus.c b/accel/kvm/kvm-cpus.c index a120601564..d809b1e74c 100644 --- a/accel/kvm/kvm-cpus.c +++ b/accel/kvm/kvm-cpus.c @@ -20,6 +20,7 @@ #include "sysemu/runstate.h" #include "sysemu/cpus.h" #include "qemu/guest-random.h" +#include "qapi/error.h" #include "kvm-cpus.h" @@ -36,12 +37,7 @@ static void *kvm_vcpu_thread_fn(void *arg) cpu->can_do_io = 1; current_cpu = cpu; - r = kvm_init_vcpu(cpu); - if (r < 0) { - error_report("kvm_init_vcpu failed: %s", strerror(-r)); - exit(1); - } - + r = kvm_init_vcpu(cpu, &error_fatal); kvm_init_cpu_signals(cpu); /* signal CPU creation */ |