[Qemu-devel] [PATCH 00/17] Move QOM, qdev, machine core and dump code

Markus Armbruster posted 17 patches 6 years, 4 months ago
Test s390x passed
Test checkpatch passed
Test asan passed
Test docker-mingw@fedora passed
Test docker-clang@ubuntu passed
Test FreeBSD passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20190619201050.19040-1-armbru@redhat.com
Maintainers: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Aleksandar Markovic <amarkovic@wavecomp.com>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, Artyom Tarasenko <atar4qemu@gmail.com>, Aurelien Jarno <aurelien@aurel32.net>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, Aleksandar Rikalo <arikalo@wavecomp.com>, Anthony Perard <anthony.perard@citrix.com>, Michael Roth <mdroth@linux.vnet.ibm.com>, Kevin Wolf <kwolf@redhat.com>, Christian Borntraeger <borntraeger@de.ibm.com>, Peter Maydell <peter.maydell@linaro.org>, Max Filippov <jcmvbkbc@gmail.com>, Cornelia Huck <cohuck@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, David Hildenbrand <david@redhat.com>, Richard Henderson <rth@twiddle.net>, Paul Durrant <paul.durrant@citrix.com>, Max Reitz <mreitz@redhat.com>, Marek Vasut <marex@denx.de>, David Gibson <david@gibson.dropbear.id.au>, Eduardo Habkost <ehabkost@redhat.com>, Igor Mammedov <imammedo@redhat.com>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Stefano Stabellini <sstabellini@kernel.org>, Chris Wulff <crwulff@gmail.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Halil Pasic <pasic@linux.ibm.com>, Markus Armbruster <armbru@redhat.com>, Eric Blake <eblake@redhat.com>
MAINTAINERS                               |   29 +-
Makefile.objs                             |    2 +-
Makefile.target                           |    5 +-
cpus.c                                    |  187 ---
dump/Makefile.objs                        |    3 +
dump/dump-hmp-cmds.c                      |   88 ++
dump.c => dump/dump.c                     |    4 +-
win_dump.c => dump/win_dump.c             |    0
win_dump.h => dump/win_dump.h             |    0
hw/block/xen-block.c                      |    2 +-
hw/core/Makefile.objs                     |    4 +
hw/core/machine-hmp-cmds.c                |  164 +++
hw/core/machine-qmp-cmds.c                |  328 ++++++
numa.c => hw/core/numa.c                  |   64 +-
hw/core/qdev.c                            |    2 +-
hw/ppc/spapr_rtc.c                        |    2 +-
hw/s390x/s390-skeys.c                     |    2 +-
hw/timer/mc146818rtc.c                    |    4 +-
include/hw/boards.h                       |    1 +
hmp.h => include/monitor/hmp.h            |    3 +
include/sysemu/dump.h                     |    2 +-
include/sysemu/hostmem.h                  |    2 +-
include/sysemu/numa.h                     |    2 +
monitor/hmp-cmds.c                        |  238 +---
monitor/misc.c                            |   47 +-
monitor/qmp-cmds.c                        |  315 +----
qapi/Makefile.objs                        |    7 +-
qapi/dump.json                            |  200 ++++
qapi/{target.json => machine-target.json} |  304 +----
qapi/machine.json                         |  697 +++++++++++
qapi/misc-target.json                     |  268 +++++
qapi/misc.json                            | 1304 ---------------------
qapi/qapi-schema.json                     |    7 +-
qapi/qdev.json                            |  125 ++
qapi/qom.json                             |  244 ++++
qdev-monitor.c                            |    2 +-
qom/Makefile.objs                         |    1 +
qom/qom-hmp-cmds.c                        |   62 +
qom/qom-qmp-cmds.c                        |  323 +++++
target/arm/helper.c                       |    2 +-
target/arm/monitor.c                      |    2 +-
target/i386/cpu.c                         |    4 +-
target/i386/monitor.c                     |    2 +-
target/i386/sev_i386.h                    |    2 +-
target/mips/helper.c                      |    2 +-
target/nios2/monitor.c                    |    2 +-
target/ppc/monitor.c                      |    2 +-
target/ppc/translate_init.inc.c           |    2 +-
target/s390x/cpu.c                        |    2 +-
target/s390x/cpu_models.c                 |    2 +-
target/s390x/sigp.c                       |    2 +-
target/sh4/monitor.c                      |    2 +-
target/sparc/monitor.c                    |    2 +-
target/xtensa/monitor.c                   |    2 +-
vl.c                                      |   45 -
55 files changed, 2629 insertions(+), 2492 deletions(-)
create mode 100644 dump/Makefile.objs
create mode 100644 dump/dump-hmp-cmds.c
rename dump.c => dump/dump.c (99%)
rename win_dump.c => dump/win_dump.c (100%)
rename win_dump.h => dump/win_dump.h (100%)
create mode 100644 hw/core/machine-hmp-cmds.c
create mode 100644 hw/core/machine-qmp-cmds.c
rename numa.c => hw/core/numa.c (90%)
rename hmp.h => include/monitor/hmp.h (98%)
create mode 100644 qapi/dump.json
rename qapi/{target.json => machine-target.json} (61%)
create mode 100644 qapi/machine.json
create mode 100644 qapi/misc-target.json
create mode 100644 qapi/qdev.json
create mode 100644 qapi/qom.json
create mode 100644 qom/qom-hmp-cmds.c
create mode 100644 qom/qom-qmp-cmds.c
[Qemu-devel] [PATCH 00/17] Move QOM, qdev, machine core and dump code
Posted by Markus Armbruster 6 years, 4 months ago
Split qom.json, qdev.json, machine.json, machine-target.json and
dump.json off misc.json, so MAINTAINERS can cover them properly.

