[Qemu-devel] [PATCH v2 0/2] Support CPUID signature for TCG

Daniel P. Berrange posted 2 patches 6 years, 11 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20170505142743.19849-1-berrange@redhat.com
Test checkpatch passed
Test docker passed
Test s390x passed
There is a newer version of this series
include/hw/i386/pc.h |  5 ++++
target/i386/cpu.c    | 73 +++++++++++++++++++++++++++++++++++++++-------------
target/i386/cpu.h    |  1 +
3 files changed, 61 insertions(+), 18 deletions(-)
[Qemu-devel] [PATCH v2 0/2] Support CPUID signature for TCG
Posted by Daniel P. Berrange 6 years, 11 months ago
This enables report of a signature in CPUID for the TCG
interpretor.

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    | 73 +++++++++++++++++++++++++++++++++++++++-------------
 target/i386/cpu.h    |  1 +
 3 files changed, 61 insertions(+), 18 deletions(-)

-- 
2.9.3