Skip to content

Less clumsy error checking

Markus Armbruster qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest45 patches 8 repliesIn review
  2. v344 patches 20 repliesSuperseded
  3. v244 patches 41 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v146 patches110 repliesSuperseded

Changes in v4 from the cover letter

* Rebased
* PATCH 01: Don't show errp instead of &errp, it's premature; leave it to Vladimir's series. Fix the error_propagate_prepend() pileup example. Update commit message accordingly. R-bys kept, hope that's not too bold.
* PATCH 02: New.
* PATCH 03: Structure the big comment with headlines. Explain the @errp usage restrictions more clearly. Update examples to prefer checking the return value over checking @err. Update commit message accordingly. R-bys kept, hope that's not too bold.
* PATCH 07: Tweak commit message [Greg]
* Left for later: followup to fix nearby typos and such [Eric]

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/45error: Fix examples in error.h's big commentinclude/qapi/error.h+14 -21 reply
2/45error: Improve error.h's big commentinclude/qapi/error.h+36 -152 replies
3/45error: Document Error API usage rulesinclude/qapi/error.h+44 -63 replies
4/45qdev: Use returned bool to check for qdev_realize() etc. failurehw/arm/allwinner-a10.c hw/arm/armsse.c hw/arm/armv7m.c +62 more+248 -4950 replies
5/45macio: Tidy up error handling in macio_newworld_realize()hw/misc/macio/macio.c+3 -10 replies
6/45virtio-crypto-pci: Tidy up virtio_crypto_pci_realize()hw/virtio/virtio-crypto-pci.c+3 -10 replies
7/45qemu-option: Check return value instead of @err where convenientblock/parallels.c blockdev.c qdev-monitor.c +2 more+14 -220 replies
8/45qemu-option: Make uses of find_desc_by_name() more similarutil/qemu-option.c+18 -140 replies
9/45qemu-option: Factor out helper find_default_by_name()util/qemu-option.c+27 -200 replies
10/45qemu-option: Simplify around find_default_by_name()util/qemu-option.c+5 -131 reply
11/45qemu-option: Factor out helper opt_create()util/qemu-option.c+18 -90 replies
12/45qemu-option: Replace opt_set() by cleaner opt_validate()util/qemu-option.c+19 -160 replies
13/45qemu-option: Make functions taking Error ** return bool, not voidblockdev.c include/qemu/option.h util/qemu-option.c+64 -490 replies
14/45qemu-option: Use returned bool to check for failureblock.c block/blkdebug.c block/blklogwrites.c +29 more+71 -1320 replies
15/45block: Avoid error accumulation in bdrv_img_create()block.c+2 -20 replies
16/45hmp: Eliminate a variable in hmp_migrate_set_parameter()monitor/hmp-cmds.c+2 -60 replies
17/45qapi: Make visitor functions taking Error ** return bool, not voidaudio/audio_legacy.c docs/devel/qapi-code-gen.txt include/qapi/clone-visitor.h +11 more+456 -3610 replies
18/45qapi: Use returned bool to check for failure, Coccinelle partaccel/kvm/kvm-all.c accel/tcg/tcg-all.c backends/cryptodev.c +43 more+97 -1880 replies
19/45qapi: Use returned bool to check for failure, manual partaccel/kvm/kvm-all.c block/throttle-groups.c bootdevice.c +6 more+44 -560 replies
20/45s390x/pci: Fix harmless mistake in zpci's property fid's setterhw/s390x/s390-pci-bus.c+3 -10 replies
21/45qom: Use error_reportf_err() instead of g_printerr() in examplesinclude/qom/object.h+2 -40 replies
22/45qom: Rename qdev_get_type() to object_get_type()qom/object.c+2 -20 replies
23/45qom: Crash more nicely on object_property_get_link() failurehw/core/platform-bus.c hw/ppc/spapr_drc.c hw/ppc/spapr_hcall.c +2 more+10 -70 replies
24/45qom: Don't handle impossible object_property_get_link() failurehw/arm/bcm2835_peripherals.c hw/arm/bcm2836.c hw/display/bcm2835_fb.c +6 more+11 -780 replies
25/45qom: Use return values to check for error where that's simplerqom/object.c+14 -110 replies
26/45qom: Put name parameter before value / visitor parameterbackends/cryptodev.c backends/rng.c bootdevice.c +134 more+710 -7390 replies
27/45qom: Make functions taking Error ** return bool, not voidinclude/qom/object.h include/qom/object_interfaces.h include/qom/qom-qobject.h +3 more+122 -620 replies
28/45qom: Use returned bool to check for failure, Coccinelle parthw/arm/armsse.c hw/arm/armv7m.c hw/arm/aspeed_ast2600.c +25 more+96 -1420 replies
29/45qom: Use returned bool to check for failure, manual parthw/core/bus.c hw/core/qdev.c hw/s390x/s390-virtio-ccw.c+9 -170 replies
30/45qom: Make functions taking Error ** return bool, not 0/-1include/qom/object.h qom/object.c+18 -240 replies
31/45qdev: Make functions taking Error ** return bool, not voidhw/core/qdev-properties-system.c include/hw/qdev-properties.h+4 -40 replies
32/45qdev: Use returned bool to check for failure, Coccinelle parthw/scsi/scsi-bus.c hw/sd/sd.c hw/sd/ssi-sd.c+4 -70 replies
33/45error: Avoid unnecessary error_propagate() after error_setg()backends/cryptodev.c backends/hostmem-file.c backends/hostmem-memfd.c +21 more+169 -2420 replies
34/45error: Eliminate error_propagate() with Coccinelle, part 1accel/kvm/kvm-all.c accel/tcg/tcg-all.c backends/cryptodev-vhost-user.c +111 more+383 -8960 replies
35/45error: Eliminate error_propagate() with Coccinelle, part 2block.c block/blkdebug.c block/blklogwrites.c +20 more+32 -770 replies
36/45error: Eliminate error_propagate() manuallyblock/replication.c blockdev.c bootdevice.c +15 more+67 -1490 replies
37/45error: Reduce unnecessary error propagationblock.c block/gluster.c block/parallels.c +5 more+13 -140 replies
38/45block/parallels: Simplify parallels_open() after previous commitblock/parallels.c+2 -50 replies
39/45qapi: Smooth another visitor error checking patternblock/nfs.c block/parallels.c block/qcow.c +12 more+36 -790 replies
40/45qapi: Smooth visitor error checking in generated codedocs/devel/qapi-code-gen.txt scripts/qapi/commands.py scripts/qapi/visit.py+55 -840 replies
41/45qapi: Purge error_propagate() from QAPI coreqapi/qapi-visit-core.c+19 -210 replies
42/45error: Avoid error_propagate() after migrate_add_blocker()block/parallels.c block/qcow.c block/vdi.c +10 more+20 -450 replies
43/45qemu-img: Ignore Error objects where the return value sufficesqemu-img.c+2 -60 replies
44/45qdev: Ignore Error objects where the return value sufficeshw/core/qdev-properties.c+1 -40 replies
45/45hmp: Ignore Error objects where the return value sufficesqdev-monitor.c+6 -60 replies

