From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsbdt-0005Yu-JE for qemu-devel@nongnu.org; Thu, 05 Jun 2014 13:40:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wsbdk-0008L4-Ic for qemu-devel@nongnu.org; Thu, 05 Jun 2014 13:39:57 -0400 Received: from mail-qg0-x233.google.com ([2607:f8b0:400d:c04::233]:50039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsbdk-0008Kw-EK for qemu-devel@nongnu.org; Thu, 05 Jun 2014 13:39:48 -0400 Received: by mail-qg0-f51.google.com with SMTP id q107so2116128qgd.38 for ; Thu, 05 Jun 2014 10:39:47 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <5390AB5E.5070702@redhat.com> Date: Thu, 05 Jun 2014 19:39:42 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1401984741-26882-1-git-send-email-ehabkost@redhat.com> <539099B6.2090000@suse.de> <53909A41.1060800@redhat.com> <53909D79.1070609@suse.de> <53909E53.9050300@redhat.com> <53909E9C.6080009@suse.de> <5390A06A.9070200@redhat.com> <5390A0B6.8050000@suse.de> <5390A195.4000003@redhat.com> <20140605171908.GO17594@otherpad.lan.raisama.net> In-Reply-To: <20140605171908.GO17594@otherpad.lan.raisama.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with "allow-emulation" option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: Michael Mueller , kvm@vger.kernel.org, "Michael S. Tsirkin" , Alexander Graf , qemu-devel@nongnu.org, Christian Borntraeger , "Gabriel L. Somlo" , Borislav Petkov , "Jason J. Herne" , =?ISO-8859-1?Q?Andreas_?= =?ISO-8859-1?Q?F=E4rber?= Il 05/06/2014 19:19, Eduardo Habkost ha scritto: > On Thu, Jun 05, 2014 at 06:57:57PM +0200, Paolo Bonzini wrote: >> Il 05/06/2014 18:54, Alexander Graf ha scritto: >>>> >>>> What about: >>>> >>>> - letting "-cpu foo,+emulatedfeature" just work >>>> >>>> - adding emulated=yes that blindly enables all emulated features >>>> >>>> - making "-cpu ...,check" prints a warning for emulated features >>>> unless emulated=yes >>> >>> How about we remove the emulated=yes from this list? Then I'm happy :). >> >> So: >> >> - "-cpu foo" doesn't enable any emulated feature > > What if "foo" already has movbe in the CPU model definition? It will be disabled. >> >> - "-cpu foo,+movbe" does > > What if I want movbe enabled if and only if it is _not_ emulated? Pick a CPU model that has it. > The whole point here is to never ever ever enable an emulated feature > unless it was explicitly what the user wanted. "+foo" could be enough. > "nice and descriptive message" needs to be better specified. Messages on > stderr are useless for management software. I'm not sure this feature is for management software users. Paolo