From: Alexander Graf Subject: Re: [PATCH] exit if we fail to initialize kvm Date: Tue, 28 Jul 2009 23:38:21 +0200 Message-ID: <0872EC88-DDBB-46BC-B2C0-81363417A71C@suse.de> References: <1248814374-7953-1-git-send-email-glommer@redhat.com> <20090728212852.GY4776@poweredge.glommer> Mime-Version: 1.0 (iPhone Mail 7A341) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Cc: "kvm@vger.kernel.org" , "avi@redhat.com" To: Glauber Costa Return-path: Received: from cantor2.suse.de ([195.135.220.15]:34764 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750765AbZG1ViA (ORCPT ); Tue, 28 Jul 2009 17:38:00 -0400 In-Reply-To: <20090728212852.GY4776@poweredge.glommer> Sender: kvm-owner@vger.kernel.org List-ID: On 28.07.2009, at 23:28, Glauber Costa wrote: > On Tue, Jul 28, 2009 at 11:15:19PM +0200, Alexander Graf wrote: >> >> On 28.07.2009, at 22:52, Glauber Costa wrote: >> >>> 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. >> >> Well, actually there's one little difference: I tell the user to >> use - >> no-kvm if he really wants cpu emulation. >> >> But simply failing is probably good enough. > With my patch, we won't fail if the user asked -no-kvm, because then > we won't > even try to initialize kvm. > > We only exit here, if we try, but fail > Right, the difference is that instead of saying "initializing kvm failed" it would give the user some advice on what happened and what to do next. Alex