Skip to content
Snippets Groups Projects
  1. Sep 30, 2020
  2. Sep 29, 2020
    • Peter Maydell's avatar
      docs/devel/qapi-code-gen.txt: Update to new rST backend conventions · 55ec69f8
      Peter Maydell authored
      
      Update the documentation of QAPI document comment syntax to match
      the new rST backend requirements. The principal changes are:
       * whitespace is now significant, and multiline definitions
         must have their second and subsequent lines indented to
         match the first line
       * general rST format markup is permitted, not just the small
         set of markup the old texinfo generator handled. For most
         things (notably bulleted and itemized lists) the old format
         was the same as rST is.
       * Specific things that might trip people up:
         - instead of *bold* and _italic_ rST has **bold** and *italic*
         - lists need a preceding and following blank line
         - a lone literal '*' will need to be backslash-escaped to
           avoid a rST syntax error
       * the old leading '|' for example (literal text) blocks is
         replaced by the standard rST '::' literal block.
       * we support arbitrary levels of sub- and sub-sub-heading, not
         just a main and sub-heading like the old texinfo generator
       * lists can now be nested
      
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-Id: <20200925162316.21205-18-peter.maydell@linaro.org>
      Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
      [Commit message improved slightly]
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      55ec69f8
    • Peter Maydell's avatar
      meson.build: Make manuals depend on source to Sphinx extensions · b3f4830a
      Peter Maydell authored
      
      The automatic dependency handling for Sphinx manuals only makes the output
      depend on the input documentation files. This means that if you edit
      the Python source of an extension then the documentation won't be
      rebuilt.
      
      Create a list of all the source files for the extensions and add
      it to the dependencies for the manuals. This is similar to how we
      handle the qapi_gen_depends list.
      
      Because we don't try to identify which manuals are using which
      Sphinx extensions, a change to the source of one extension will
      always rebuild the entire manual set, not merely the manuals
      which have changed. This is acceptable because we don't change
      the extensions all that often.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-Id: <20200925162316.21205-15-peter.maydell@linaro.org>
      Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
      [Re rebuilding the enitre manual set being acceptable "because we
      don't change the extensions all that often": we also rebuild it when
      the QAPI generator code the qapidoc extension depends on changes.
      This will inconvenience QAPI developers.  Can't be helped now.]
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      b3f4830a
    • Peter Maydell's avatar
      meson.build: Move SPHINX_ARGS to top level meson.build file · eb937365
      Peter Maydell authored
      
      We're going to want to use SPHINX_ARGS in both docs/meson.build
      and tests/qapi-schema/meson.build. Move the definition up to the
      top level file so it is available to both subdirectories.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-Id: <20200925162316.21205-14-peter.maydell@linaro.org>
      Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      eb937365
    • 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
    • Peter Maydell's avatar
      docs/interop: Convert qemu-ga-ref to rST · db16115f
      Peter Maydell authored
      
      Convert qemu-ga-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-ga-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.
      
      As the GA ref is now part of the Sphinx 'interop' manual,
      we can delete the direct link from index.html.in.
      
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-Id: <20200925162316.21205-9-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]
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      db16115f
    • Peter Maydell's avatar
      docs/sphinx: Add new qapi-doc Sphinx extension · 4078ee54
      Peter Maydell authored
      
      Some of our documentation is auto-generated from documentation
      comments in the JSON schema.
      
      For Sphinx, rather than creating a file to include, the most natural
      way to handle this is to have a small custom Sphinx extension which
      processes the JSON file and inserts documentation into the rST
      file being processed.
      
      This is the same approach that kerneldoc and hxtool use.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-Id: <20200925162316.21205-8-peter.maydell@linaro.org>
      Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
      [Comment and doc string formatting tweaked, unused method dropped,
      a few line breaks tweaked to follow PEP 8 more closely, MAINTAINERS
      section QAPI updated]
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      4078ee54
    • Peter Maydell's avatar
      scripts/qapi/parser.py: improve doc comment indent handling · a69a6d4b
      Peter Maydell authored
      
      Make the handling of indentation in doc comments more sophisticated,
      so that when we see a section like:
      
      Notes: some text
             some more text
                indented line 3
      
      we save it for the doc-comment processing code as:
      
      some text
      some more text
         indented line 3
      
      and when we see a section with the heading on its own line:
      
      Notes:
      
      some text
      some more text
         indented text
      
      we also accept that and save it in the same form.
      
      If we detect that the comment document text is not indented as much
      as we expect it to be, we throw a parse error.  (We don't complain
      about over-indented sections, because for rST this can be legitimate
      markup.)
      
      The golden reference for the doc comment text is updated to remove
      the two 'wrong' indents; these now form a test case that we correctly
      stripped leading whitespace from an indented multi-line argument
      definition.
      
      We update the documentation in docs/devel/qapi-code-gen.txt to
      describe the new indentation rules.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-Id: <20200925162316.21205-6-peter.maydell@linaro.org>
      Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
      [Whitespace between sentences tweaked]
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      a69a6d4b
    • Igor Mammedov's avatar
      cphp: remove deprecated cpu-add command(s) · 63e79833
      Igor Mammedov authored
      
      These were deprecated since 4.0, remove both HMP and QMP variants.
      
      Users should use device_add command instead. To get list of
      possible CPUs and options, use 'info hotpluggable-cpus' HMP
      or query-hotpluggable-cpus QMP command.
      
      Signed-off-by: default avatarIgor Mammedov <imammedo@redhat.com>
      Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
      Acked-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      Reviewed-by: default avatarMichal Privoznik <mprivozn@redhat.com>
      Acked-by: default avatarCornelia Huck <cohuck@redhat.com>
      Message-Id: <20200915120403.1074579-1-imammedo@redhat.com>
      Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      63e79833
  3. Sep 25, 2020
  4. Sep 23, 2020
  5. Sep 22, 2020
  6. Sep 18, 2020
  7. Sep 17, 2020
  8. Sep 16, 2020
  9. Sep 14, 2020
  10. Sep 10, 2020
  11. Sep 08, 2020
  12. Sep 07, 2020
  13. Sep 03, 2020
Loading