public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] exit if we fail to initialize kvm
@ 2009-07-28 20:52 Glauber Costa
  2009-07-28 21:12 ` Alexander Graf
  2009-07-28 21:15 ` Alexander Graf
  0 siblings, 2 replies; 13+ messages in thread
From: Glauber Costa @ 2009-07-28 20:52 UTC (permalink / raw)
  To: kvm; +Cc: avi

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 <glommer@redhat.com>
---
 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


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-07-29 15:52 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-28 20:52 [PATCH] exit if we fail to initialize kvm Glauber Costa
2009-07-28 21:12 ` Alexander Graf
2009-07-28 21:15 ` Alexander Graf
2009-07-28 21:28   ` Glauber Costa
2009-07-28 21:38     ` Alexander Graf
2009-07-28 22:12     ` Alexander Graf
2009-07-29 10:17       ` Jan Kiszka
2009-07-29 11:49         ` Avi Kivity
2009-07-29 12:28           ` Alexander Graf
2009-07-29 12:47             ` Avi Kivity
2009-07-29 14:43             ` Jan Kiszka
2009-07-29 15:50               ` Glauber Costa
2009-07-29 15:52                 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox