qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v4 0/2] Support CPUID signature for TCG
@ 2017-05-09 13:27 Daniel P. Berrange
  2017-05-09 13:27 ` [Qemu-devel] [PATCH v4 1/2] i386: rewrite way CPUID index is validated Daniel P. Berrange
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Daniel P. Berrange @ 2017-05-09 13:27 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Richard Henderson, Eduardo Habkost,
	Daniel P. Berrange

This enables report of a signature in CPUID for the TCG
interpretor.

Changed in v4:

 - Report 0x40000001 in EAX for 0x40000000 index (Eduardo)
 - Report all zeros for 0x40000001 index (Eduardo)
 - Make code style consistent when checking limits (Eduardo)

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

-- 
2.9.3

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-06-20 12:03 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-09 13:27 [Qemu-devel] [PATCH v4 0/2] Support CPUID signature for TCG Daniel P. Berrange
2017-05-09 13:27 ` [Qemu-devel] [PATCH v4 1/2] i386: rewrite way CPUID index is validated Daniel P. Berrange
2017-05-19 14:58   ` Kashyap Chamarthy
2017-05-19 19:43     ` Eduardo Habkost
2017-05-09 13:27 ` [Qemu-devel] [PATCH v4 2/2] i386: expose "TCGTCGTCGTCG" in the 0x40000000 CPUID leaf Daniel P. Berrange
2017-05-09 14:05 ` [Qemu-devel] [PATCH v4 0/2] Support CPUID signature for TCG Richard Henderson
2017-05-09 14:08   ` Daniel P. Berrange
2017-05-09 14:13   ` Richard W.M. Jones
2017-05-09 14:18     ` Richard Henderson
2017-05-19 19:41       ` Eduardo Habkost
2017-05-19 19:51         ` Richard W.M. Jones
2017-05-19 19:51         ` Richard W.M. Jones
2017-06-14 10:18         ` Daniel P. Berrange
2017-06-20 12:02           ` Eduardo Habkost
2017-05-09 20:12     ` Eduardo Habkost

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).