qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] *** Enable -cpu <cpu>,help ***
@ 2023-03-12 21:06 Dinah Baum
  2023-03-12 21:06 ` [PATCH 1/2] cpu, qapi, target/arm, i386, s390x: Refactor query-cpu-model-expansion Dinah Baum
  2023-03-12 21:06 ` [PATCH 2/2] cpu, qdict, vl: Enable printing options for CPU type Dinah Baum
  0 siblings, 2 replies; 4+ messages in thread
From: Dinah Baum @ 2023-03-12 21:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: Dinah Baum

This patch series enables printing the CPU
options using '-cpu cpu,help' as requested in
https://gitlab.com/qemu-project/qemu/-/issues/1480

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

Part 1 is a refactor patch that enables query-cpu-model-expansion
on all architectures, but doesn't implement any additional
feature probing. Currently only arm, i386, and s390x support
full feature probing.

This lays for the groundwork for Part 2 which actually
implements the '<cpu>,help' feature

Limitations:
Currently only 'FULL' expansion queries are implemented since
that's the only type enabled on the architectures that
allow feature probing

Unlike the 'device,help' command, default values aren't
printed

Dinah Baum (2):
  cpu, qapi, target/arm, i386, s390x: Refactor query-cpu-model-expansion
  cpu, qdict, vl: Enable printing options for CPU type

 MAINTAINERS                      |   1 +
 cpu.c                            |  61 +++++++++++++++
 include/exec/cpu-common.h        |  10 +++
 include/qapi/qmp/qdict.h         |   2 +
 qapi/machine-target-common.json  | 129 +++++++++++++++++++++++++++++++
 qapi/machine-target.json         | 129 +------------------------------
 qapi/meson.build                 |   1 +
 qemu-options.hx                  |   7 +-
 qobject/qdict.c                  |   5 ++
 softmmu/vl.c                     |  36 ++++++++-
 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 +-
 16 files changed, 277 insertions(+), 144 deletions(-)
 create mode 100644 qapi/machine-target-common.json

-- 
2.30.2



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-13  7:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-12 21:06 [PATCH 0/2] *** Enable -cpu <cpu>,help *** Dinah Baum
2023-03-12 21:06 ` [PATCH 1/2] cpu, qapi, target/arm, i386, s390x: Refactor query-cpu-model-expansion Dinah Baum
2023-03-13  7:39   ` Thomas Huth
2023-03-12 21:06 ` [PATCH 2/2] cpu, qdict, vl: Enable printing options for CPU type Dinah Baum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).