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

Dinah Baum posted 3 patches 9 months, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230730064057.357598-1-dinahbaum123@gmail.com
Maintainers: Eduardo Habkost <eduardo@habkost.net>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Yanan Wang <wangyanan55@huawei.com>, Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, Markus Armbruster <armbru@redhat.com>, Eric Blake <eblake@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, Thomas Huth <thuth@redhat.com>, David Hildenbrand <david@redhat.com>, Ilya Leoshkevich <iii@linux.ibm.com>
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(-)
[PATCH v3 0/3] Enable -cpu <cpu>,help
Posted by Dinah Baum 9 months, 1 week ago
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(-)

-- 
2.30.2
Re: [PATCH v3 0/3] Enable -cpu <cpu>,help
Posted by Peter Maydell 9 months, 1 week ago
On Sun, 30 Jul 2023 at 08:21, Dinah Baum <dinahbaum123@gmail.com> wrote:
>
> 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

Ccing Markus for review of the option parsing parts...

thanks
-- PMM

>
> 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(-)
>