Reviews trailers per patch

All 45 patches have a Reviewed-by or Acked-by.

PatchEric BlakeVladimir Sementsov-OgievskiyGreg KurzDavid GibsonMatthew RosatoCornelia HuckGongleiPhilippe Mathieu-Daudé
1/45R-b R-b R-b
2/45R-b R-b
3/45R-b R-b R-b
4/45R-b R-b R-b
5/45R-b R-b R-b A-b
6/45R-b R-b R-b
7/45R-b R-b R-b
8/45R-b R-b R-b
9/45R-b R-b R-b
10/45R-b R-b R-b
11/45R-b R-b
12/45R-b R-b
13/45R-b R-b
14/45R-b R-b
15/45R-b R-b
16/45R-b R-b
17/45R-b R-b
18/45R-b R-b
19/45R-b R-b
20/45R-b R-b
21/45R-b R-b
22/45R-b R-b R-b
23/45R-b R-b
24/45R-b R-b
25/45R-b R-b
26/45R-b R-b
27/45R-b R-b
28/45R-b R-b
29/45R-b R-b
30/45R-b R-b
31/45R-b R-b
32/45R-b
33/45R-b
34/45R-b
35/45R-b
36/45R-b
37/45R-b
38/45R-b R-b
39/45R-b
40/45R-b
41/45R-b
42/45R-b R-b
43/45R-b
44/45R-b
45/45R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.

Read the v4 thread

Cover letter [PATCH v4 00/45] Less clumsy error checking

