qga/qapi-schema.json: minor format fixups for rST

We would like to switch the doc comments to rST format, and rST
requires a blank line before the start of a bulleted or enumerated
list. Two places in qapi-schema.json were missing this blank line.

Some places were using an indented line as a sort of single-item
bulleted list, which in the Texinfo output comes out all run
onto a single line; use a real bulleted list instead.

Some places unnecessarily indented lists, which confuses rST.

guest-fstrim:minimum's documentation was indented the
right amount to share a line with @minimum, but wasn't
actually doing so.

The indent on the bulleted list in the guest-set-vcpus
Returns section meant rST misindented it.

Changes to the generated Texinfo are very minor (the new
bulleted lists, and a few extra blank lines).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20200213175647.17628-7-peter.maydell@linaro.org>
[Commit message tweaked]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
Peter Maydell 2020-02-13 17:56:23 +00:00 committed by Markus Armbruster
parent 883aff68a7
commit a7b6e89641
1 changed files with 51 additions and 43 deletions

View File

@ -510,8 +510,7 @@
# #
# Discard (or "trim") blocks which are not in use by the filesystem. # Discard (or "trim") blocks which are not in use by the filesystem.
# #
# @minimum: # @minimum: Minimum contiguous free range to discard, in bytes. Free ranges
# Minimum contiguous free range to discard, in bytes. Free ranges
# smaller than this may be ignored (this is a hint and the guest # smaller than this may be ignored (this is a hint and the guest
# may not respect it). By increasing this value, the fstrim # may not respect it). By increasing this value, the fstrim
# operation will complete more quickly for filesystems with badly # operation will complete more quickly for filesystems with badly
@ -546,7 +545,8 @@
# (or set its status to "shutdown") due to other reasons. # (or set its status to "shutdown") due to other reasons.
# #
# The following errors may be returned: # The following errors may be returned:
# If suspend to disk is not supported, Unsupported #
# - If suspend to disk is not supported, Unsupported
# #
# Notes: It's strongly recommended to issue the guest-sync command before # Notes: It's strongly recommended to issue the guest-sync command before
# sending commands when the guest resumes # sending commands when the guest resumes
@ -575,12 +575,14 @@
# #
# This command does NOT return a response on success. There are two options # This command does NOT return a response on success. There are two options
# to check for success: # to check for success:
# 1. Wait for the SUSPEND QMP event from QEMU #
# 2. Issue the query-status QMP command to confirm the VM status is # 1. Wait for the SUSPEND QMP event from QEMU
# "suspended" # 2. Issue the query-status QMP command to confirm the VM status is
# "suspended"
# #
# The following errors may be returned: # The following errors may be returned:
# If suspend to ram is not supported, Unsupported #
# - If suspend to ram is not supported, Unsupported
# #
# Notes: It's strongly recommended to issue the guest-sync command before # Notes: It's strongly recommended to issue the guest-sync command before
# sending commands when the guest resumes # sending commands when the guest resumes
@ -607,12 +609,14 @@
# #
# This command does NOT return a response on success. There are two options # This command does NOT return a response on success. There are two options
# to check for success: # to check for success:
# 1. Wait for the SUSPEND QMP event from QEMU #
# 2. Issue the query-status QMP command to confirm the VM status is # 1. Wait for the SUSPEND QMP event from QEMU
# "suspended" # 2. Issue the query-status QMP command to confirm the VM status is
# "suspended"
# #
# The following errors may be returned: # The following errors may be returned:
# If hybrid suspend is not supported, Unsupported #
# - If hybrid suspend is not supported, Unsupported
# #
# Notes: It's strongly recommended to issue the guest-sync command before # Notes: It's strongly recommended to issue the guest-sync command before
# sending commands when the guest resumes # sending commands when the guest resumes
@ -767,18 +771,22 @@
# Returns: The length of the initial sublist that has been successfully # Returns: The length of the initial sublist that has been successfully
# processed. The guest agent maximizes this value. Possible cases: # processed. The guest agent maximizes this value. Possible cases:
# #
# - 0: if the @vcpus list was empty on input. Guest state # - 0:
# has not been changed. Otherwise, # if the @vcpus list was empty on input. Guest state
# - Error: processing the first node of @vcpus failed for the # has not been changed. Otherwise,
# reason returned. Guest state has not been changed. # - Error:
# Otherwise, # processing the first node of @vcpus failed for the
# - < length(@vcpus): more than zero initial nodes have been processed, # reason returned. Guest state has not been changed.
# but not the entire @vcpus list. Guest state has # Otherwise,
# changed accordingly. To retrieve the error # - < length(@vcpus):
# (assuming it persists), repeat the call with the # more than zero initial nodes have been processed,
# successfully processed initial sublist removed. # but not the entire @vcpus list. Guest state has
# Otherwise, # changed accordingly. To retrieve the error
# - length(@vcpus): call successful. # (assuming it persists), repeat the call with the
# successfully processed initial sublist removed.
# Otherwise,
# - length(@vcpus):
# call successful.
# #
# Since: 1.5 # Since: 1.5
## ##
@ -1182,35 +1190,35 @@
# @GuestOSInfo: # @GuestOSInfo:
# #
# @kernel-release: # @kernel-release:
# * POSIX: release field returned by uname(2) # * POSIX: release field returned by uname(2)
# * Windows: build number of the OS # * Windows: build number of the OS
# @kernel-version: # @kernel-version:
# * POSIX: version field returned by uname(2) # * POSIX: version field returned by uname(2)
# * Windows: version number of the OS # * Windows: version number of the OS
# @machine: # @machine:
# * POSIX: machine field returned by uname(2) # * POSIX: machine field returned by uname(2)
# * Windows: one of x86, x86_64, arm, ia64 # * Windows: one of x86, x86_64, arm, ia64
# @id: # @id:
# * POSIX: as defined by os-release(5) # * POSIX: as defined by os-release(5)
# * Windows: contains string "mswindows" # * Windows: contains string "mswindows"
# @name: # @name:
# * POSIX: as defined by os-release(5) # * POSIX: as defined by os-release(5)
# * Windows: contains string "Microsoft Windows" # * Windows: contains string "Microsoft Windows"
# @pretty-name: # @pretty-name:
# * POSIX: as defined by os-release(5) # * POSIX: as defined by os-release(5)
# * Windows: product name, e.g. "Microsoft Windows 10 Enterprise" # * Windows: product name, e.g. "Microsoft Windows 10 Enterprise"
# @version: # @version:
# * POSIX: as defined by os-release(5) # * POSIX: as defined by os-release(5)
# * Windows: long version string, e.g. "Microsoft Windows Server 2008" # * Windows: long version string, e.g. "Microsoft Windows Server 2008"
# @version-id: # @version-id:
# * POSIX: as defined by os-release(5) # * POSIX: as defined by os-release(5)
# * Windows: short version identifier, e.g. "7" or "20012r2" # * Windows: short version identifier, e.g. "7" or "20012r2"
# @variant: # @variant:
# * POSIX: as defined by os-release(5) # * POSIX: as defined by os-release(5)
# * Windows: contains string "server" or "client" # * Windows: contains string "server" or "client"
# @variant-id: # @variant-id:
# * POSIX: as defined by os-release(5) # * POSIX: as defined by os-release(5)
# * Windows: contains string "server" or "client" # * Windows: contains string "server" or "client"
# #
# Notes: # Notes:
# #