mirror of
https://gitlab.com/qemu-project/qemu.git
synced 2024-11-06 15:56:53 +03:00
252dc3105f
Our qapi-schema.json is composed of modules connected by include directives, but the generated code is monolithic all the same: one qapi-types.h with all the types, one qapi-visit.h with all the visitors, and so forth. These monolithic headers get included all over the place. In my "build everything" tree, adding a QAPI type recompiles about 4800 out of 5100 objects. We wouldn't write such monolithic headers by hand. It stands to reason that we shouldn't generate them, either. Split up generated qapi-types.h to mirror the schema's modular structure: one header per module. Name the main module's header qapi-types.h, and sub-module D/B.json's header D/qapi-types-B.h. Mirror the schema's includes in the headers, so that qapi-types.h gets you everything exactly as before. If you need less, you can include one or more of the sub-module headers. To be exploited shortly. Split up qapi-types.c, qapi-visit.h, qapi-visit.c, qmp-commands.h, qmp-commands.c, qapi-event.h, qapi-event.c the same way. qmp-introspect.h, qmp-introspect.c and qapi.texi remain monolithic. The split of qmp-commands.c duplicates static helper function qmp_marshal_output_str() in qapi-commands-char.c and qapi-commands-misc.c. This happens when commands returning the same type occur in multiple modules. Not worth avoiding. Since I'm going to rename qapi-event.[ch] to qapi-events.[ch], and qmp-commands.[ch] to qapi-commands.[ch], name the shards that way already, to reduce churn. This requires temporary hacks in commands.py and events.py. Similarly, c_name() must temporarily be taught to munge '/' in common.py. They'll go away with the rename. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20180211093607.27351-23-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> [eblake: declare a dummy variable in each .c file, to shut up OSX toolchain warnings about empty .o files, including hacking c_name()] Signed-off-by: Eric Blake <eblake@redhat.com>
206 lines
4.3 KiB
Plaintext
206 lines
4.3 KiB
Plaintext
/config-devices.*
|
|
/config-all-devices.*
|
|
/config-all-disas.*
|
|
/config-host.*
|
|
/config-target.*
|
|
/config.status
|
|
/config-temp
|
|
/trace-events-all
|
|
/trace/generated-events.h
|
|
/trace/generated-events.c
|
|
/trace/generated-helpers-wrappers.h
|
|
/trace/generated-helpers.h
|
|
/trace/generated-helpers.c
|
|
/trace/generated-tcg-tracers.h
|
|
/ui/shader/texture-blit-frag.h
|
|
/ui/shader/texture-blit-vert.h
|
|
/ui/shader/texture-blit-flip-vert.h
|
|
/ui/input-keymap-*.c
|
|
*-timestamp
|
|
/*-softmmu
|
|
/*-darwin-user
|
|
/*-linux-user
|
|
/*-bsd-user
|
|
/ivshmem-client
|
|
/ivshmem-server
|
|
/libdis*
|
|
/libuser
|
|
/linux-headers/asm
|
|
/qga/qapi-generated
|
|
/qapi-generated
|
|
/qapi-gen-timestamp
|
|
/qapi-builtin-types.[ch]
|
|
/qapi-builtin-visit.[ch]
|
|
/qapi/qapi-commands-block-core.[ch]
|
|
/qapi/qapi-commands-block.[ch]
|
|
/qapi/qapi-commands-char.[ch]
|
|
/qapi/qapi-commands-common.[ch]
|
|
/qapi/qapi-commands-crypto.[ch]
|
|
/qapi/qapi-commands-introspect.[ch]
|
|
/qapi/qapi-commands-migration.[ch]
|
|
/qapi/qapi-commands-net.[ch]
|
|
/qapi/qapi-commands-rocker.[ch]
|
|
/qapi/qapi-commands-run-state.[ch]
|
|
/qapi/qapi-commands-sockets.[ch]
|
|
/qapi/qapi-commands-tpm.[ch]
|
|
/qapi/qapi-commands-trace.[ch]
|
|
/qapi/qapi-commands-transaction.[ch]
|
|
/qapi/qapi-commands-ui.[ch]
|
|
/qapi/qapi-events-block-core.[ch]
|
|
/qapi/qapi-events-block.[ch]
|
|
/qapi/qapi-events-char.[ch]
|
|
/qapi/qapi-events-common.[ch]
|
|
/qapi/qapi-events-crypto.[ch]
|
|
/qapi/qapi-events-introspect.[ch]
|
|
/qapi/qapi-events-migration.[ch]
|
|
/qapi/qapi-events-net.[ch]
|
|
/qapi/qapi-events-rocker.[ch]
|
|
/qapi/qapi-events-run-state.[ch]
|
|
/qapi/qapi-events-sockets.[ch]
|
|
/qapi/qapi-events-tpm.[ch]
|
|
/qapi/qapi-events-trace.[ch]
|
|
/qapi/qapi-events-transaction.[ch]
|
|
/qapi/qapi-events-ui.[ch]
|
|
/qapi/qapi-types-block-core.[ch]
|
|
/qapi/qapi-types-block.[ch]
|
|
/qapi/qapi-types-char.[ch]
|
|
/qapi/qapi-types-common.[ch]
|
|
/qapi/qapi-types-crypto.[ch]
|
|
/qapi/qapi-types-introspect.[ch]
|
|
/qapi/qapi-types-migration.[ch]
|
|
/qapi/qapi-types-net.[ch]
|
|
/qapi/qapi-types-rocker.[ch]
|
|
/qapi/qapi-types-run-state.[ch]
|
|
/qapi/qapi-types-sockets.[ch]
|
|
/qapi/qapi-types-tpm.[ch]
|
|
/qapi/qapi-types-trace.[ch]
|
|
/qapi/qapi-types-transaction.[ch]
|
|
/qapi/qapi-types-ui.[ch]
|
|
/qapi-types.[ch]
|
|
/qapi/qapi-visit-block-core.[ch]
|
|
/qapi/qapi-visit-block.[ch]
|
|
/qapi/qapi-visit-char.[ch]
|
|
/qapi/qapi-visit-common.[ch]
|
|
/qapi/qapi-visit-crypto.[ch]
|
|
/qapi/qapi-visit-introspect.[ch]
|
|
/qapi/qapi-visit-migration.[ch]
|
|
/qapi/qapi-visit-net.[ch]
|
|
/qapi/qapi-visit-rocker.[ch]
|
|
/qapi/qapi-visit-run-state.[ch]
|
|
/qapi/qapi-visit-sockets.[ch]
|
|
/qapi/qapi-visit-tpm.[ch]
|
|
/qapi/qapi-visit-trace.[ch]
|
|
/qapi/qapi-visit-transaction.[ch]
|
|
/qapi/qapi-visit-ui.[ch]
|
|
/qapi-visit.[ch]
|
|
/qapi-event.[ch]
|
|
/qapi-doc.texi
|
|
/qmp-commands.[ch]
|
|
/qmp-introspect.[ch]
|
|
/qemu-doc.html
|
|
/qemu-doc.info
|
|
/qemu-doc.txt
|
|
/qemu-img
|
|
/qemu-nbd
|
|
/qemu-options.def
|
|
/qemu-options.texi
|
|
/qemu-img-cmds.texi
|
|
/qemu-img-cmds.h
|
|
/qemu-io
|
|
/qemu-ga
|
|
/qemu-bridge-helper
|
|
/qemu-keymap
|
|
/qemu-monitor.texi
|
|
/qemu-monitor-info.texi
|
|
/qemu-version.h
|
|
/qemu-version.h.tmp
|
|
/module_block.h
|
|
/scsi/qemu-pr-helper
|
|
/vhost-user-scsi
|
|
/vhost-user-blk
|
|
/fsdev/virtfs-proxy-helper
|
|
*.tmp
|
|
*.[1-9]
|
|
*.a
|
|
*.aux
|
|
*.cp
|
|
*.exe
|
|
*.msi
|
|
*.dll
|
|
*.so
|
|
*.mo
|
|
*.fn
|
|
*.ky
|
|
*.log
|
|
*.pdf
|
|
*.pod
|
|
*.cps
|
|
*.fns
|
|
*.kys
|
|
*.pg
|
|
*.pyc
|
|
*.toc
|
|
*.tp
|
|
*.vr
|
|
*.d
|
|
!/scripts/qemu-guest-agent/fsfreeze-hook.d
|
|
*.o
|
|
.sdk
|
|
*.gcda
|
|
*.gcno
|
|
/pc-bios/bios-pq/status
|
|
/pc-bios/vgabios-pq/status
|
|
/pc-bios/optionrom/linuxboot.asm
|
|
/pc-bios/optionrom/linuxboot.bin
|
|
/pc-bios/optionrom/linuxboot.raw
|
|
/pc-bios/optionrom/linuxboot.img
|
|
/pc-bios/optionrom/linuxboot_dma.asm
|
|
/pc-bios/optionrom/linuxboot_dma.bin
|
|
/pc-bios/optionrom/linuxboot_dma.raw
|
|
/pc-bios/optionrom/linuxboot_dma.img
|
|
/pc-bios/optionrom/multiboot.asm
|
|
/pc-bios/optionrom/multiboot.bin
|
|
/pc-bios/optionrom/multiboot.raw
|
|
/pc-bios/optionrom/multiboot.img
|
|
/pc-bios/optionrom/kvmvapic.asm
|
|
/pc-bios/optionrom/kvmvapic.bin
|
|
/pc-bios/optionrom/kvmvapic.raw
|
|
/pc-bios/optionrom/kvmvapic.img
|
|
/pc-bios/s390-ccw/s390-ccw.elf
|
|
/pc-bios/s390-ccw/s390-ccw.img
|
|
/docs/interop/qemu-ga-qapi.texi
|
|
/docs/interop/qemu-ga-ref.html
|
|
/docs/interop/qemu-ga-ref.info*
|
|
/docs/interop/qemu-ga-ref.txt
|
|
/docs/interop/qemu-qmp-qapi.texi
|
|
/docs/interop/qemu-qmp-ref.html
|
|
/docs/interop/qemu-qmp-ref.info*
|
|
/docs/interop/qemu-qmp-ref.txt
|
|
/docs/version.texi
|
|
*.tps
|
|
.stgit-*
|
|
.git-submodule-status
|
|
cscope.*
|
|
tags
|
|
TAGS
|
|
docker-src.*
|
|
*~
|
|
*.ast_raw
|
|
*.depend_raw
|
|
trace.h
|
|
trace.c
|
|
trace-ust.h
|
|
trace-ust.h
|
|
trace-dtrace.h
|
|
trace-dtrace.dtrace
|
|
trace-root.h
|
|
trace-root.c
|
|
trace-ust-root.h
|
|
trace-ust-root.h
|
|
trace-ust-all.h
|
|
trace-ust-all.c
|
|
trace-dtrace-root.h
|
|
trace-dtrace-root.dtrace
|
|
trace-ust-all.h
|
|
trace-ust-all.c
|