From: Glauber Costa Subject: [PATCH] exit if we fail to initialize kvm Date: Tue, 28 Jul 2009 16:52:54 -0400 Message-ID: <1248814374-7953-1-git-send-email-glommer@redhat.com> Cc: avi@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx2.redhat.com ([66.187.237.31]:40559 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754033AbZG1Uwz (ORCPT ); Tue, 28 Jul 2009 16:52:55 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n6SKquh0007680 for ; Tue, 28 Jul 2009 16:52:56 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Falling back to tcg has proven to be evil through time. The option is to do not try to act behind user's back, and quit the program completely if we fail to initialize kvm. Right now, the only way to run tcg from our tree becomes explicitly asking for it, with the -no-kvm option. But it will change when upstream accepts the --accel option. Signed-off-by: Glauber Costa --- vl.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/vl.c b/vl.c index 30c4ff9..cab62cb 100644 --- a/vl.c +++ b/vl.c @@ -5926,12 +5926,8 @@ int main(int argc, char **argv, char **envp) ret = kvm_init(smp_cpus); if (ret < 0) { -#if defined(KVM_UPSTREAM) || defined(NO_CPU_EMULATION) fprintf(stderr, "failed to initialize KVM\n"); exit(1); -#endif - fprintf(stderr, "Could not initialize KVM, will disable KVM support\n"); - kvm_allowed = 0; } } -- 1.6.2.2