Skip to content

cpu: Unifying features parsing

Andreas Färber qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6cpu: Introduce CPUClass::parse_features() hookinclude/qom/cpu.h target-i386/cpu.c+24 -157 replies
2/6target-sparc: Use error_report() for CPU error reportingtarget-sparc/cpu.c+9 -80 replies
3/6target-sparc: Implement CPUClass::parse_features() for SPARCCPUtarget-sparc/cpu.c+49 -330 replies
4/6target-sparc: Defer SPARCCPU feature inference to QOM realizetarget-sparc/cpu.c+8 -50 replies
5/6cpu: Implement CPUClass::parse_features() for the rest of CPUsqom/cpu.c+30 -10 replies
6/6cpu: Factor out cpu_generic_init()include/qom/cpu.h qom/cpu.c target-arm/helper.c +7 more+62 -1030 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchMark Cave-AylandIgor Mammedov
SeriesT-b
1/6R-b
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 v1 thread

Cover letter [Qemu-devel] [PATCH qom-cpu 0/6] cpu: Unifying features parsing

Hello,

Prompted by Alexey's desire for tweakable PowerPCCPU properties but also by Peter's wish for ARMCPU properties, this series sets out to align cpu_model parsing across targets.

QemuOpts would've been nice to use, but on the one hand x86 and sparc use QemuOpts-incompatible +foo and -foo syntax (which accumulate rather than apply immediately) and on the other linux-user and bsd-user don't use QemuOpts at all.

The x86 implementation is closest to the proposed API, save for some laziness. SPARC is brought in line. And as fallback for the remaining targets a new implementation, derived from x86 but supporting only key=value format, is added.

To facilitate using this infrastructure, a generic CPU init function is created.

Only lightly tested. Available at:
git://github.com/afaerber/qemu-cpu.git qom-cpu-features.v1
https://github.com/afaerber/qemu-cpu/commits/qom-cpu-features.v1

Regards,
Andreas

Cc Alexey Kardashevskiy <[email protected]>
Cc Peter Maydell <[email protected]>
Cc Anthony Liguori <[email protected]>

Andreas Färber (6):
cpu: Introduce CPUClass::parse_features() hook
target-sparc: Use error_report() for CPU error reporting
target-sparc: Implement CPUClass::parse_features() for SPARCCPU
target-sparc: Defer SPARCCPU feature inference to QOM realize
cpu: Implement CPUClass::parse_features() for the rest of CPUs
cpu: Factor out cpu_generic_init()

 include/qom/cpu.h           | 14 +++++++
 qom/cpu.c                   | 72 +++++++++++++++++++++++++++++++++-
 target-arm/helper.c         | 14 +------
 target-cris/cpu.c           | 13 +-----
 target-i386/cpu.c           | 36 ++++++++++-------
 target-lm32/helper.c        | 13 +-----
 target-moxie/cpu.c          | 13 +-----
 target-openrisc/cpu.c       | 13 +-----
 target-ppc/translate_init.c | 21 +---------
 target-sh4/cpu.c            | 13 +-----
 target-sparc/cpu.c          | 96 +++++++++++++++++++++++++++------------------
 target-unicore32/helper.c   | 13 ++----
 12 files changed, 174 insertions(+), 157 deletions(-)
Signature · 1 line
1.8.4.5