Skip to content

Commits

Permalink
qapi-doc
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Commits on Jan 16, 2017

  1. build-sys: add qapi doc generation targets

    Generate and install the man, txt and html versions of QAPI
    documentation (generate and install qemu-doc.txt too).
    
    Add it also to optional pdf/info targets.
    
    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Message-Id: <20170113144135.5150-22-marcandre.lureau@redhat.com>
    Reviewed-by: Markus Armbruster <armbru@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    f644c87 View commit details
    Browse the repository at this point in the history
  2. build-sys: add txt documentation rules

    Build plain text documentation, and install it.
    
    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Reviewed-by: Markus Armbruster <armbru@redhat.com>
    Message-Id: <20170113144135.5150-21-marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    3139310 View commit details
    Browse the repository at this point in the history
  3. build-sys: use a generic TEXI2MAN rule

    The recipe for making a man page from .texi is duplicated several
    times over.  Capture it in suitable pattern rules instead.
    
    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Reviewed-by: Markus Armbruster <armbru@redhat.com>
    Message-Id: <20170113144135.5150-20-marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    be23229 View commit details
    Browse the repository at this point in the history
  4. build-sys: remove dvi doc generation

    There is no clear reason to have rules to generate dvi format
    documentation, pdf is generally better supported nowadays.
    
    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Reviewed-by: Markus Armbruster <armbru@redhat.com>
    Message-Id: <20170113144135.5150-19-marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    ebb7554 View commit details
    Browse the repository at this point in the history
  5. build-sys: use --no-split for info

    Splitting the info files doesn't bring much benefits these days.
    This fixes also untracked generated info files from git ignore.
    
    Let's use MAKEINFOFLAGS for common flags, --number-sections is already
    the default anyway, so adding it doesn't change the info output.
    
    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Reviewed-by: Markus Armbruster <armbru@redhat.com>
    Message-Id: <20170113144135.5150-18-marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    c4bbd1e View commit details
    Browse the repository at this point in the history
  6. docs: add qemu logo to pdf

    Add a logo to texi2pdf output. Other formats (info/html) are left as
    future improvements.
    
    The PDF (needed by texi2pdf for vectorized images) was generated from
    pc-bios/qemu_logo.svg like this:
    
    inkscape --export-pdf=docs/qemu_logo.pdf pc-bios/qemu_logo.svg
    
    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Reviewed-by: Markus Armbruster <armbru@redhat.com>
    Message-Id: <20170113144135.5150-17-marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    b8883cd View commit details
    Browse the repository at this point in the history
  7. qapi: add qapi2texi script

    As the name suggests, the qapi2texi script converts JSON QAPI
    description into a texi file suitable for different target
    formats (info/man/txt/pdf/html...).
    
    It parses the following kind of blocks:
    
    Free-form:
    
      ##
      # = Section
      # == Subsection
      #
      # Some text foo with *emphasis*
      # 1. with a list
      # 2. like that
      #
      # And some code:
      # | $ echo foo
      # | -> do this
      # | <- get that
      #
      ##
    
    Symbol description:
    
      ##
      # @symbol:
      #
      # Symbol body ditto ergo sum. Foo bar
      # baz ding.
      #
      # @param1: the frob to frobnicate
      # @Param2: #optional how hard to frobnicate
      #
      # Returns: the frobnicated frob.
      #          If frob isn't frobnicatable, GenericError.
      #
      # Since: version
      # Notes: notes, comments can have
      #        - itemized list
      #        - like this
      #
      # Example:
      #
      # -> { "execute": "quit" }
      # <- { "return": {} }
      #
      ##
    
    That's roughly following the following EBNF grammar:
    
    api_comment = "##\n" comment "##\n"
    comment = freeform_comment | symbol_comment
    freeform_comment = { "# " text "\n" | "#\n" }
    symbol_comment = "# @" name ":\n" { member | tag_section | freeform_comment }
    member = "# @" name ':' [ text ] "\n" freeform_comment
    tag_section = "# " ( "Returns:", "Since:", "Note:", "Notes:", "Example:", "Examples:" ) [ text ]  "\n" freeform_comment
    text = free text with markup
    
    Note that the grammar is ambiguous: a line "# @foo:\n" can be parsed
    both as freeform_comment and as symbol_comment.  The actual parser
    recognizes symbol_comment.
    
    See docs/qapi-code-gen.txt for more details.
    
    Deficiencies and limitations:
    - the generated QMP documentation includes internal types
    - union type support is lacking
    - type information is lacking in generated documentation
    - doc comment error message positions are imprecise, they point
      to the beginning of the comment.
    - a few minor issues, all marked TODO/FIXME in the code
    
    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Message-Id: <20170113144135.5150-16-marcandre.lureau@redhat.com>
    Reviewed-by: Markus Armbruster <armbru@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    fbd9f7a View commit details
    Browse the repository at this point in the history
  8. qmp-events: move 'MIGRATION_PASS' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    2e8b31f View commit details
    Browse the repository at this point in the history
  9. qmp-events: move 'DUMP_COMPLETED' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    81c1e0b View commit details
    Browse the repository at this point in the history
  10. qmp-events: move 'MEM_UNPLUG_ERROR' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    4cfd9a4 View commit details
    Browse the repository at this point in the history
  11. qmp-events: move 'VSERPORT_CHANGE' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    feefd5a View commit details
    Browse the repository at this point in the history
  12. qmp-events: move 'QUORUM_REPORT_BAD' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    45577ab View commit details
    Browse the repository at this point in the history
  13. qmp-events: move 'QUORUM_FAILURE' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    7bd8783 View commit details
    Browse the repository at this point in the history
  14. qmp-events: move 'GUEST_PANICKED' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    2de9523 View commit details
    Browse the repository at this point in the history
  15. qmp-events: move 'BALLOON_CHANGE' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    3924a86 View commit details
    Browse the repository at this point in the history
  16. qmp-events: move 'ACPI_DEVICE_OST' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    93370bc View commit details
    Browse the repository at this point in the history
  17. qmp-events: move 'MIGRATION' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    555faa3 View commit details
    Browse the repository at this point in the history
  18. qmp-events: move 'SPICE_MIGRATE_COMPLETED' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    a96efe9 View commit details
    Browse the repository at this point in the history
  19. qmp-events: move 'SPICE_DISCONNECTED' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    9b14346 View commit details
    Browse the repository at this point in the history
  20. qmp-events: move 'SPICE_INITIALIZED' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    3bb875b View commit details
    Browse the repository at this point in the history
  21. qmp-events: move 'SPICE_CONNECTED' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    a1acb91 View commit details
    Browse the repository at this point in the history
  22. qmp-events: move 'VNC_DISCONNECTED' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    614dc50 View commit details
    Browse the repository at this point in the history
  23. qmp-events: move 'VNC_INITIALIZED' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    aeb1b5e View commit details
    Browse the repository at this point in the history
  24. qmp-events: move 'VNC_CONNECTED' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    7717fc9 View commit details
    Browse the repository at this point in the history
  25. qmp-events: move 'NIC_RX_FILTER_CHANGED' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    76944bf View commit details
    Browse the repository at this point in the history
  26. qmp-events: move 'DEVICE_DELETED' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    f1d1b5a View commit details
    Browse the repository at this point in the history
  27. qmp-events: move 'WATCHDOG' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    9705b7b View commit details
    Browse the repository at this point in the history
  28. qmp-events: move 'RTC_CHANGE' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    a266603 View commit details
    Browse the repository at this point in the history
  29. qmp-events: move 'WAKEUP' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    53b5ca9 View commit details
    Browse the repository at this point in the history
  30. qmp-events: move 'SUSPEND_DISK' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    219123d View commit details
    Browse the repository at this point in the history
  31. qmp-events: move 'SUSPEND' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    162940d View commit details
    Browse the repository at this point in the history
  32. qmp-events: move 'RESUME' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    28970b8 View commit details
    Browse the repository at this point in the history
  33. qmp-events: move 'STOP' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    d2ea1b1 View commit details
    Browse the repository at this point in the history
  34. qmp-events: move 'RESET' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    df96c44 View commit details
    Browse the repository at this point in the history
  35. qmp-events: move 'POWERDOWN' doc to schema

    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    elmarco committed Jan 16, 2017
    Copy the full SHA
    7aceed5 View commit details
    Browse the repository at this point in the history
Older