From: Dan Kenigsberg Subject: Re: [Qemu-devel] expose host CPU features to guests: Take 3 Date: Tue, 25 Sep 2007 15:27:47 +0200 Message-ID: <20070925132747.GA5235@karma.qumranet.com> References: <20070924174129.GA4507@karma.qumranet.com> <20070925084842.GA14221@karma.qumranet.com> <46F8CE52.3080502@qumranet.com> <1190711970.30193.15.camel@rapid> <46F8D577.3020306@qumranet.com> <46F8E5A2.30906@qumranet.com> <1190718562.30193.25.camel@rapid> <46F8F2B8.1080203@qumranet.com> <1190725664.13490.14.camel@jma4.dev.netgem.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel , qemu-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org, Avi Kivity To: Jocelyn Mayer Return-path: Content-Disposition: inline In-Reply-To: <1190725664.13490.14.camel-JEa2SU7BmVsPEyPTZiGI+UEOCMrvLtNR@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org On Tue, Sep 25, 2007 at 03:07:44PM +0200, Jocelyn Mayer wrote: > > So, running qemu without any parameters would use host capabilities if > > kvm is available and the default qemu cpu if not. The -cpu option can > > be used to override this if necessary. > > Well, it may be needed to integrate the "-cpu host" option. > But I think it's a really bad idea that running qemu without the -cpu > option would not act the same on different host. When I want to test > qemu with the same command line, I want it to behave exactly the same, > whatever the host I'm running on, like any other tool. Think about gcc, > for example, if you launch it without option, it compiles for a generic > CPU. If you want to tune the generated code, even for the host you're > running on, you have to use -mcpu/-march/-mtune. Using one command line > always have gives the same result. > Then, my opinion is that running qemu without any -cpu option should > always use a default target. Note that in "take 3" the default is indeed to expose the "basic" default cpu features if no -cpu is specified. One must add -cpu host in order to read and expose the host cpuid. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/