Skip to content

Enable -cpu <cpu>,help

Dinah Baum qemu-arm qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 13 repliesIn review
  2. v2 posting 2/23 patches 7 repliesSuperseded
  3. v2 posting 1/23 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches1 replySuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3qapi: Moved architecture agnostic data types to `machine`qapi/machine-target.json qapi/machine.json+78 -774 replies
2/3qapi, target/: Enable 'query-cpu-model-expansion' on all architecturescpu.c include/exec/cpu-common.h qapi/machine-target.json +7 more+110 -701 reply
3/3cpu, softmmu/vl.c: Change parsing of -cpu argument to allow -cpu cpu, help to print options for the CPU type similar to how the '-device' option works.cpu.c include/qapi/qmp/qdict.h qemu-options.hx +2 more+85 -47 replies

Reviews trailers per patch

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

PatchPhilippe Mathieu-DaudéMarkus Armbruster
1/3R-b R-b
2/3
3/3

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

Read the v3 thread

Cover letter [PATCH v3 0/3] Enable -cpu <cpu>,help

This patch adds the ability to query for CPU features. Currently it is limited to the architecture that support feature probing (arm, i386, and s390x).

Ex:
athlon features:
3dnow=<qbool>
3dnowext=<qbool>
3dnowprefetch=<qbool>
...

Suggested-by: Peter Maydell
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1480

Dinah Baum (3):
qapi: Moved architecture agnostic data types to machine qapi, target/: Enable 'query-cpu-model-expansion' on all architectures cpu, softmmu/vl.c: Change parsing of -cpu argument to allow -cpu
cpu,help to print options for the CPU type similar to how the '-device' option works.

 cpu.c                            |  61 ++++++++++++++
 include/exec/cpu-common.h        |   7 ++
 include/qapi/qmp/qdict.h         |   1 +
 qapi/machine-target.json         | 138 +------------------------------
 qapi/machine.json                | 130 +++++++++++++++++++++++++++++
 qemu-options.hx                  |   7 +-
 qobject/qdict.c                  |   5 ++
 softmmu/vl.c                     |  35 +++++++-
 target/arm/arm-qmp-cmds.c        |   7 +-
 target/arm/cpu.h                 |   7 ++
 target/i386/cpu-sysemu.c         |   7 +-
 target/i386/cpu.h                |   6 ++
 target/s390x/cpu.h               |   7 ++
 target/s390x/cpu_models_sysemu.c |   6 +-
 14 files changed, 273 insertions(+), 151 deletions(-)
Signature · 1 line
2.30.2