Skip to content
Snippets Groups Projects
  1. Jan 12, 2021
  2. Dec 18, 2020
    • Stefan Hajnoczi's avatar
      docs: generate qemu-storage-daemon-qmp-ref(7) man page · 23c02ace
      Stefan Hajnoczi authored
      
      Although individual qemu-storage-daemon QMP commands are identical to
      QEMU QMP commands, qemu-storage-daemon only supports a subset of QEMU's
      QMP commands. Generate a manual page of just the commands supported by
      qemu-storage-daemon so that users know exactly what is available in
      qemu-storage-daemon.
      
      Add an h1 heading in storage-daemon/qapi/qapi-schema.json so that
      block-core.json is at the h2 heading level.
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Message-Id: <20201209103802.350848-2-stefanha@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      23c02ace
  3. Dec 11, 2020
  4. Nov 11, 2020
  5. Oct 23, 2020
  6. Oct 15, 2020
    • Kevin Wolf's avatar
      qemu-storage-daemon: Remove QemuOpts from --object parser · 8db1efd3
      Kevin Wolf authored
      
      The command line parser for --object parses the input twice: Once into
      QemuOpts just for detecting help options, and then again into a QDict
      using the keyval parser for actually creating the object.
      
      Now that the keyval parser can also detect help options, we can simplify
      this and remove the QemuOpts part.
      
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20201007164903.282198-5-kwolf@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      8db1efd3
    • Kevin Wolf's avatar
      keyval: Parse help options · 8bf12c4f
      Kevin Wolf authored
      
      This adds a special meaning for 'help' and '?' as options to the keyval
      parser. Instead of being an error (because of a missing value) or a
      value for an implied key, they now request help, which is a new boolean
      output of the parser in addition to the QDict.
      
      A new parameter 'p_help' is added to keyval_parse() that contains on
      return whether help was requested. If NULL is passed, requesting help
      results in an error and all other cases work like before.
      
      Turning previous error cases into help is a compatible extension. The
      behaviour potentially changes for implied keys: They could previously
      get 'help' as their value, which is now interpreted as requesting help.
      
      This is not a problem in practice because 'help' and '?' are not a valid
      values for the implied key of any option parsed with keyval_parse():
      
      * audiodev: union Audiodev, implied key "driver" is enum AudiodevDriver,
        "help" and "?" are not among its values
      
      * display: union DisplayOptions, implied key "type" is enum
        DisplayType, "help" and "?" are not among its values
      
      * blockdev: union BlockdevOptions, implied key "driver is enum
        BlockdevDriver, "help" and "?" are not among its values
      
      * export: union BlockExport, implied key "type" is enum BlockExportType,
        "help" and "?" are not among its values
      
      * monitor: struct MonitorOptions, implied key "mode" is enum MonitorMode,
        "help" and "?" are not among its values
      
      * nbd-server: struct NbdServerOptions, no implied key.
      
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20201011073505.1185335-5-armbru@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      8bf12c4f
  7. Oct 02, 2020
  8. Sep 29, 2020
    • Peter Maydell's avatar
      docs/interop: Convert qemu-qmp-ref to rST · 4ac2ee19
      Peter Maydell authored
      
      Convert qemu-qmp-ref to rST format. This includes dropping
      the plain-text, pdf and info format outputs for this document;
      as with all our other Sphinx-based documentation, we provide
      HTML and manpage only.
      
      The qemu-qmp-ref.rst is somewhat more stripped down than
      the .texi was, because we do not (currently) attempt to
      generate indexes for the commands, events and data types
      being documented.
      
      Again, we drop the direct link from index.html.in now that
      the QMP ref is part of the interop manual.
      
      This commit removes the code from the root meson.build file that
      handled the various Texinfo-based outputs, because we no longer
      generate any documentation except for the Sphinx HTML manuals and the
      manpages, and the code can't handle having an empty list of files
      to process.. We'll do further cleanup of the remainders of
      Texinfo support in subsequent commits.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-Id: <20200925162316.21205-10-peter.maydell@linaro.org>
      Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
      [Unicode legacy literal dumbed down to plain string literal, TODO
      comment on displaying QEMU version added, "make html" fixed,
      storage-daemon/qapi/meson.build updated]
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      4ac2ee19
  9. Aug 21, 2020
    • Paolo Bonzini's avatar
      meson: convert qemu-storage-daemon · 7c58bb76
      Paolo Bonzini authored
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      7c58bb76
    • Paolo Bonzini's avatar
      libqemuutil, qapi, trace: convert to meson · a81df1b6
      Paolo Bonzini authored
      
      This shows how to do some "computations" in meson.build using its array
      and dictionary data structures, and also a basic usage of the sourceset
      module for conditional compilation.
      
      Notice the new "if have_system" part of util/meson.build, which fixes
      a bug in the old build system was buggy: util/dbus.c was built even for
      non-softmmu builds, but the dependency on -lgio was lost when the linking
      was done through libqemuutil.a.  Because all of its users required gio
      otherwise, the bug was hidden.  Meson instead propagates libqemuutil's
      dependencies down to its users, and shows the problem.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      a81df1b6
  10. Aug 03, 2020
    • Andrea Bolognani's avatar
      schemas: Add vim modeline · f7160f32
      Andrea Bolognani authored
      
      The various schemas included in QEMU use a JSON-based format which
      is, however, strictly speaking not valid JSON.
      
      As a consequence, when vim tries to apply syntax highlight rules
      for JSON (as guessed from the file name), the result is an unreadable
      mess which mostly consist of red markers pointing out supposed errors
      in, well, pretty much everything.
      
      Using Python syntax highlighting produces much better results, and
      in fact these files already start with specially-formatted comments
      that instruct Emacs to process them as if they were Python files.
      
      This commit adds the equivalent special comments for vim.
      
      Signed-off-by: default avatarAndrea Bolognani <abologna@redhat.com>
      Message-Id: <20200729185024.121766-1-abologna@redhat.com>
      Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Reviewed-by: default avatarJohn Snow <jsnow@redhat.com>
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      f7160f32
  11. Mar 06, 2020
    • Kevin Wolf's avatar
      qemu-storage-daemon: Add --monitor option · 2af282ec
      Kevin Wolf authored
      
      This adds and parses the --monitor option, so that a QMP monitor can be
      used in the storage daemon. The monitor offers commands defined in the
      QAPI schema at storage-daemon/qapi/qapi-schema.json.
      
      The --monitor options currently allows to create multiple monitors with
      the same ID. This part of the interface is considered unstable. We will
      reject such configurations as soon as we have a design for the monitor
      subsystem to perform these checks. (In the system emulator, we depend on
      QemuOpts rejecting duplicate IDs.)
      
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      Message-Id: <20200224143008.13362-21-kwolf@redhat.com>
      Acked-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      2af282ec
Loading