Skip to content

RFC CPU init cleanup + CPU model classes (v2)

Eduardo Habkost qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest13 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13target-i386/cpu.c: coding style fixestarget-i386/cpu.c+13 -130 replies
2/13x86_cpudef_setup: coding style changetarget-i386/cpu.c+9 -60 replies
3/13i386: x86_def_t: rename 'flags' fieldtarget-i386/cpu.c+3 -30 replies
4/13move CPU x86 object creation to cpu.chw/pc.c hw/xen_machine_pv.c target-i386/cpu.c +2 more+22 -280 replies
5/13rename x86_def_t to X86CPUDefinitiontarget-i386/cpu.c+98 -480 replies
6/13move X86CPUDefinition to cpu-qom.htarget-i386/cpu-qom.h target-i386/cpu.c+19 -180 replies
7/13cpu_x86_create: move error handling to end of functiontarget-i386/cpu.c+4 -20 replies
8/13cpu_x86_register: always initialize 'name' and 'features'target-i386/cpu.c+2 -20 replies
9/13kill cpu_x86_register()target-i386/cpu.c target-i386/cpu.h+18 -250 replies
10/13cpu_x86_create: reorder parsing of CPU model string and creation of CPU objecttarget-i386/cpu.c+8 -60 replies
11/13check for NULL cpu_model outside cpu_x86_find_by_nametarget-i386/cpu.c+5 -50 replies
12/13register a class for each CPU model (v2)target-i386/cpu-qom.h target-i386/cpu.c+79 -370 replies
13/13HACK to initialize types latertarget-i386/cpu.c+6 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [RFC 00/13] CPU init cleanup + CPU model classes (v2)

his is a new version of the previous CPU model classes RFC I have sent previously, rebased on top of Igor's CPU properties series, and other series from the list.

Igor's series: http://article.gmane.org/gmane.comp.emulators.qemu/165728

Considering that I had rebased Igor's series on top of other code, it's probably easier to look directly at my git tree:
https://github.com/ehabkost/qemu-hacks/tree/work/cpu-model-classes-v1.10-2012-08-16

The following series were applied before this one, in this order:

- -cpu help fixes from Peter Maydell (branch from-list/cpu-help-peter-2012-08-10)
- CPU DeviceState series from Anthony (branch from-list/cpu-qdev-anthony-2012-08-10)
- My "move CPU models to C" series (branch work/move-cpu-models-to-C-v1.4-2012-08-15)
- Igor's CPU properties series (branch work/cpu-properties-igor-rebase-v3.2-2012-08-15)

Eduardo Habkost (13):
target-i386/cpu.c: coding style fixes
x86_cpudef_setup: coding style change
i386: x86_def_t: rename 'flags' field
move CPU x86 object creation to cpu.c
rename x86_def_t to X86CPUDefinition
move X86CPUDefinition to cpu-qom.h
cpu_x86_create: move error handling to end of function
cpu_x86_register: always initialize 'name' and 'features' kill cpu_x86_register()
cpu_x86_create: reorder parsing of CPU model string and creation of
CPU object
check for NULL cpu_model outside cpu_x86_find_by_name register a class for each CPU model (v2)
HACK to initialize types later

 hw/pc.c               |   2 +-
 hw/xen_machine_pv.c   |   2 +-
 target-i386/cpu-qom.h |  21 ++++
 target-i386/cpu.c     | 340 ++++++++++++++++++++++++++++++++------------------
 target-i386/cpu.h     |   5 +-
 target-i386/helper.c  |  24 ----
 6 files changed, 243 insertions(+), 151 deletions(-)
Signature · 1 line
1.7.11.2