Skip to content

target-i386: Increase CPUID level/xlevel/xlevel2 automatically

Eduardo Habkost qemu-devel 2 versions – Applied

Status from this message: Queued on x86-next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 2 repliesApplied
  2. v16 patches 5 repliesSuperseded

Changes in v2 from the cover letter

* Coding style changes (split long lines)
* Simplify compat logic: instead of 3 max_level* fields and 2 cpuid_auto_level_* fields, add a single full_cpuid_auto_level boolean field
* If the user set level/xlevel/xlevel2 to 0 explicitly, do what was asked for (use UINT32_MAX as default value)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/6target-i386: Remove unused X86CPUDefinition::xlevel2 fieldtarget-i386/cpu.c+0 -20 replies
2/6target-i386: Add a marker to end of the region zeroed on resettarget-i386/cpu.c target-i386/cpu.h+2 -10 replies
3/6tests: Add test code for CPUID level/xlevel handlingtests/Makefile.include tests/test-x86-cpuid-compat.c+110 -00 replies
4/6tests: Test CPUID level handling for old machinestests/test-x86-cpuid-compat.c+13 -00 replies
5/6target-i386: Automatically set level/xlevel/xlevel2 when neededinclude/hw/i386/pc.h target-i386/cpu.c target-i386/cpu.h +1 more+134 -140 replies
6/6target-i386: Enable CPUID[0x8000000A] if SVM is enabledtarget-i386/cpu.c tests/test-x86-cpuid-compat.c+14 -50 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRichard Henderson
SeriesR-b
1/6
2/6
3/6
4/6
5/6
6/6

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/6] target-i386: Increase CPUID level/xlevel/xlevel2 automatically

This series fixes the inconsistency between CPUID[7].EBX features and all the rest of the configurable CPU features. This ensures that level/xlevel/xlevel2 will be set to appropriate values depending on the set of features enabled in a CPU model or in the command-line.

Changes v1 -> v2:
* Coding style changes (split long lines)
* Simplify compat logic: instead of 3 max_level* fields and 2 cpuid_auto_level_* fields, add a single full_cpuid_auto_level boolean field
* If the user set level/xlevel/xlevel2 to 0 explicitly, do what was asked for (use UINT32_MAX as default value)

Eduardo Habkost (6):
target-i386: Remove unused X86CPUDefinition::xlevel2 field
target-i386: Add a marker to end of the region zeroed on reset
tests: Add test code for CPUID level/xlevel handling
tests: Test CPUID level handling for old machines
target-i386: Automatically set level/xlevel/xlevel2 when needed
target-i386: Enable CPUID[0x8000000A] if SVM is enabled

 include/hw/i386/pc.h          |   7 +-
 target-i386/cpu.c             |  92 +++++++++++++++++++----
 target-i386/cpu.h             |  13 +++-
 tests/Makefile.include        |   2 +
 tests/test-x86-cpuid-compat.c | 171 ++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 268 insertions(+), 17 deletions(-)
 create mode 100644 tests/test-x86-cpuid-compat.c
Signature · 1 line
2.7.4