From: Eduardo Habkost Subject: Re: [RFC 0/2] GET_EMULATED_CPUID support with "allow-emulation" option Date: Thu, 5 Jun 2014 14:19:08 -0300 Message-ID: <20140605171908.GO17594@otherpad.lan.raisama.net> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Alexander Graf , qemu-devel@nongnu.org, Borislav Petkov , "Gabriel L. Somlo" , kvm@vger.kernel.org, "Michael S. Tsirkin" , Michael Mueller , Christian Borntraeger , "Jason J. Herne" , Andreas =?iso-8859-1?Q?F=E4rber?= To: Paolo Bonzini Return-path: Received: from mx1.redhat.com ([209.132.183.28]:57045 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751125AbaFERTb (ORCPT ); Thu, 5 Jun 2014 13:19:31 -0400 Content-Disposition: inline In-Reply-To: <5390A195.4000003@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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? > > - "-cpu foo,+movbe" does What if I want movbe enabled if and only if it is _not_ emulated? The whole point here is to never ever ever enable an emulated feature unless it was explicitly what the user wanted. > > - "-cpu foo,check" and "-cpu foo,enforce" print a nice and > descriptive message if the feature is not available but could be > enabled as emulated "nice and descriptive message" needs to be better specified. Messages on stderr are useless for management software. Maybe a "emulated-features" property in addition to the existing "filtered-features" would be useful. But any of the above changes the fact that this series does not change the semantics of any "-cpu" option combination, except when not using the "enforce" flag (which everybody who cares about CPUID data stability should be already using). -- Eduardo