xemu/docs
Markus Armbruster 9d55380b5a qapi: Remove null from schema language
We represent the parse tree as OrderedDict.  We fetch optional dict
members with .get().  So far, so good.

We represent null literals as None.  .get() returns None both for
"absent" and for "present, value is the null literal".  Uh-oh.

Test features-if-invalid exposes this bug: "'if': null" is
misinterpreted as absent "if".

We added null to the schema language to "allow [...] an explicit
default value" (commit e53188ada5 "qapi: Allow true, false and null in
schema json", v2.4.0).  Hasn't happened; null is still unused except
as generic invalid value in tests/.

To fix, we'd have to replace .get() by something more careful, or
represent null differently.  Feasible, but we got more and bigger fish
to fry right now.  Remove the null literal from the schema language.
Replace null in tests by another invalid value.

Test features-if-invalid now behaves as it should.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190914153506.2151-10-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2019-09-24 14:07:23 +02:00
..
config
devel qapi: Remove null from schema language 2019-09-24 14:07:23 +02:00
interop qemu-ga: Convert invocation documentation to rST 2019-09-13 16:05:01 +01:00
specs
sphinx
spin
amd-memory-encryption.txt
barrier.txt ui: add an embedded Barrier client 2019-09-17 13:43:22 +02:00
block-replication.txt
bootindex.txt
can.txt
ccid.txt
COLO-FT.txt
colo-proxy.txt
conf.py qemu-ga: Convert invocation documentation to rST 2019-09-13 16:05:01 +01:00
cpu-hotplug.rst
generic-loader.txt
hyperv.txt
igd-assign.txt
image-fuzzer.txt
index.rst
memory-hotplug.txt
multi-thread-compression.txt
multiseat.txt
nvdimm.txt docs/nvdimm: add example on persistent backend setup 2019-09-16 06:27:35 -04:00
pci_expander_bridge.txt
pcie_pci_bridge.txt
pcie.txt
pr-manager.rst
pvrdma.txt
qcow2-cache.txt
qdev-device-use.txt
qemu_logo.pdf
qemu-block-drivers.texi qemu-doc: Do not hard-code the name of the QEMU binary 2019-09-05 13:18:52 +02:00
qemu-cpu-models.texi qemu-doc: Do not hard-code the name of the QEMU binary 2019-09-05 13:18:52 +02:00
qemupciserial.inf
rdma.txt
replay.txt
security.texi
spice-port-fqdn.txt
throttle.txt
usb2.txt
usb-storage.txt
vfio-ap.txt
virtio-balloon-stats.txt
virtio-pmem.rst virtio pmem: user document 2019-09-16 06:57:24 -04:00
xbzrle.txt
xen-save-devices-state.txt