When the Error API was created, we adopted the (unwritten) rule to return void when the function returns no useful value on success, unlike GError, which recommends to return true on success and false on error then.

When a function returns a distinct error value, say false, a checked call that passes the error up looks like

    if (!frobnicate(..., errp)) {
        handle the error...
    }

When it returns void, we need

    Error *err = NULL;

    frobnicate(..., &err);
    if (err) {
        handle the error...
        error_propagate(errp, err);
    }

Not only is this more verbose, it also creates an Error object even when @errp is null, &error_abort or &error_fatal.

People got tired of the additional boilerplate, and started to ignore the unwritten rule. The result is confusion among developers about the preferred usage.

This series adopts the GError rule (in writing), and updates a substantial amount of code to honor the rule. Cuts the number of error_propagate() calls nearly by half. The diffstat speaks for itself.

Also available from my public repository
https://repo.or.cz/qemu/armbru.git on branch error-smooth.

v4:
* Rebased
* PATCH 01: Don't show errp instead of &errp, it's premature; leave it to Vladimir's series. Fix the error_propagate_prepend() pileup example. Update commit message accordingly. R-bys kept, hope that's not too bold.
* PATCH 02: New.
* PATCH 03: Structure the big comment with headlines. Explain the @errp usage restrictions more clearly. Update examples to prefer checking the return value over checking @err. Update commit message accordingly. R-bys kept, hope that's not too bold.
* PATCH 07: Tweak commit message [Greg]
* Left for later: followup to fix nearby typos and such [Eric]

v3:
* Rebased
* Fix patch ordering: old PATCH 19 becomes PATCH 37
* PATCH 03+13+25+27: Avoid long lines in Coccinelle script [Eric]
* PATCH 14: Fix commit message typo [Eric]
* PATCH 16: Unbreak opts_start_list(), qapi_clone_start_list(), qapi_clone_start_alternate() [Vladimir]
* PATCH 24: Unbreak object_set_link_property() [Vladimir]
* PATCH 25+33+35: Move unrelated hunks from 25 to 33 and 35 [Vladimir], tweak line breaks
* PATCH 32: Have commit message point out the unnecessary error_propagate() will be eliminated shortly [Eric]
* PATCH 33: Fix commit message typo [Eric]
* PATCH 35: Delete comment along with the assertion [Eric]
* Left for later: followup to fix nearby typos and such [Eric]

v2:
* Rebased
* Coccinelle scripts reworked, patches sliced and diced for reviewability:
Old PATCH 03+17+23-24+35+38-39+42 split into "Use returned bool to check for failure" parts [PATCH 03+13+17-18+25+28-29+42], and "Eliminate error_propagate()" parts. The latter combined with old PATCH 06-07+18-19+29+43 are now [PATCH 33-37]. The end result is almost identical. Some R-bys dropped; sorry!
* Drop variables as they become unused [Vladimir]
* PATCH 01: Comment typos fixed [Greg]
* PATCH 09: Simplify further by cutting out variables [Eric]
* PATCH 11: opt_set() renamed to opt_validate(), redundant parameter dropped [Vladimir], R-by kept
* PATCH 16: Comment typos fixed, indentation tidied up [Eric]
* PATCH 23: Assertion dropped [Eric], incorrect hunk backed out
* PATCH 26: Regenerated after rebase; note additional Coccinelle hiccup in the commit message
* PATCH 27: Indentation tiedied up [Eric]
* Left for later: followup to fix nearby typos and such [Eric]

