qapi storage-daemon/qapi: Fix documentation section structureIn the QEMU QMP Reference Manual, subsection "Block core (VMunrelated)" is empty. Its contents is at the end of subsection"Background
qapi storage-daemon/qapi: Fix documentation section structureIn the QEMU QMP Reference Manual, subsection "Block core (VMunrelated)" is empty. Its contents is at the end of subsection"Background jobs" instead. That's because qapi/job.json is includedfirst from qapi/block-core.json, which makes qapi/job.json'sdocumentation go between qapi/block-core.json's subsection heading andcontents.In the QEMU Storage Daemon QMP Reference Manual, section "BlockDevices" contains nothing but an empty subsection "Block core (VMunrelated)". The latter's contents is at the end section "Socket datatypes", along with subsection "Block device exports". Subsection"Background jobs" is at the end of section "Cryptography". All thisis because storage-daemon/qapi/qapi-schema.json includes modules in aconfused order.Fix both as follows.Turn subsection "Background jobs" into a section.Move it before section "Block devices" in the QEMU QMP ReferenceManual, by including qapi/jobs.json right before qapi/block.json.Reorder include directives in storage-daemon/qapi/qapi-schema.json tomatch the order in qapi/qapi-schema.json, so that the QEMU StorageDaemon QMP Reference Manual's section structure the QEMU QMP ReferenceManual's.In the QEMU QMP Reference Manual, qapi/cryptodev.json's documentationis at the end of section "Virtio devices". That's because it lacks asection heading, and therefore gets squashed into whatever sectionhappens to precede it.Add section heading so it's in section "Cryptography devices".Signed-off-by: Markus Armbruster <armbru@redhat.com>Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>Acked-by: zhenwei pi <pizhenwei@bytedance.com>Message-Id: <20230425064223.820979-17-armbru@redhat.com>
show more ...
qapi/qom: Add ObjectOptions for authz-*This adds a QAPI schema for the properties of the authz-* objects.Signed-off-by: Kevin Wolf <kwolf@redhat.com>Acked-by: Paolo Bonzini <pbonzini@redhat.com>
qapi/qom: Add ObjectOptions for authz-*This adds a QAPI schema for the properties of the authz-* objects.Signed-off-by: Kevin Wolf <kwolf@redhat.com>Acked-by: Paolo Bonzini <pbonzini@redhat.com>Acked-by: Peter Krempa <pkrempa@redhat.com>Acked-by: Daniel P. Berrangé <berrange@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>
docs: generate qemu-storage-daemon-qmp-ref(7) man pageAlthough individual qemu-storage-daemon QMP commands are identical toQEMU QMP commands, qemu-storage-daemon only supports a subset of QEMU'sQ
docs: generate qemu-storage-daemon-qmp-ref(7) man pageAlthough individual qemu-storage-daemon QMP commands are identical toQEMU QMP commands, qemu-storage-daemon only supports a subset of QEMU'sQMP commands. Generate a manual page of just the commands supported byqemu-storage-daemon so that users know exactly what is available inqemu-storage-daemon.Add an h1 heading in storage-daemon/qapi/qapi-schema.json so thatblock-core.json is at the h2 heading level.Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>Message-Id: <20201209103802.350848-2-stefanha@redhat.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qapi: Create block-export moduleMove all block export related types and commands from block-core to thenew QAPI module block-export.Signed-off-by: Kevin Wolf <kwolf@redhat.com>Reviewed-by: Max
qapi: Create block-export moduleMove all block export related types and commands from block-core to thenew QAPI module block-export.Signed-off-by: Kevin Wolf <kwolf@redhat.com>Reviewed-by: Max Reitz <mreitz@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>Message-Id: <20200924152717.287415-3-kwolf@redhat.com>Acked-by: Stefan Hajnoczi <stefanha@redhat.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
docs/interop: Convert qemu-qmp-ref to rSTConvert qemu-qmp-ref to rST format. This includes droppingthe plain-text, pdf and info format outputs for this document;as with all our other Sphinx-based
docs/interop: Convert qemu-qmp-ref to rSTConvert qemu-qmp-ref to rST format. This includes droppingthe plain-text, pdf and info format outputs for this document;as with all our other Sphinx-based documentation, we provideHTML and manpage only.The qemu-qmp-ref.rst is somewhat more stripped down thanthe .texi was, because we do not (currently) attempt togenerate indexes for the commands, events and data typesbeing documented.Again, we drop the direct link from index.html.in now thatthe QMP ref is part of the interop manual.This commit removes the code from the root meson.build file thathandled the various Texinfo-based outputs, because we no longergenerate any documentation except for the Sphinx HTML manuals and themanpages, and the code can't handle having an empty list of filesto process.. We'll do further cleanup of the remainders ofTexinfo support in subsequent commits.Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Message-Id: <20200925162316.21205-10-peter.maydell@linaro.org>Reviewed-by: Markus Armbruster <armbru@redhat.com>[Unicode legacy literal dumbed down to plain string literal, TODOcomment on displaying QEMU version added, "make html" fixed,storage-daemon/qapi/meson.build updated]Signed-off-by: Markus Armbruster <armbru@redhat.com>
meson: convert qemu-storage-daemonSigned-off-by: Paolo Bonzini <pbonzini@redhat.com>
libqemuutil, qapi, trace: convert to mesonThis shows how to do some "computations" in meson.build using its arrayand dictionary data structures, and also a basic usage of the sourcesetmodule for
libqemuutil, qapi, trace: convert to mesonThis shows how to do some "computations" in meson.build using its arrayand dictionary data structures, and also a basic usage of the sourcesetmodule for conditional compilation.Notice the new "if have_system" part of util/meson.build, which fixesa bug in the old build system was buggy: util/dbus.c was built even fornon-softmmu builds, but the dependency on -lgio was lost when the linkingwas done through libqemuutil.a. Because all of its users required giootherwise, the bug was hidden. Meson instead propagates libqemuutil'sdependencies down to its users, and shows the problem.Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
schemas: Add vim modelineThe various schemas included in QEMU use a JSON-based format whichis, however, strictly speaking not valid JSON.As a consequence, when vim tries to apply syntax highligh
schemas: Add vim modelineThe various schemas included in QEMU use a JSON-based format whichis, however, strictly speaking not valid JSON.As a consequence, when vim tries to apply syntax highlight rulesfor JSON (as guessed from the file name), the result is an unreadablemess which mostly consist of red markers pointing out supposed errorsin, well, pretty much everything.Using Python syntax highlighting produces much better results, andin fact these files already start with specially-formatted commentsthat instruct Emacs to process them as if they were Python files.This commit adds the equivalent special comments for vim.Signed-off-by: Andrea Bolognani <abologna@redhat.com>Message-Id: <20200729185024.121766-1-abologna@redhat.com>Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>Reviewed-by: John Snow <jsnow@redhat.com>Signed-off-by: Markus Armbruster <armbru@redhat.com>
qemu-storage-daemon: Add --monitor optionThis adds and parses the --monitor option, so that a QMP monitor can beused in the storage daemon. The monitor offers commands defined in theQAPI schema a
qemu-storage-daemon: Add --monitor optionThis adds and parses the --monitor option, so that a QMP monitor can beused in the storage daemon. The monitor offers commands defined in theQAPI schema at storage-daemon/qapi/qapi-schema.json.The --monitor options currently allows to create multiple monitors withthe same ID. This part of the interface is considered unstable. We willreject such configurations as soon as we have a design for the monitorsubsystem to perform these checks. (In the system emulator, we depend onQemuOpts rejecting duplicate IDs.)Signed-off-by: Kevin Wolf <kwolf@redhat.com>Message-Id: <20200224143008.13362-21-kwolf@redhat.com>Acked-by: Stefan Hajnoczi <stefanha@redhat.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>