Skip to content

x86 CPU cleanup (wave 2)

Igor Mammedov qemu-devel 4 versions – Applied

Status from this message: Thanks, applied 1-4 to qom-cpu (squashing 3+4 as justification for 3):

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest20 patches 7 repliesApplied
  2. v320 patches 25 repliesSuperseded
  3. v220 patches 32 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches9 repliesSuperseded

Changes in v4 from the cover letter

- rename [01/20] from:
target-i386: filter out not TCG features if running without kvm at
realize time
to:
target-i386: filter out unsupported features at realize time
- make commit lines shorter for:
target-i386: move kvm_check_features_against_host() check to realize
time
- restore removed by mistake host_cpuid() call in:
target-i386: replace uint32_t vendor fields by vendor string in x86_def_t
- fix spelling in:

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/20target-i386: filter out unsupported features at realize timetarget-i386/cpu.c+16 -151 reply
2/20target-i386: sanitize AMD's ext2_features at realize timetarget-i386/cpu.c+11 -101 reply
3/20target-i386: explicitly set vendor for each built-in cpudeftarget-i386/cpu.c+27 -00 replies
4/20target-i386: setting default 'vendor' is obsolete, remove ittarget-i386/cpu.c+4 -90 replies
5/20target-i386: move setting defaults out of cpu_x86_parse_featurestr()target-i386/cpu.c+7 -50 replies
6/20target-i386: move out CPU features initialization in separate functarget-i386/cpu.c+30 -230 replies
7/20target-i386: cpu_x86_register() consolidate freeing resourcestarget-i386/cpu.c+9 -90 replies
8/20target-i386: move kvm_check_features_against_host() check to realize timetarget-i386/cpu.c+15 -120 replies
9/20target-i386: add x86cpu_vendor_words2str()target-i386/cpu.c+14 -76 replies
9/20target-i386: add x86cpu_vendor_words2str()target-i386/cpu.c+14 -71 reply
10/20target-i386: replace uint32_t vendor fields by vendor string in x86_def_ttarget-i386/cpu.c target-i386/cpu.h+33 -991 reply
11/20target-i386: remove vendor_override field from CPUX86Statetarget-i386/cpu.c target-i386/cpu.h+12 -160 replies
12/20target-i386: prepare cpu_x86_parse_featurestr() to return a set of key, value property pairstarget-i386/cpu.c+27 -60 replies
13/20target-i386: set custom 'vendor' without intermediate x86_def_ttarget-i386/cpu.c+1 -10 replies
14/20target-i386: print deprecated warning if xlevel < 0x80000000target-i386/cpu.c+2 -01 reply
15/20target-i386: set custom 'xlevel' without intermediate x86_def_ttarget-i386/cpu.c+4 -11 reply
16/20target-i386: set custom 'level' without intermediate x86_def_ttarget-i386/cpu.c+1 -70 replies
17/20target-i386: set custom 'model-id' without intermediate x86_def_ttarget-i386/cpu.c+1 -20 replies
18/20target-i386: set custom 'stepping' without intermediate x86_def_ttarget-i386/cpu.c+1 -70 replies
19/20target-i386: set custom 'model' without intermediate x86_def_ttarget-i386/cpu.c+1 -70 replies
20/20target-i386: set custom 'family' without intermediate x86_def_ttarget-i386/cpu.c+1 -70 replies

Reviews trailers per patch

All 21 patches have a Reviewed-by or Acked-by.

PatchEduardo Habkost
1/20R-b
2/20R-b
3/20R-b
4/20R-b
5/20R-b
6/20R-b
7/20R-b Spotted-By
8/20R-b
9/20R-b Spotted-By Spotted-By R-b
9/20R-b Spotted-By Spotted-By R-b
10/20Spotted-By R-b
11/20R-b
12/20R-b
13/20R-b
14/20R-b
15/20R-b
16/20R-b
17/20R-b
18/20R-b
19/20R-b
20/20R-b

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

Read the v4 thread

Cover letter [Qemu-devel] [PATCH 00/20 v4] x86 CPU cleanup (wave 2)

This series is several cleanups, moved out from CPU properties series, since they do not really depend on CPU properties re-factoring and could simplify CPU subclasses work as well.

Series doesn't depend on cpu as device or any other series, and applies to current master.

git tree for testing:

    https://github.com/imammedo/qemu/tree/x86_cpu_cleanup.wave2.v4

v4:
- rename [01/20] from:
target-i386: filter out not TCG features if running without kvm at
realize time
to:
target-i386: filter out unsupported features at realize time
- make commit lines shorter for:
target-i386: move kvm_check_features_against_host() check to realize
time
- restore removed by mistake host_cpuid() call in:
target-i386: replace uint32_t vendor fields by vendor string in x86_def_t
- fix spelling in:

     target-i386: print depricated warning if xlevel < 0x80000000

- use qstring_append_int() for converting xlevel to string in:
target-i386: set custom 'xlevel' without intermediate x86_def_t

v3:
- [07/20] sets error if cpu name is empty, restore return -1 on error
- get rid of *vendor_override field in CPUX86State & co
- mark xlevel < 0x80000000 as depricated
- squash idef-ing kvm specific functions in [08/20]
- expand comment of [12/20] and reorder it right before "set custom" patches

v2:
- cleanup commit message and style fixes in
[PATCH 2/6] target-i386: sanitize AMD's ext2_features at realize time
- extracted more patches [07-20] from cpu properties series, that were more cleanups and code reorganizing than conversion to static properties.

Igor Mammedov (20):
target-i386: filter out unsupported features at realize time
target-i386: sanitize AMD's ext2_features at realize time
target-i386: explicitly set vendor for each built-in cpudef
target-i386: setting default 'vendor' is obsolete, remove it
target-i386: move setting defaults out of cpu_x86_parse_featurestr()
target-i386: move out CPU features initialization in separate func
target-i386: cpu_x86_register() consolidate freeing resources
target-i386: move kvm_check_features_against_host() check to realize
time
target-i386: add x86cpu_vendor_words2str()
target-i386: replace uint32_t vendor fields by vendor string in

    x86_def_t

target-i386: remove vendor_override field from CPUX86State
target-i386: prepare cpu_x86_parse_featurestr() to return a set of
key,value property pairs
target-i386: set custom 'vendor' without intermediate x86_def_t
target-i386: print deprecated warning if xlevel < 0x80000000
target-i386: set custom 'xlevel' without intermediate x86_def_t
target-i386: set custom 'level' without intermediate x86_def_t
target-i386: set custom 'model-id' without intermediate x86_def_t
target-i386: set custom 'stepping' without intermediate x86_def_t
target-i386: set custom 'model' without intermediate x86_def_t
target-i386: set custom 'family' without intermediate x86_def_t

 target-i386/cpu.c |  377 +++++++++++++++++++++++++----------------------------
 target-i386/cpu.h |    7 +-
 2 files changed, 179 insertions(+), 205 deletions(-)