RFC cpus: make "-cpu cpux, features" global properties
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest8 patches 41 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | target-i386: cpu: move features logic that requires CPUState to realize timetarget-i386/ | +18 | 10 replies | |
| 2/8 | target-i386: cpu: move xcc->kvm_required check to reaize timetarget-i386/ | +7 | 2 replies | |
| 3/8 | target-i386: cpu: use cpu_generic_init() in cpu_x86_init()target-i386/ | +1 | 1 reply | |
| 4/8 | target-i386: cpu: consolidate calls of object_property_parse() in x86_cpu_parse_featurestrtarget-i386/ | +17 | 12 replies | |
| 5/8 | target-sparc: cpu: use sparc_cpu_parse_features() directlytarget-sparc/ | +4 | 0 replies | |
| 6/8 | cpu: use CPUClass->parse_features() as convertor to global propertieshw/ include/ qom/ +1 more | +41 | 3 replies | |
| 7/8 | arm: virt: parse cpu_model only oncehw/ | +21 | 0 replies | |
| 8/8 | pc: parse cpu features only oncehw/ target-i386/ target-i386/ | +28 | 0 replies |
Reviews trailers per patch
2 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Eduardo Habkost | Eric Blake |
|---|---|---|
| 1/8 | ||
| 2/8 | ||
| 3/8 | R-b | |
| 4/8 | R-b | |
| 5/8 | ||
| 6/8 | ||
| 7/8 | ||
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-arm] [PATCH RFC 0/8] cpus: make "-cpu cpux, features" global properties
Current CLI option -cpu cpux,features serves as template for all created cpus of type: cpux. However QEMU parses "features" every time it creates a cpu instance and applies them to it while doing parsing.
That doesn't work well with -device/device_add infrastructure as it has no idea about cpu specific hooks that's used for parsing "features".
In order to make -device/device_add utilize "-cpu features" template convert it into a set of global properties, so that every new CPU created will have them applied automatically.
That also allows to parse features only once, instread of doing it for every CPU instance created.
Igor Mammedov (8):
target-i386: cpu: move features logic that requires CPUState to
realize time
target-i386: cpu: move xcc->kvm_required check to reaize time
target-i386: cpu: use cpu_generic_init() in cpu_x86_init()
target-i386: cpu: consolidate calls of object_property_parse() in
x86_cpu_parse_featurestr
target-sparc: cpu: use sparc_cpu_parse_features() directly
cpu: use CPUClass->parse_features() as convertor to global properties
arm: virt: parse cpu_model only once
pc: parse cpu features only once
hw/arm/virt.c | 41 +++++++------- hw/i386/pc.c | 37 +++++++++---- include/qom/cpu.h | 2 +- qom/cpu.c | 29 +++++----- target-i386/cpu.c | 155 +++++++++++++++++++---------------------------------- target-i386/cpu.h | 1 - target-sparc/cpu.c | 7 +-- 7 files changed, 125 insertions(+), 147 deletions(-)
Signature · 1 line
1.8.3.1