From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsaHx-0007VD-Ea for qemu-devel@nongnu.org; Thu, 05 Jun 2014 12:13:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsaHt-0004lo-3y for qemu-devel@nongnu.org; Thu, 05 Jun 2014 12:13:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsaHs-0004lZ-Qa for qemu-devel@nongnu.org; Thu, 05 Jun 2014 12:13:09 -0400 From: Eduardo Habkost Date: Thu, 5 Jun 2014 13:12:19 -0300 Message-Id: <1401984741-26882-1-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [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: qemu-devel@nongnu.org Cc: Michael Mueller , kvm@vger.kernel.org, "Michael S. Tsirkin" , Alexander Graf , Christian Borntraeger , "Gabriel L. Somlo" , Borislav Petkov , "Jason J. Herne" , Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= 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 ac= cident, so they will be enabled only if the user explicitly wants to allow them. References to previous patch and discussions: Message-Id: <1379861095-628-7-git-send-email-bp@alien8.de> http://marc.info/?l=3Dkvm&m=3D137986116331560&w=3D2 Message-ID: <20140604204448.GG4105@pd.tnic> http://marc.info/?l=3Dkvm&m=3D140191471903819 This requires a few fixes to the qom-cpu tree which haven't been merged y= et. Git tree: git://github.com/ehabkost/qemu-hacks.git work/get-emulated-cpuid Cc: Borislav Petkov Cc: Paolo Bonzini Cc: Alexander Graf Cc: "Gabriel L. Somlo" Cc: kvm@vger.kernel.org Cc: "Michael S. Tsirkin" Cc: Michael Mueller Cc: Christian Borntraeger Cc: "Jason J. Herne" Cc: Andreas F=C3=A4rber Cc: "Jason J. Herne" Borislav Petkov (1): kvm: Implement kvm_arch_get_emulated_cpuid() Eduardo Habkost (1): target-i386: Add "allow-emulation" X86CPU property include/sysemu/kvm.h | 3 +++ target-i386/cpu-qom.h | 3 +++ target-i386/cpu.c | 18 ++++++++++++++---- target-i386/kvm.c | 38 ++++++++++++++++++++++++++++++++++---- 4 files changed, 54 insertions(+), 8 deletions(-) --=20 1.9.0