All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: John Snow <jsnow@redhat.com>
Cc: qemu-devel@nongnu.org, "Michael Roth" <michael.roth@amd.com>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	"Kashyap Chamarthy" <kchamart@redhat.com>,
	"Kevin Wolf" <kwolf@redhat.com>,
	"Michael Tokarev" <mjt@tls.msk.ru>,
	"Hanna Reitz" <hreitz@redhat.com>,
	"Stefano Garzarella" <sgarzare@redhat.com>,
	"Jason Wang" <jasowangio@gmail.com>,
	"Zhao Liu" <zhao1.liu@intel.com>,
	"Kostiantyn Kostiuk" <kkostiuk@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>,
	qemu-block@nongnu.org, qemu-trivial@nongnu.org,
	"Laurent Vivier" <laurent@vivier.eu>,
	"Eric Blake" <eblake@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Pierrick Bouvier" <pierrick.bouvier@oss.qualcomm.com>
Subject: Re: [PATCH 6/9] qapi: split intros for qga/qapi-schema.json
Date: Tue, 22 Sep 2026 17:21:47 +0200	[thread overview]
Message-ID: <87mrt92tx0.fsf@pond.sub.org> (raw)
In-Reply-To: <20260921205147.1857168-7-jsnow@redhat.com> (John Snow's message of "Mon, 21 Sep 2026 16:51:44 -0400")

John Snow <jsnow@redhat.com> writes:

> These intro section conversions all create a new insertion point that
> follow the introduction, but precede what now constitutes the details
> text. Like other intro section conversions, the details text will be
> moved en-masse in a later patch.
>
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
>  qga/qapi-schema.json | 61 +++++++++++++++++++-------------------------
>  1 file changed, 26 insertions(+), 35 deletions(-)
>
> diff --git a/qga/qapi-schema.json b/qga/qapi-schema.json
> index 19b0958b84e..05fe4ea484d 100644
> --- a/qga/qapi-schema.json
> +++ b/qga/qapi-schema.json
> @@ -48,9 +48,8 @@
>  
>  ##
>  # @guest-sync-delimited:
> -#
> -# Echo back a unique integer value, and prepend to response a leading
> -# sentinel byte (0xFF) the client can check scan for.
> +#     Echo back a unique integer value, and prepend to response a
> +#     leading sentinel byte (0xFF) the client can check scan for.
>  #
>  # This is used by clients talking to the guest agent over the wire to
>  # ensure the stream is in sync and doesn't contain stale data from
> @@ -83,8 +82,7 @@
>  
>  ##
>  # @guest-sync:
> -#
> -# Echo back a unique integer value
> +#     Echo back a unique integer value
>  #
>  # This is used by clients talking to the guest agent over the wire to
>  # ensure the stream is in sync and doesn't contain stale data from
> @@ -140,8 +138,7 @@
>  
>  ##
>  # @guest-set-time:
> -#
> -# Set guest time.
> +#     Set guest time.
>  #
>  # When a guest is paused or migrated to a file then loaded from that
>  # file, the guest OS has no idea that there was a big gap in the time.
> @@ -415,14 +412,14 @@
>  
>  ##
>  # @guest-fsfreeze-freeze:
> +#     Sync and freeze all freezable, local guest filesystems.  If this
> +#     command succeeded, you may call `guest-fsfreeze-thaw` later to
> +#     unfreeze.
>  #
> -# Sync and freeze all freezable, local guest filesystems.  If this
> -# command succeeded, you may call `guest-fsfreeze-thaw` later to
> -# unfreeze.
> -#
> -# On error, all filesystems will be thawed.  If no filesystems are
> -# frozen as a result of this call, then `guest-fsfreeze-status` will
> -# remain "thawed" and calling `guest-fsfreeze-thaw` is not necessary.
> +#     On error, all filesystems will be thawed.  If no filesystems are
> +#     frozen as a result of this call, then `guest-fsfreeze-status`
> +#     will remain "thawed" and calling `guest-fsfreeze-thaw` is not
> +#     necessary.

More of what I noted in earlier series:

3. Review and improve doc comments where the intro talks about failure
modes.

Moving on.

>  #
>  # Returns: Number of file systems currently frozen.
>  #
> @@ -438,11 +435,10 @@
>  
>  ##
>  # @guest-fsfreeze-freeze-list:
> +#     Sync and freeze specified guest filesystems.  See also
> +#     `guest-fsfreeze-freeze`.
>  #
> -# Sync and freeze specified guest filesystems.  See also
> -# `guest-fsfreeze-freeze`.
> -#
> -# On error, all filesystems will be thawed.
> +#     On error, all filesystems will be thawed.

Likewise.

>  #
>  # @mountpoints: an array of mountpoints of filesystems to be frozen.
>  #     If omitted, every mounted filesystem is frozen.  Invalid mount
> @@ -528,8 +524,7 @@
>  
>  ##
>  # @guest-suspend-disk:
> -#
> -# Suspend guest to disk.
> +#     Suspend guest to disk.
>  #
>  # This command attempts to suspend the guest using three strategies,
>  # in this order:
> @@ -558,8 +553,7 @@
>  
>  ##
>  # @guest-suspend-ram:
> -#
> -# Suspend guest to ram.
> +#     Suspend guest to ram.
>  #
>  # This command attempts to suspend the guest using three strategies,
>  # in this order:
> @@ -595,8 +589,7 @@
>  
>  ##
>  # @guest-suspend-hybrid:
> -#
> -# Save guest state to disk and suspend to ram.
> +#     Save guest state to disk and suspend to ram.
>  #
>  # This command attempts to suspend the guest by executing, in this
>  # order:
> @@ -746,10 +739,9 @@
>  
>  ##
>  # @guest-get-vcpus:
> +#     Retrieve the list of the guest's logical processors.
>  #
> -# Retrieve the list of the guest's logical processors.
> -#
> -# This is a read-only operation.
> +#     This is a read-only operation.

If a command is called "get something", it's certainly not supposed to
change something!

Not this patch's problem, moving on...

>  #
>  # Returns: The list of all VCPUs the guest knows about.  Each VCPU is
>  #     put on the list exactly once, but their order is unspecified.
> @@ -1106,10 +1098,9 @@
>  
>  ##
>  # @guest-get-memory-blocks:
> +#     Retrieve the list of the guest's memory blocks.
>  #
> -# Retrieve the list of the guest's memory blocks.
> -#
> -# This is a read-only operation.
> +#     This is a read-only operation.

Likewise.

>  #
>  # Returns: The list of all memory blocks the guest knows about.  Each
>  #     memory block is put on the list exactly once, but their order is
> @@ -1346,12 +1337,12 @@
>  
>  ##
>  # @guest-get-host-name:
> +#     Return a name for the machine.
>  #
> -# Return a name for the machine.
> -#
> -# The returned name is not necessarily a fully-qualified domain name,
> -# or even present in DNS or some other name service at all.  It need
> -# not even be unique on your local network or site, but usually it is.
> +#     The returned name is not necessarily a fully-qualified domain
> +#     name, or even present in DNS or some other name service at all.
> +#     It need not even be unique on your local network or site, but
> +#     usually it is.

This should perhaps be worked into Returns: ...  Not this patch's
problem, moving on...

>  #
>  # Returns: the host name of the machine
>  #



  reply	other threads:[~2026-09-22 15:22 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-21 20:51 [PATCH 0/9] qapi: convert intros for qga, firmware, etc John Snow
2026-09-21 20:51 ` [PATCH 1/9] qapi: convert remaining simple sections John Snow
2026-09-22 14:34   ` Markus Armbruster
2026-09-21 20:51 ` [PATCH 3/9] qapi: convert trivial intros for qga/qapi-schema.json John Snow
2026-09-21 20:51 ` [PATCH 4/9] qapi: convert simple " John Snow
2026-09-23  6:47   ` Markus Armbruster
2026-09-21 20:51 ` [PATCH 6/9] qapi: split " John Snow
2026-09-22 15:21   ` Markus Armbruster [this message]
2026-09-21 20:51 ` [PATCH 7/9] qapi: convert intro sections for docs/interop/firmware.json John Snow
2026-09-22 15:04   ` Markus Armbruster
2026-09-22 17:41     ` John Snow
2026-09-21 20:51 ` [PATCH 8/9] qapi: convert intro sections for docs/interop/vhost-user.json John Snow
     [not found] ` <20260921205147.1857168-6-jsnow@redhat.com>
2026-09-22 14:53   ` [PATCH 5/9] qapi: split intros at natural cutoff points for qga/qapi-schema.json Markus Armbruster
2026-09-22 17:33     ` John Snow
     [not found] ` <20260921205147.1857168-3-jsnow@redhat.com>
2026-09-22 17:05   ` [PATCH 2/9] qapi: convert intro sections for unit tests Markus Armbruster
2026-09-22 17:29     ` John Snow
2026-09-23  6:35       ` Markus Armbruster
     [not found] ` <20260921205147.1857168-10-jsnow@redhat.com>
2026-09-22 17:10   ` [PATCH 9/9] tests/qapi: generate output in source order Markus Armbruster
2026-09-22 17:46     ` John Snow
2026-09-23  6:32       ` Markus Armbruster
2026-09-22 17:47 ` [PATCH 0/9] qapi: convert intros for qga, firmware, etc John Snow
2026-09-22 19:48   ` Markus Armbruster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mrt92tx0.fsf@pond.sub.org \
    --to=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=eblake@redhat.com \
    --cc=hreitz@redhat.com \
    --cc=jasowangio@gmail.com \
    --cc=jsnow@redhat.com \
    --cc=kchamart@redhat.com \
    --cc=kkostiuk@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=laurent@vivier.eu \
    --cc=michael.roth@amd.com \
    --cc=mjt@tls.msk.ru \
    --cc=mst@redhat.com \
    --cc=philmd@oss.qualcomm.com \
    --cc=pierrick.bouvier@oss.qualcomm.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=sgarzare@redhat.com \
    --cc=zhao1.liu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.