Move their QMP and HMP code similarly.

Move some code out of the the tree's root directory to better places.

Markus Armbruster (16):
  Makefile: Don't add monitor/ twice to common-obj-y
  hmp: Move hmp.h to include/monitor/
  qapi: Split qom.json and qdev.json off misc.json
  qom: Move QMP command handlers to qom/
  qom: Move HMP command handlers to qom/
  MAINTAINERS: Merge sections CPU, NUMA into Machine core
  qapi: Split machine.json off misc.json
  hw/core: Move numa.c to hw/core/
  hw/core: Collect QMP command handlers in hw/core/
  hw/core: Collect HMP command handlers in hw/core/
  qapi: Split machine-target.json off target.json and misc.json
  qapi: Rename target.json to misc-target.json
  qapi: Split dump.json off misc.json
  dump: Move the code to dump/
  MAINTAINERS: Add Windows dump to section "Dump"
  dump: Move HMP command handlers to dump/

Paolo Bonzini (1):
  MAINTAINERS: new maintainers for QOM

 MAINTAINERS                               |   29 +-
 Makefile.objs                             |    2 +-
 Makefile.target                           |    5 +-
 cpus.c                                    |  187 ---
 dump/Makefile.objs                        |    3 +
 dump/dump-hmp-cmds.c                      |   88 ++
 dump.c => dump/dump.c                     |    4 +-
 win_dump.c => dump/win_dump.c             |    0
 win_dump.h => dump/win_dump.h             |    0
 hw/block/xen-block.c                      |    2 +-
 hw/core/Makefile.objs                     |    4 +
 hw/core/machine-hmp-cmds.c                |  164 +++
 hw/core/machine-qmp-cmds.c                |  328 ++++++
 numa.c => hw/core/numa.c                  |   64 +-
 hw/core/qdev.c                            |    2 +-
 hw/ppc/spapr_rtc.c                        |    2 +-
 hw/s390x/s390-skeys.c                     |    2 +-
 hw/timer/mc146818rtc.c                    |    4 +-
 include/hw/boards.h                       |    1 +
 hmp.h => include/monitor/hmp.h            |    3 +
 include/sysemu/dump.h                     |    2 +-
 include/sysemu/hostmem.h                  |    2 +-
 include/sysemu/numa.h                     |    2 +
 monitor/hmp-cmds.c                        |  238 +---
 monitor/misc.c                            |   47 +-
 monitor/qmp-cmds.c                        |  315 +----
 qapi/Makefile.objs                        |    7 +-
 qapi/dump.json                            |  200 ++++
 qapi/{target.json => machine-target.json} |  304 +----
 qapi/machine.json                         |  697 +++++++++++
 qapi/misc-target.json                     |  268 +++++
 qapi/misc.json                            | 1304 ---------------------
 qapi/qapi-schema.json                     |    7 +-
 qapi/qdev.json                            |  125 ++
 qapi/qom.json                             |  244 ++++
 qdev-monitor.c                            |    2 +-
 qom/Makefile.objs                         |    1 +
 qom/qom-hmp-cmds.c                        |   62 +
 qom/qom-qmp-cmds.c                        |  323 +++++
 target/arm/helper.c                       |    2 +-
 target/arm/monitor.c                      |    2 +-
 target/i386/cpu.c                         |    4 +-
 target/i386/monitor.c                     |    2 +-
 target/i386/sev_i386.h                    |    2 +-
 target/mips/helper.c                      |    2 +-
 target/nios2/monitor.c                    |    2 +-
 target/ppc/monitor.c                      |    2 +-
 target/ppc/translate_init.inc.c           |    2 +-
 target/s390x/cpu.c                        |    2 +-
 target/s390x/cpu_models.c                 |    2 +-
 target/s390x/sigp.c                       |    2 +-
 target/sh4/monitor.c                      |    2 +-
 target/sparc/monitor.c                    |    2 +-
 target/xtensa/monitor.c                   |    2 +-
 vl.c                                      |   45 -
 55 files changed, 2629 insertions(+), 2492 deletions(-)
 create mode 100644 dump/Makefile.objs
 create mode 100644 dump/dump-hmp-cmds.c
 rename dump.c => dump/dump.c (99%)
 rename win_dump.c => dump/win_dump.c (100%)
 rename win_dump.h => dump/win_dump.h (100%)
 create mode 100644 hw/core/machine-hmp-cmds.c
 create mode 100644 hw/core/machine-qmp-cmds.c
 rename numa.c => hw/core/numa.c (90%)
 rename hmp.h => include/monitor/hmp.h (98%)
 create mode 100644 qapi/dump.json
 rename qapi/{target.json => machine-target.json} (61%)
 create mode 100644 qapi/machine.json
 create mode 100644 qapi/misc-target.json
 create mode 100644 qapi/qdev.json
 create mode 100644 qapi/qom.json
 create mode 100644 qom/qom-hmp-cmds.c
 create mode 100644 qom/qom-qmp-cmds.c

-- 
2.21.0