Markus Armbruster (45):
error: Fix examples in error.h's big comment
error: Improve error.h's big comment
error: Document Error API usage rules
qdev: Use returned bool to check for qdev_realize() etc. failure
macio: Tidy up error handling in macio_newworld_realize()
virtio-crypto-pci: Tidy up virtio_crypto_pci_realize()
qemu-option: Check return value instead of @err where convenient
qemu-option: Make uses of find_desc_by_name() more similar
qemu-option: Factor out helper find_default_by_name()
qemu-option: Simplify around find_default_by_name()
qemu-option: Factor out helper opt_create()
qemu-option: Replace opt_set() by cleaner opt_validate()
qemu-option: Make functions taking Error ** return bool, not void
qemu-option: Use returned bool to check for failure
block: Avoid error accumulation in bdrv_img_create()
hmp: Eliminate a variable in hmp_migrate_set_parameter()
qapi: Make visitor functions taking Error ** return bool, not void
qapi: Use returned bool to check for failure, Coccinelle part
qapi: Use returned bool to check for failure, manual part s390x/pci: Fix harmless mistake in zpci's property fid's setter
qom: Use error_reportf_err() instead of g_printerr() in examples
qom: Rename qdev_get_type() to object_get_type()
qom: Crash more nicely on object_property_get_link() failure
qom: Don't handle impossible object_property_get_link() failure
qom: Use return values to check for error where that's simpler
qom: Put name parameter before value / visitor parameter
qom: Make functions taking Error ** return bool, not void
qom: Use returned bool to check for failure, Coccinelle part
qom: Use returned bool to check for failure, manual part
qom: Make functions taking Error ** return bool, not 0/-1
qdev: Make functions taking Error ** return bool, not void
qdev: Use returned bool to check for failure, Coccinelle part
error: Avoid unnecessary error_propagate() after error_setg()
error: Eliminate error_propagate() with Coccinelle, part 1
error: Eliminate error_propagate() with Coccinelle, part 2
error: Eliminate error_propagate() manually
error: Reduce unnecessary error propagation block/parallels: Simplify parallels_open() after previous commit
qapi: Smooth another visitor error checking pattern
qapi: Smooth visitor error checking in generated code
qapi: Purge error_propagate() from QAPI core
error: Avoid error_propagate() after migrate_add_blocker()
qemu-img: Ignore Error objects where the return value suffices
qdev: Ignore Error objects where the return value suffices
hmp: Ignore Error objects where the return value suffices

 docs/devel/qapi-code-gen.txt             | 103 ++++-----
 include/hw/audio/pcspk.h                 |   2 +-
 include/hw/qdev-properties.h             |   4 +-
 include/qapi/clone-visitor.h             |   8 +-
 include/qapi/error.h                     | 117 ++++++++--
 include/qapi/visitor-impl.h              |  26 +--
 include/qapi/visitor.h                   | 102 +++++----
 include/qemu/option.h                    |  16 +-
 include/qom/object.h                     | 104 +++++----
 include/qom/object_interfaces.h          |  12 +-
 include/qom/qom-qobject.h                |   9 +-
 accel/kvm/kvm-all.c                      |  55 +++--
 accel/tcg/tcg-all.c                      |   5 +-
 audio/audio_legacy.c                     |  15 +-
 backends/cryptodev-vhost-user.c          |   3 +-
 backends/cryptodev.c                     |  16 +-
 backends/hostmem-file.c                  |  22 +-
 backends/hostmem-memfd.c                 |  18 +-
 backends/hostmem.c                       |  33 ++-
 backends/rng.c                           |   2 +-
 backends/tpm/tpm_util.c                  |   5 +-
 block.c                                  |  21 +-
 block/blkdebug.c                         |   9 +-
 block/blklogwrites.c                     |   4 +-
 block/blkverify.c                        |   4 +-
 block/crypto.c                           |   5 +-
 block/curl.c                             |   5 +-
 block/file-posix.c                       |  16 +-
 block/file-win32.c                       |   8 +-
 block/gluster.c                          |  17 +-
 block/iscsi.c                            |   4 +-
 block/nbd.c                              |  10 +-
 block/nfs.c                              |   7 +-
 block/parallels.c                        |  29 +--
 block/qcow.c                             |  16 +-
 block/qcow2.c                            |  21 +-
 block/qed.c                              |  10 +-
 block/quorum.c                           |  19 +-
 block/raw-format.c                       |   5 +-
 block/rbd.c                              |   7 +-
 block/replication.c                      |  19 +-
 block/sheepdog.c                         |  16 +-
 block/ssh.c                              |  11 +-
 block/throttle-groups.c                  |  31 +--
 block/throttle.c                         |   5 +-
 block/vdi.c                              |  13 +-
 block/vhdx.c                             |  15 +-
 block/vmdk.c                             |  13 +-
 block/vpc.c                              |  19 +-
 block/vvfat.c                            |  10 +-
 block/vxhs.c                             |  15 +-
 blockdev.c                               |  40 ++--
 bootdevice.c                             |  13 +-
 chardev/char.c                           |   6 +-
 contrib/ivshmem-server/main.c            |   4 +-
 crypto/secret.c                          |   2 +-
 crypto/secret_keyring.c                  |   2 +-
 crypto/tlscredsanon.c                    |   2 +-
 crypto/tlscredspsk.c                     |   2 +-
 crypto/tlscredsx509.c                    |   2 +-
 dump/dump.c                              |   7 +-
 hw/acpi/core.c                           |  19 +-
 hw/acpi/cpu_hotplug.c                    |   4 +-
 hw/acpi/ich9.c                           |   2 +-
 hw/acpi/piix4.c                          |   2 +-
 hw/arm/allwinner-a10.c                   |  27 +--
 hw/arm/armsse.c                          | 208 ++++++------------
 hw/arm/armv7m.c                          |  47 ++--
 hw/arm/aspeed.c                          |  24 +--
 hw/arm/aspeed_ast2600.c                  | 124 ++++-------
 hw/arm/aspeed_soc.c                      |  85 +++-----
 hw/arm/bcm2835_peripherals.c             |  81 ++-----
 hw/arm/bcm2836.c                         |  35 +--
 hw/arm/cubieboard.c                      |  14 +-
 hw/arm/digic.c                           |  18 +-
 hw/arm/digic_boards.c                    |   3 +-
 hw/arm/exynos4210.c                      |  13 +-
 hw/arm/fsl-imx25.c                       |  58 ++---
 hw/arm/fsl-imx31.c                       |  34 +--
 hw/arm/fsl-imx6.c                        |  85 +++-----
 hw/arm/fsl-imx6ul.c                      |  29 ++-
 hw/arm/fsl-imx7.c                        |  31 ++-
 hw/arm/highbank.c                        |  12 +-
 hw/arm/integratorcp.c                    |   2 +-
 hw/arm/mcimx6ul-evk.c                    |   4 +-
 hw/arm/microbit.c                        |   4 +-
 hw/arm/mps2-tz.c                         |  31 ++-
 hw/arm/mps2.c                            |  12 +-
 hw/arm/msf2-soc.c                        |  29 +--
 hw/arm/musca.c                           |  18 +-
 hw/arm/musicpal.c                        |   4 +-
 hw/arm/nrf51_soc.c                       |  36 +---
 hw/arm/orangepi.c                        |  13 +-
 hw/arm/raspi.c                           |   2 +-
 hw/arm/realview.c                        |   6 +-
 hw/arm/sbsa-ref.c                        |  16 +-
 hw/arm/stellaris.c                       |   4 +-
 hw/arm/stm32f205_soc.c                   |  37 +---
 hw/arm/stm32f405_soc.c                   |  48 ++---
 hw/arm/versatilepb.c                     |   4 +-
 hw/arm/vexpress.c                        |   8 +-
 hw/arm/virt.c                            |  44 ++--
 hw/arm/xilinx_zynq.c                     |   6 +-
 hw/arm/xlnx-versal-virt.c                |   8 +-
 hw/arm/xlnx-versal.c                     |  30 ++-
 hw/arm/xlnx-zcu102.c                     |   8 +-
 hw/arm/xlnx-zynqmp.c                     | 117 ++++------
 hw/block/fdc.c                           |  12 +-
 hw/block/xen-block.c                     |  30 +--
 hw/char/serial-pci-multi.c               |   5 +-
 hw/char/serial-pci.c                     |   5 +-
 hw/char/serial.c                         |  10 +-
 hw/core/bus.c                            |  12 +-
 hw/core/cpu.c                            |   3 +-
 hw/core/machine.c                        |   5 +-
 hw/core/numa.c                           |  55 ++---
 hw/core/platform-bus.c                   |   6 +-
 hw/core/qdev-properties-system.c         |  32 +--
 hw/core/qdev-properties.c                |  95 +++------
 hw/core/qdev.c                           |  16 +-
 hw/cpu/a15mpcore.c                       |   5 +-
 hw/cpu/a9mpcore.c                        |  21 +-
 hw/cpu/arm11mpcore.c                     |  17 +-
 hw/cpu/core.c                            |  10 +-
 hw/cpu/realview_mpcore.c                 |   9 +-
 hw/display/bcm2835_fb.c                  |   8 +-
 hw/display/virtio-gpu-base.c             |   5 +-
 hw/display/virtio-gpu-pci.c              |  11 +-
 hw/display/virtio-vga.c                  |  10 +-
 hw/dma/bcm2835_dma.c                     |   9 +-
 hw/dma/sparc32_dma.c                     |   6 +-
 hw/dma/xilinx_axidma.c                   |   4 +-
 hw/gpio/aspeed_gpio.c                    |   5 +-
 hw/gpio/bcm2835_gpio.c                   |  15 +-
 hw/hyperv/vmbus.c                        |   5 +-
 hw/i386/pc.c                             |  48 ++---
 hw/i386/pc_piix.c                        |   4 +-
 hw/i386/pc_q35.c                         |  28 +--
 hw/i386/x86.c                            |   7 +-
 hw/ide/qdev.c                            |   7 +-
 hw/intc/apic_common.c                    |   5 +-
 hw/intc/arm_gic_kvm.c                    |   4 +-
 hw/intc/arm_gicv3_its_kvm.c              |   5 +-
 hw/intc/arm_gicv3_kvm.c                  |   4 +-
 hw/intc/armv7m_nvic.c                    |   9 +-
 hw/intc/nios2_iic.c                      |   8 +-
 hw/intc/pnv_xive.c                       |  17 +-
 hw/intc/realview_gic.c                   |   5 +-
 hw/intc/spapr_xive.c                     |  17 +-
 hw/intc/xics.c                           |   9 +-
 hw/intc/xics_kvm.c                       |   4 +-
 hw/intc/xive.c                           |  17 +-
 hw/isa/piix4.c                           |   5 +-
 hw/m68k/q800.c                           |   4 +-
 hw/mem/nvdimm.c                          |  30 +--
 hw/mem/pc-dimm.c                         |  18 +-
 hw/microblaze/petalogix_ml605_mmu.c      |  24 +--
 hw/microblaze/petalogix_s3adsp1800_mmu.c |   2 +-
 hw/microblaze/xlnx-zynqmp-pmu.c          |  39 ++--
 hw/mips/boston.c                         |   4 +-
 hw/mips/cps.c                            |  41 ++--
 hw/mips/jazz.c                           |   4 +-
 hw/mips/malta.c                          |   4 +-
 hw/misc/aspeed_sdmc.c                    |   8 +-
 hw/misc/bcm2835_mbox.c                   |   9 +-
 hw/misc/bcm2835_property.c               |  17 +-
 hw/misc/iotkit-sysctl.c                  |   2 +-
 hw/misc/ivshmem.c                        |   4 +-
 hw/misc/macio/cuda.c                     |   5 +-
 hw/misc/macio/macio.c                    |  35 ++-
 hw/misc/macio/pmu.c                      |   5 +-
 hw/misc/pca9552.c                        |   5 +-
 hw/misc/tmp105.c                         |   5 +-
 hw/misc/tmp421.c                         |   5 +-
 hw/net/ne2000-isa.c                      |   7 +-
 hw/net/virtio-net.c                      |   7 +-
 hw/net/xilinx_axienet.c                  |   4 +-
 hw/pci-host/pnv_phb3.c                   |  33 ++-
 hw/pci-host/pnv_phb4.c                   |   9 +-
 hw/pci-host/pnv_phb4_pec.c               |   9 +-
 hw/pci-host/prep.c                       |   4 +-
 hw/ppc/e500.c                            |   5 +-
 hw/ppc/mac_newworld.c                    |  10 +-
 hw/ppc/mac_oldworld.c                    |   4 +-
 hw/ppc/pnv.c                             | 171 +++++++--------
 hw/ppc/pnv_core.c                        |   4 +-
 hw/ppc/pnv_psi.c                         |  22 +-
 hw/ppc/rs6000_mc.c                       |   9 +-
 hw/ppc/spapr.c                           |  77 +++----
 hw/ppc/spapr_caps.c                      |  15 +-
 hw/ppc/spapr_cpu_core.c                  |  15 +-
 hw/ppc/spapr_drc.c                       |  16 +-
 hw/ppc/spapr_hcall.c                     |   3 +-
 hw/ppc/spapr_irq.c                       |  11 +-
 hw/ppc/spapr_pci.c                       |  16 +-
 hw/ppc/spapr_pci_nvlink2.c               |   3 +-
 hw/riscv/opentitan.c                     |  13 +-
 hw/riscv/sifive_e.c                      |  10 +-
 hw/riscv/sifive_u.c                      |  11 +-
 hw/riscv/spike.c                         |   4 +-
 hw/riscv/virt.c                          |   4 +-
 hw/rx/rx-gdbsim.c                        |  12 +-
 hw/s390x/css.c                           |   5 +-
 hw/s390x/event-facility.c                |  13 +-
 hw/s390x/ipl.c                           |  27 ++-
 hw/s390x/s390-pci-bus.c                  |  14 +-
 hw/s390x/s390-skeys.c                    |   2 +-
 hw/s390x/s390-stattrib.c                 |   2 +-
 hw/s390x/s390-virtio-ccw.c               |  20 +-
 hw/s390x/sclp.c                          |  13 +-
 hw/s390x/virtio-ccw-crypto.c             |  10 +-
 hw/s390x/virtio-ccw-rng.c                |   8 +-
 hw/scsi/scsi-bus.c                       |  15 +-
 hw/scsi/vhost-scsi.c                     |   4 +-
 hw/sd/aspeed_sdhci.c                     |  15 +-
 hw/sd/sd.c                               |   3 +-
 hw/sd/ssi-sd.c                           |  11 +-
 hw/smbios/smbios.c                       |  33 +--
 hw/sparc/sun4m.c                         |   2 +-
 hw/sparc64/sun4u.c                       |   2 +-
 hw/usb/bus.c                             |   7 +-
 hw/usb/dev-storage.c                     |   9 +-
 hw/usb/hcd-dwc2.c                        |   9 +-
 hw/vfio/pci-quirks.c                     |   5 +-
 hw/vfio/pci.c                            |  10 +-
 hw/virtio/virtio-balloon.c               |  17 +-
 hw/virtio/virtio-crypto-pci.c            |   9 +-
 hw/virtio/virtio-iommu-pci.c             |   4 +-
 hw/virtio/virtio-pmem-pci.c              |   2 +-
 hw/virtio/virtio-rng-pci.c               |   8 +-
 hw/virtio/virtio-rng.c                   |  11 +-
 hw/xen/xen_pt_config_init.c              |   3 +-
 iothread.c                               |  18 +-
 linux-user/syscall.c                     |   2 +-
 monitor/hmp-cmds.c                       |  11 +-
 monitor/monitor.c                        |  21 +-
 net/colo-compare.c                       |  26 +--
 net/dump.c                               |  13 +-
 net/filter-buffer.c                      |  13 +-
 net/filter.c                             |   2 +-
 net/net.c                                |  10 +-
 net/tap.c                                |   6 +-
 qapi/opts-visitor.c                      |  66 +++---
 qapi/qapi-clone-visitor.c                |  69 +++---
 qapi/qapi-dealloc-visitor.c              |  27 ++-
 qapi/qapi-visit-core.c                   | 197 +++++++++--------
 qapi/qobject-input-visitor.c             | 109 ++++++----
 qapi/qobject-output-visitor.c            |  27 ++-
 qapi/string-input-visitor.c              |  67 +++---
 qapi/string-output-visitor.c             |  32 +--
 qdev-monitor.c                           |  39 ++--
 qemu-img.c                               |  23 +-
 qga/commands-posix.c                     |   4 +-
 qga/commands-win32.c                     |  22 +-
 qom/object.c                             | 244 ++++++++++-----------
 qom/object_interfaces.c                  |  30 +--
 qom/qom-hmp-cmds.c                       |   2 +-
 qom/qom-qmp-cmds.c                       |   2 +-
 qom/qom-qobject.c                        |  14 +-
 softmmu/vl.c                             |  17 +-
 target/arm/cpu64.c                       |  15 +-
 target/arm/monitor.c                     |   7 +-
 target/i386/cpu.c                        |  98 +++------
 target/ppc/compat.c                      |   5 +-
 target/ppc/translate_init.inc.c          |   2 +-
 target/s390x/cpu_models.c                |  17 +-
 target/sparc/cpu.c                       |   5 +-
 tpm.c                                    |   5 +-
 ui/console.c                             |   4 +-
 ui/vnc.c                                 |   2 +-
 util/main-loop.c                         |   4 +-
 util/qemu-config.c                       |  25 +--
 util/qemu-option.c                       | 259 ++++++++++++-----------
 scripts/qapi/commands.py                 |  22 +-
 scripts/qapi/visit.py                    | 107 ++++------
 275 files changed, 2419 insertions(+), 3558 deletions(-)
Signature · 1 line
2.26.2