From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsaVa-0001Yg-JZ for qemu-devel@nongnu.org; Thu, 05 Jun 2014 12:27:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsaVU-0002xL-Ap for qemu-devel@nongnu.org; Thu, 05 Jun 2014 12:27:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsaVU-0002x9-18 for qemu-devel@nongnu.org; Thu, 05 Jun 2014 12:27:12 -0400 Message-ID: <53909A41.1060800@redhat.com> Date: Thu, 05 Jun 2014 18:26:41 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1401984741-26882-1-git-send-email-ehabkost@redhat.com> <539099B6.2090000@suse.de> In-Reply-To: <539099B6.2090000@suse.de> 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: Alexander Graf , 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?= Il 05/06/2014 18:24, Alexander Graf ha scritto: > > On 05.06.14 18:12, Eduardo Habkost wrote: >> This implements GET_SUPPORTED_CPUID support using an explicit option >> for it: >> "allow-emulation". We don't want any emulated feature to be enabled by >> accident, >> so they will be enabled only if the user explicitly wants to allow them. > > So is this an all-or-nothing approach? I would really prefer to override > individual bits. You can still disable them with "cpu foo,-movbe,allow-emulation". > Also, I don't think the line "emulated" is the right one to draw. We > "emulate" SVM or VMX too, but still enable them by default as soon as we > think they're ready enough. Well, I disagreed with the whole KVM_GET_EMULATED_CPUID concept for MOVBE too for example. It seemed overengineered to me, sooner or later we might graduate MOVBE out of KVM_GET_EMULATED_CPUID as well. However, for MONITOR/MWAIT it makes some sense. Paolo