qapi: Correct documentation indentation and whitespace

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240322140910.328840-12-armbru@redhat.com>
[Add a previous patch's stray hunk]
This commit is contained in:
Markus Armbruster
2024-03-22 15:09:09 +01:00
parent 209e64d9ed
commit 5305a4eeb8
10 changed files with 51 additions and 56 deletions

View File

@ -2593,27 +2593,27 @@
# #
# @bps_max_length: maximum length of the @bps_max burst period, in # @bps_max_length: maximum length of the @bps_max burst period, in
# seconds. It must only be set if @bps_max is set as well. # seconds. It must only be set if @bps_max is set as well.
# Defaults to 1. (Since 2.6) # Defaults to 1. (Since 2.6)
# #
# @bps_rd_max_length: maximum length of the @bps_rd_max burst period, # @bps_rd_max_length: maximum length of the @bps_rd_max burst period,
# in seconds. It must only be set if @bps_rd_max is set as well. # in seconds. It must only be set if @bps_rd_max is set as well.
# Defaults to 1. (Since 2.6) # Defaults to 1. (Since 2.6)
# #
# @bps_wr_max_length: maximum length of the @bps_wr_max burst period, # @bps_wr_max_length: maximum length of the @bps_wr_max burst period,
# in seconds. It must only be set if @bps_wr_max is set as well. # in seconds. It must only be set if @bps_wr_max is set as well.
# Defaults to 1. (Since 2.6) # Defaults to 1. (Since 2.6)
# #
# @iops_max_length: maximum length of the @iops burst period, in # @iops_max_length: maximum length of the @iops burst period, in
# seconds. It must only be set if @iops_max is set as well. # seconds. It must only be set if @iops_max is set as well.
# Defaults to 1. (Since 2.6) # Defaults to 1. (Since 2.6)
# #
# @iops_rd_max_length: maximum length of the @iops_rd_max burst # @iops_rd_max_length: maximum length of the @iops_rd_max burst
# period, in seconds. It must only be set if @iops_rd_max is set # period, in seconds. It must only be set if @iops_rd_max is set
# as well. Defaults to 1. (Since 2.6) # as well. Defaults to 1. (Since 2.6)
# #
# @iops_wr_max_length: maximum length of the @iops_wr_max burst # @iops_wr_max_length: maximum length of the @iops_wr_max burst
# period, in seconds. It must only be set if @iops_wr_max is set # period, in seconds. It must only be set if @iops_wr_max is set
# as well. Defaults to 1. (Since 2.6) # as well. Defaults to 1. (Since 2.6)
# #
# @iops_size: an I/O size in bytes (Since 1.7) # @iops_size: an I/O size in bytes (Since 1.7)
# #
@ -3354,7 +3354,7 @@
# decryption key (since 2.6). Mandatory except when doing a # decryption key (since 2.6). Mandatory except when doing a
# metadata-only probe of the image. # metadata-only probe of the image.
# #
# @header: block device holding a detached LUKS header. (since 9.0) # @header: block device holding a detached LUKS header. (since 9.0)
# #
# Since: 2.9 # Since: 2.9
## ##
@ -4619,7 +4619,7 @@
# seconds for copy-before-write operation. When a timeout occurs, # seconds for copy-before-write operation. When a timeout occurs,
# the respective copy-before-write operation will fail, and the # the respective copy-before-write operation will fail, and the
# @on-cbw-error parameter will decide how this failure is handled. # @on-cbw-error parameter will decide how this failure is handled.
# Default 0. (Since 7.1) # Default 0. (Since 7.1)
# #
# Since: 6.2 # Since: 6.2
## ##
@ -4953,9 +4953,9 @@
# Driver specific image creation options for LUKS. # Driver specific image creation options for LUKS.
# #
# @file: Node to create the image format on, mandatory except when # @file: Node to create the image format on, mandatory except when
# 'preallocation' is not requested # 'preallocation' is not requested
# #
# @header: Block device holding a detached LUKS header. (since 9.0) # @header: Block device holding a detached LUKS header. (since 9.0)
# #
# @size: Size of the virtual disk in bytes # @size: Size of the virtual disk in bytes
# #

View File

@ -48,15 +48,15 @@
# #
# @sha1: SHA-1. Should not be used in any new code, legacy compat only # @sha1: SHA-1. Should not be used in any new code, legacy compat only
# #
# @sha224: SHA-224. (since 2.7) # @sha224: SHA-224. (since 2.7)
# #
# @sha256: SHA-256. Current recommended strong hash. # @sha256: SHA-256. Current recommended strong hash.
# #
# @sha384: SHA-384. (since 2.7) # @sha384: SHA-384. (since 2.7)
# #
# @sha512: SHA-512. (since 2.7) # @sha512: SHA-512. (since 2.7)
# #
# @ripemd160: RIPEMD-160. (since 2.7) # @ripemd160: RIPEMD-160. (since 2.7)
# #
# Since: 2.6 # Since: 2.6
## ##
@ -224,9 +224,9 @@
# 'sha256' # 'sha256'
# #
# @iter-time: number of milliseconds to spend in PBKDF passphrase # @iter-time: number of milliseconds to spend in PBKDF passphrase
# processing. Currently defaults to 2000. (since 2.8) # processing. Currently defaults to 2000. (since 2.8)
# #
# @detached-header: create a detached LUKS header. (since 9.0) # @detached-header: create a detached LUKS header. (since 9.0)
# #
# Since: 2.6 # Since: 2.6
## ##

View File

@ -77,7 +77,7 @@
# #
# @detach: if true, QMP will return immediately rather than waiting # @detach: if true, QMP will return immediately rather than waiting
# for the dump to finish. The user can track progress using # for the dump to finish. The user can track progress using
# "query-dump". (since 2.6). # "query-dump". (since 2.6).
# #
# @begin: if specified, the starting physical address. # @begin: if specified, the starting physical address.
# #

View File

@ -920,7 +920,7 @@
# @socket-id: socket number within parent container the CPU belongs to # @socket-id: socket number within parent container the CPU belongs to
# #
# @die-id: die number within the parent container the CPU belongs to # @die-id: die number within the parent container the CPU belongs to
# (since 4.1) # (since 4.1)
# #
# @cluster-id: cluster number within the parent container the CPU # @cluster-id: cluster number within the parent container the CPU
# belongs to (since 7.1) # belongs to (since 7.1)
@ -1190,7 +1190,6 @@
# <- { "event": "HV_BALLOON_STATUS_REPORT", # <- { "event": "HV_BALLOON_STATUS_REPORT",
# "data": { "committed": 816640000, "available": 3333054464 }, # "data": { "committed": 816640000, "available": 3333054464 },
# "timestamp": { "seconds": 1600295492, "microseconds": 661044 } } # "timestamp": { "seconds": 1600295492, "microseconds": 661044 } }
#
## ##
{ 'event': 'HV_BALLOON_STATUS_REPORT', { 'event': 'HV_BALLOON_STATUS_REPORT',
'data': 'HvBalloonInfo' } 'data': 'HvBalloonInfo' }

View File

@ -68,7 +68,6 @@
# @deprecated: Member @skipped is always zero since 1.5.3 # @deprecated: Member @skipped is always zero since 1.5.3
# #
# Since: 0.14 # Since: 0.14
#
## ##
{ 'struct': 'MigrationStats', { 'struct': 'MigrationStats',
'data': {'transferred': 'int', 'remaining': 'int', 'total': 'int' , 'data': {'transferred': 'int', 'remaining': 'int', 'total': 'int' ,
@ -230,7 +229,7 @@
# throttled during auto-converge. This is only present when # throttled during auto-converge. This is only present when
# auto-converge has started throttling guest cpus. (Since 2.7) # auto-converge has started throttling guest cpus. (Since 2.7)
# #
# @error-desc: the human readable error description string. Clients # @error-desc: the human readable error description string. Clients
# should not attempt to parse the error strings. (Since 2.7) # should not attempt to parse the error strings. (Since 2.7)
# #
# @postcopy-blocktime: total time when all vCPU were blocked during # @postcopy-blocktime: total time when all vCPU were blocked during
@ -638,7 +637,7 @@
## ##
# @MigMode: # @MigMode:
# #
# @normal: the original form of migration. (since 8.2) # @normal: the original form of migration. (since 8.2)
# #
# @cpr-reboot: The migrate command stops the VM and saves state to the # @cpr-reboot: The migrate command stops the VM and saves state to the
# URI. After quitting QEMU, the user resumes by running QEMU # URI. After quitting QEMU, the user resumes by running QEMU
@ -781,15 +780,15 @@
# #
# @throttle-trigger-threshold: The ratio of bytes_dirty_period and # @throttle-trigger-threshold: The ratio of bytes_dirty_period and
# bytes_xfer_period to trigger throttling. It is expressed as # bytes_xfer_period to trigger throttling. It is expressed as
# percentage. The default value is 50. (Since 5.0) # percentage. The default value is 50. (Since 5.0)
# #
# @cpu-throttle-initial: Initial percentage of time guest cpus are # @cpu-throttle-initial: Initial percentage of time guest cpus are
# throttled when migration auto-converge is activated. The # throttled when migration auto-converge is activated. The
# default value is 20. (Since 2.7) # default value is 20. (Since 2.7)
# #
# @cpu-throttle-increment: throttle percentage increase each time # @cpu-throttle-increment: throttle percentage increase each time
# auto-converge detects that migration is not making progress. # auto-converge detects that migration is not making progress.
# The default value is 10. (Since 2.7) # The default value is 10. (Since 2.7)
# #
# @cpu-throttle-tailslow: Make CPU throttling slower at tail stage At # @cpu-throttle-tailslow: Make CPU throttling slower at tail stage At
# the tail stage of throttling, the Guest is very sensitive to CPU # the tail stage of throttling, the Guest is very sensitive to CPU
@ -877,13 +876,13 @@
# migration, the compression level is an integer between 0 and 9, # migration, the compression level is an integer between 0 and 9,
# where 0 means no compression, 1 means the best compression # where 0 means no compression, 1 means the best compression
# speed, and 9 means best compression ratio which will consume # speed, and 9 means best compression ratio which will consume
# more CPU. Defaults to 1. (Since 5.0) # more CPU. Defaults to 1. (Since 5.0)
# #
# @multifd-zstd-level: Set the compression level to be used in live # @multifd-zstd-level: Set the compression level to be used in live
# migration, the compression level is an integer between 0 and 20, # migration, the compression level is an integer between 0 and 20,
# where 0 means no compression, 1 means the best compression # where 0 means no compression, 1 means the best compression
# speed, and 20 means best compression ratio which will consume # speed, and 20 means best compression ratio which will consume
# more CPU. Defaults to 1. (Since 5.0) # more CPU. Defaults to 1. (Since 5.0)
# #
# @block-bitmap-mapping: Maps block nodes and bitmaps on them to # @block-bitmap-mapping: Maps block nodes and bitmaps on them to
# aliases for the purpose of dirty bitmap migration. Such aliases # aliases for the purpose of dirty bitmap migration. Such aliases
@ -989,15 +988,15 @@
# #
# @throttle-trigger-threshold: The ratio of bytes_dirty_period and # @throttle-trigger-threshold: The ratio of bytes_dirty_period and
# bytes_xfer_period to trigger throttling. It is expressed as # bytes_xfer_period to trigger throttling. It is expressed as
# percentage. The default value is 50. (Since 5.0) # percentage. The default value is 50. (Since 5.0)
# #
# @cpu-throttle-initial: Initial percentage of time guest cpus are # @cpu-throttle-initial: Initial percentage of time guest cpus are
# throttled when migration auto-converge is activated. The # throttled when migration auto-converge is activated. The
# default value is 20. (Since 2.7) # default value is 20. (Since 2.7)
# #
# @cpu-throttle-increment: throttle percentage increase each time # @cpu-throttle-increment: throttle percentage increase each time
# auto-converge detects that migration is not making progress. # auto-converge detects that migration is not making progress.
# The default value is 10. (Since 2.7) # The default value is 10. (Since 2.7)
# #
# @cpu-throttle-tailslow: Make CPU throttling slower at tail stage At # @cpu-throttle-tailslow: Make CPU throttling slower at tail stage At
# the tail stage of throttling, the Guest is very sensitive to CPU # the tail stage of throttling, the Guest is very sensitive to CPU
@ -1085,13 +1084,13 @@
# migration, the compression level is an integer between 0 and 9, # migration, the compression level is an integer between 0 and 9,
# where 0 means no compression, 1 means the best compression # where 0 means no compression, 1 means the best compression
# speed, and 9 means best compression ratio which will consume # speed, and 9 means best compression ratio which will consume
# more CPU. Defaults to 1. (Since 5.0) # more CPU. Defaults to 1. (Since 5.0)
# #
# @multifd-zstd-level: Set the compression level to be used in live # @multifd-zstd-level: Set the compression level to be used in live
# migration, the compression level is an integer between 0 and 20, # migration, the compression level is an integer between 0 and 20,
# where 0 means no compression, 1 means the best compression # where 0 means no compression, 1 means the best compression
# speed, and 20 means best compression ratio which will consume # speed, and 20 means best compression ratio which will consume
# more CPU. Defaults to 1. (Since 5.0) # more CPU. Defaults to 1. (Since 5.0)
# #
# @block-bitmap-mapping: Maps block nodes and bitmaps on them to # @block-bitmap-mapping: Maps block nodes and bitmaps on them to
# aliases for the purpose of dirty bitmap migration. Such aliases # aliases for the purpose of dirty bitmap migration. Such aliases
@ -1225,7 +1224,7 @@
# #
# @throttle-trigger-threshold: The ratio of bytes_dirty_period and # @throttle-trigger-threshold: The ratio of bytes_dirty_period and
# bytes_xfer_period to trigger throttling. It is expressed as # bytes_xfer_period to trigger throttling. It is expressed as
# percentage. The default value is 50. (Since 5.0) # percentage. The default value is 50. (Since 5.0)
# #
# @cpu-throttle-initial: Initial percentage of time guest cpus are # @cpu-throttle-initial: Initial percentage of time guest cpus are
# throttled when migration auto-converge is activated. (Since # throttled when migration auto-converge is activated. (Since
@ -1317,13 +1316,13 @@
# migration, the compression level is an integer between 0 and 9, # migration, the compression level is an integer between 0 and 9,
# where 0 means no compression, 1 means the best compression # where 0 means no compression, 1 means the best compression
# speed, and 9 means best compression ratio which will consume # speed, and 9 means best compression ratio which will consume
# more CPU. Defaults to 1. (Since 5.0) # more CPU. Defaults to 1. (Since 5.0)
# #
# @multifd-zstd-level: Set the compression level to be used in live # @multifd-zstd-level: Set the compression level to be used in live
# migration, the compression level is an integer between 0 and 20, # migration, the compression level is an integer between 0 and 20,
# where 0 means no compression, 1 means the best compression # where 0 means no compression, 1 means the best compression
# speed, and 20 means best compression ratio which will consume # speed, and 20 means best compression ratio which will consume
# more CPU. Defaults to 1. (Since 5.0) # more CPU. Defaults to 1. (Since 5.0)
# #
# @block-bitmap-mapping: Maps block nodes and bitmaps on them to # @block-bitmap-mapping: Maps block nodes and bitmaps on them to
# aliases for the purpose of dirty bitmap migration. Such aliases # aliases for the purpose of dirty bitmap migration. Such aliases
@ -1750,7 +1749,7 @@
# @detach: this argument exists only for compatibility reasons and is # @detach: this argument exists only for compatibility reasons and is
# ignored by QEMU # ignored by QEMU
# #
# @resume: resume one paused migration, default "off". (since 3.0) # @resume: resume one paused migration, default "off". (since 3.0)
# #
# Features: # Features:
# #
@ -2176,7 +2175,6 @@
# @millisecond: value is in milliseconds # @millisecond: value is in milliseconds
# #
# Since: 8.2 # Since: 8.2
#
## ##
{ 'enum': 'TimeUnit', { 'enum': 'TimeUnit',
'data': ['second', 'millisecond'] } 'data': ['second', 'millisecond'] }
@ -2258,7 +2256,7 @@
# will not increase dirty page rate anymore. # will not increase dirty page rate anymore.
# #
# @calc-time-unit: time unit in which @calc-time is specified. # @calc-time-unit: time unit in which @calc-time is specified.
# By default it is seconds. (Since 8.2) # By default it is seconds. (Since 8.2)
# #
# @sample-pages: number of sampled pages per each GiB of guest memory. # @sample-pages: number of sampled pages per each GiB of guest memory.
# Default value is 512. For 4KiB guest pages this corresponds to # Default value is 512. For 4KiB guest pages this corresponds to
@ -2295,7 +2293,7 @@
# Query results of the most recent invocation of @calc-dirty-rate. # Query results of the most recent invocation of @calc-dirty-rate.
# #
# @calc-time-unit: time unit in which to report calculation time. # @calc-time-unit: time unit in which to report calculation time.
# By default it is reported in seconds. (Since 8.2) # By default it is reported in seconds. (Since 8.2)
# #
# Since: 5.2 # Since: 5.2
# #

View File

@ -142,7 +142,7 @@
# option was passed on the command line. # option was passed on the command line.
# #
# In the "suspended" state, it will completely stop the VM and # In the "suspended" state, it will completely stop the VM and
# cause a transition to the "paused" state. (Since 9.0) # cause a transition to the "paused" state. (Since 9.0)
# #
# Example: # Example:
# #

View File

@ -649,14 +649,14 @@
# #
# @offset: the offset into the target file that the region starts at. # @offset: the offset into the target file that the region starts at.
# You can use this option to back multiple regions with a single # You can use this option to back multiple regions with a single
# file. Must be a multiple of the page size. # file. Must be a multiple of the page size.
# (default: 0) (since 8.1) # (default: 0) (since 8.1)
# #
# @discard-data: if true, the file contents can be destroyed when QEMU # @discard-data: if true, the file contents can be destroyed when QEMU
# exits, to avoid unnecessarily flushing data to the backing file. # exits, to avoid unnecessarily flushing data to the backing file.
# Note that @discard-data is only an optimization, and QEMU might # Note that @discard-data is only an optimization, and QEMU might
# not discard file contents if it aborts unexpectedly or is # not discard file contents if it aborts unexpectedly or is
# terminated using SIGKILL. (default: false) # terminated using SIGKILL. (default: false)
# #
# @mem-path: the path to either a shared memory or huge page # @mem-path: the path to either a shared memory or huge page
# filesystem mount # filesystem mount

View File

@ -91,7 +91,7 @@
# #
# @snapshot-load: A snapshot is being loaded by the record & replay # @snapshot-load: A snapshot is being loaded by the record & replay
# subsystem. This value is used only within QEMU. It doesn't # subsystem. This value is used only within QEMU. It doesn't
# occur in QMP. (since 7.2) # occur in QMP. (since 7.2)
## ##
{ 'enum': 'ShutdownCause', { 'enum': 'ShutdownCause',
# Beware, shutdown_caused_by_guest() depends on enumeration order # Beware, shutdown_caused_by_guest() depends on enumeration order
@ -109,7 +109,6 @@
# @status: the virtual machine @RunState # @status: the virtual machine @RunState
# #
# Since: 0.14 # Since: 0.14
#
## ##
{ 'struct': 'StatusInfo', { 'struct': 'StatusInfo',
'data': {'running': 'bool', 'data': {'running': 'bool',
@ -142,7 +141,7 @@
# @guest: If true, the shutdown was triggered by a guest request (such # @guest: If true, the shutdown was triggered by a guest request (such
# as a guest-initiated ACPI shutdown request or other # as a guest-initiated ACPI shutdown request or other
# hardware-specific action) rather than a host request (such as # hardware-specific action) rather than a host request (such as
# sending qemu a SIGINT). (since 2.10) # sending qemu a SIGINT). (since 2.10)
# #
# @reason: The @ShutdownCause which resulted in the SHUTDOWN. # @reason: The @ShutdownCause which resulted in the SHUTDOWN.
# (since 4.0) # (since 4.0)
@ -184,9 +183,9 @@
# @guest: If true, the reset was triggered by a guest request (such as # @guest: If true, the reset was triggered by a guest request (such as
# a guest-initiated ACPI reboot request or other hardware-specific # a guest-initiated ACPI reboot request or other hardware-specific
# action) rather than a host request (such as the QMP command # action) rather than a host request (such as the QMP command
# system_reset). (since 2.10) # system_reset). (since 2.10)
# #
# @reason: The @ShutdownCause of the RESET. (since 4.0) # @reason: The @ShutdownCause of the RESET. (since 4.0)
# #
# Since: 0.12 # Since: 0.12
# #

View File

@ -58,7 +58,7 @@
# @keep-alive: enable keep-alive when connecting to this socket. Not # @keep-alive: enable keep-alive when connecting to this socket. Not
# supported for passive sockets. (Since 4.2) # supported for passive sockets. (Since 4.2)
# #
# @mptcp: enable multi-path TCP. (Since 6.1) # @mptcp: enable multi-path TCP. (Since 6.1)
# #
# Since: 1.3 # Since: 1.3
## ##
@ -125,7 +125,6 @@
# Decimal file descriptors are permitted at startup or other # Decimal file descriptors are permitted at startup or other
# contexts where no monitor context is active. # contexts where no monitor context is active.
# #
#
# Since: 1.2 # Since: 1.2
## ##
{ 'struct': 'FdSocketAddress', { 'struct': 'FdSocketAddress',

View File

@ -181,7 +181,7 @@
# @head: head to use in case the device supports multiple heads. If # @head: head to use in case the device supports multiple heads. If
# this parameter is missing, head #0 will be used. Also note that # this parameter is missing, head #0 will be used. Also note that
# the head can only be specified in conjunction with the device # the head can only be specified in conjunction with the device
# ID. (Since 2.12) # ID. (Since 2.12)
# #
# @format: image format for screendump. (default: ppm) (Since 7.1) # @format: image format for screendump. (default: ppm) (Since 7.1)
# #
@ -303,7 +303,7 @@
# #
# @auth: the current authentication type used by the server # @auth: the current authentication type used by the server
# #
# - 'none' if no authentication is being used # - 'none' if no authentication is being used
# - 'spice' uses SASL or direct TLS authentication, depending on # - 'spice' uses SASL or direct TLS authentication, depending on
# command line options # command line options
# #
@ -1314,7 +1314,7 @@
# display device can notify the guest on window resizes # display device can notify the guest on window resizes
# (virtio-gpu) this will default to "on", assuming the guest will # (virtio-gpu) this will default to "on", assuming the guest will
# resize the display to match the window size then. Otherwise it # resize the display to match the window size then. Otherwise it
# defaults to "off". (Since 3.1) # defaults to "off". (Since 3.1)
# #
# @show-tabs: Display the tab bar for switching between the various # @show-tabs: Display the tab bar for switching between the various
# graphical interfaces (e.g. VGA and virtual console character # graphical interfaces (e.g. VGA and virtual console character
@ -1417,12 +1417,12 @@
# codes match their position on non-Mac keyboards and you can use # codes match their position on non-Mac keyboards and you can use
# Meta/Super and Alt where you expect them. (default: off) # Meta/Super and Alt where you expect them. (default: off)
# #
# @zoom-to-fit: Zoom guest display to fit into the host window. When # @zoom-to-fit: Zoom guest display to fit into the host window. When
# turned off the host window will be resized instead. Defaults to # turned off the host window will be resized instead. Defaults to
# "off". (Since 8.2) # "off". (Since 8.2)
# #
# @zoom-interpolation: Apply interpolation to smooth output when # @zoom-interpolation: Apply interpolation to smooth output when
# zoom-to-fit is enabled. Defaults to "off". (Since 9.0) # zoom-to-fit is enabled. Defaults to "off". (Since 9.0)
# #
# Since: 7.0 # Since: 7.0
## ##