From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsazm-0002C7-US for qemu-devel@nongnu.org; Thu, 05 Jun 2014 12:58:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wsazd-0007bq-5K for qemu-devel@nongnu.org; Thu, 05 Jun 2014 12:58:30 -0400 Received: from cantor2.suse.de ([195.135.220.15]:49360 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsazc-0007bI-VN for qemu-devel@nongnu.org; Thu, 05 Jun 2014 12:58:21 -0400 Message-ID: <5390A1A9.40602@suse.de> Date: Thu, 05 Jun 2014 18:58:17 +0200 From: Alexander Graf 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> In-Reply-To: <5390A06A.9070200@redhat.com> Content-Type: text/plain; charset=UTF-8; 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: Paolo Bonzini , Eduardo Habkost , qemu-devel@nongnu.org Cc: Michael Mueller , kvm@vger.kernel.org, "Michael S. Tsirkin" , Christian Borntraeger , "Gabriel L. Somlo" , Borislav Petkov , "Jason J. Herne" , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= On 05.06.14 18:52, Paolo Bonzini wrote: > Il 05/06/2014 18:45, Alexander Graf ha scritto: >>>> >>> >>> Only if you were using "-cpu somethingThatHasAVX", though, no? >> >> Yes. The same argument goes the other way around. I want to use AVX >> emulation, do "allow-emulation" and suddenly I get MONITOR/MWAIT >> emulation. > > 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 So: -cpu foo,+emulatedFeature just works -cpu foo,+notEmulatedFeature still sets the CPUID bit for that feature -cpu foo,check prints warnings for all cpuid bits not in the "allowed" bitmap. It prints different warnings depending on whether the bit is in "emulated" or not Alex