Skip to content

i386: Add "max" CPU model to TCG and KVM

Eduardo Habkost qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 15 repliesIn review
  2. v16 patches 6 repliesApplied

Changes in v2 from the cover letter

* Fix build without CONFIG_KVM at lmce_supported()
* Rebased on top of my x86-next branch:
https://github.com/ehabkost/qemu x86-next

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3i386: Create "max" CPU modeltarget/i386/cpu.c+32 -140 replies
2/3i386: Make "max" model not use any host CPUID info on TCGtarget/i386/cpu.c+9 -04 replies
3/3i386: Don't set CPUClass::cpu_def on "max" modeltarget/i386/cpu-qom.h target/i386/cpu.c+24 -252 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchRichard W.M. Jones
SeriesT-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/3] i386: Add "max" CPU model to TCG and KVM

Changes v1 -> v2:
* Fix build without CONFIG_KVM at lmce_supported()
* Rebased on top of my x86-next branch:
https://github.com/ehabkost/qemu x86-next

Git branch for testing:
https://github.com/ehabkost/qemu-hacks work/x86-cpu-max-tcg

libvirt code to use the new feature already exist, and were submitted to libvir-list, at:
https://www.mail-archive.com/[email protected]/msg142168.html

---

This is a replacement for the previous series that enabled the "host" CPU model on TCG. Now a new "max" CPU is being added, while keeping "host" KVM-specific.

In addition to simply adding "max" as a copy of the existing "host" CPU model, additional patches change it to not use any host CPUID information when in TCG mode.

---
Cc: "Richard W.M. Jones" <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Cornelia Huck <[email protected]>
Cc: "Daniel P. Berrange" <[email protected]>
Cc: Peter Maydell <[email protected]>
Cc: Igor Mammedov <[email protected]>
Cc: Jiri Denemark <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: "Jason J. Herne" <[email protected]>
Cc: Paolo Bonzini <[email protected]>

Eduardo Habkost (3):
i386: Create "max" CPU model
i386: Make "max" model not use any host CPUID info on TCG
i386: Don't set CPUClass::cpu_def on "max" model

 target/i386/cpu-qom.h |  4 ++-
 target/i386/cpu.c     | 98 ++++++++++++++++++++++++++++++++-------------------
 2 files changed, 64 insertions(+), 38 deletions(-)
Signature · 1 line
2.11.0.259.g40922b1