From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d83C8-0004jl-9N for qemu-devel@nongnu.org; Tue, 09 May 2017 07:20:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d83C3-000587-AS for qemu-devel@nongnu.org; Tue, 09 May 2017 07:20:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37014) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d83C3-00057q-4h for qemu-devel@nongnu.org; Tue, 09 May 2017 07:20:39 -0400 From: "Daniel P. Berrange" Date: Tue, 9 May 2017 12:20:32 +0100 Message-Id: <20170509112034.23351-1-berrange@redhat.com> Subject: [Qemu-devel] [PATCH v3 0/2] Support CPUID signature for TCG List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , Eduardo Habkost , "Daniel P. Berrange" This enables report of a signature in CPUID for the TCG interpretor. Changed in v3: - Simplify CPU limit code still further (Eduardo) Changed in v2: - Rewrite the way we bounds check / cap the CPUID index to use a flat switch, instead of nested ifs (Eduardo) - Add a 'tcg-cpuid' property to allow it to be hidden (Eduardo) - Hide the TCG signature for old machine types - Force code to a no-op if tcg_enabled() is false (Eduardo) NB, I did not introduce a general 'hypervisor-cpuid' property to obsolete the existing 'kvm=off|on' -cpu property, since it appears impossible to get the back compat semantics right, as described in a previous reply. Daniel P. Berrange (2): i386: rewrite way CPUID index is validated i386: expose "TCGTCGTCGTCG" in the 0x40000000 CPUID leaf include/hw/i386/pc.h | 5 +++++ target/i386/cpu.c | 59 +++++++++++++++++++++++++++++++++------------------- target/i386/cpu.h | 1 + 3 files changed, 44 insertions(+), 21 deletions(-) -- 2.9.3