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>
show more ...
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>
123