]> xenbits.xensource.com Git - people/pauldu/qemu.git/commit
qapi machine: Elide redundant has_FOO in generated C
authorMarkus Armbruster <armbru@redhat.com>
Fri, 4 Nov 2022 16:06:57 +0000 (17:06 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 14 Dec 2022 19:04:47 +0000 (20:04 +0100)
commitfe8ac1fa49a2aa2c6badf26c6fbed5720d3f61f9
tree5443f163c625c41a011216ebf264ba14029ebac5
parent107111bf6f8165f333ff934c5f482818572874ce
qapi machine: Elide redundant has_FOO in generated C

The has_FOO for pointer-valued FOO are redundant, except for arrays.
They are also a nuisance to work with.  Recent commit "qapi: Start to
elide redundant has_FOO in generated C" provided the means to elide
them step by step.  This is the step for qapi/machine*.json.

Said commit explains the transformation in more detail.  The invariant
violations mentioned there do not occur here.

Cc: Eduardo Habkost <eduardo@habkost.net>
Cc: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Cc: Philippe Mathieu-Daudé <f4bug@amsat.org>
Cc: Yanan Wang <wangyanan55@huawei.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20221104160712.3005652-16-armbru@redhat.com>
13 files changed:
hw/core/machine-hmp-cmds.c
hw/core/machine-qmp-cmds.c
hw/core/machine.c
hw/core/numa.c
hw/mem/pc-dimm.c
hw/nvram/fw_cfg.c
hw/virtio/virtio-mem-pci.c
hw/virtio/virtio-pmem-pci.c
scripts/qapi/schema.py
target/arm/monitor.c
target/i386/cpu-sysemu.c
target/i386/cpu.c
target/s390x/cpu_models_sysemu.c