From: Kevin Wolf <kwolf@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: pkrempa@redhat.com, qemu-devel@nongnu.org
Subject: Re: [PATCH v4 4/4] qapi: Allow introspecting fix for savevm's cooperation with blockdev
Date: Mon, 14 Oct 2019 12:06:53 +0200 [thread overview]
Message-ID: <20191014100653.GE7173@localhost.localdomain> (raw)
In-Reply-To: <20191011085027.28606-5-armbru@redhat.com>
Am 11.10.2019 um 10:50 hat Markus Armbruster geschrieben:
> From: Peter Krempa <pkrempa@redhat.com>
>
> 'savevm' was buggy as it considered all monitor-owned block device
> nodes for snapshot. With the introduction of -blockdev, the common
> usage made all nodes including protocol and backing file nodes be
> monitor-owned and thus considered for snapshot.
>
> This is a problem since the 'file' protocol nodes can't have internal
> snapshots and it does not make sense to take snapshot of nodes
> representing backing files.
>
> This was fixed by commit 05f4aced658a02b02. Clients need to be able to
> detect whether this fix is present.
>
> Since savevm does not have an QMP alternative, add the feature for the
> 'human-monitor-command' backdoor which is used to call this command in
> modern use.
>
> Signed-off-by: Peter Krempa <pkrempa@redhat.com>
> Reviewed-by: Markus Armbruster <armbru@redhat.com>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> qapi/misc.json | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/qapi/misc.json b/qapi/misc.json
> index 6bd11f50e6..35dca86ce7 100644
> --- a/qapi/misc.json
> +++ b/qapi/misc.json
> @@ -1020,6 +1020,13 @@
> #
> # @cpu-index: The CPU to use for commands that require an implicit CPU
> #
> +# Features:
> +
I think you want a # in this empty line.
> +# @savevm-monitor-nodes: If present, HMP command savevm only snapshots
> +# monitor-owned nodes if they have no parents.
> +# This allows the use of 'savevm' with
> +# -blockdev. (since 4.2)
> +#
> # Returns: the output of the command as a string
> #
> # Since: 0.14.0
> @@ -1047,7 +1054,8 @@
> ##
> { 'command': 'human-monitor-command',
> 'data': {'command-line': 'str', '*cpu-index': 'int'},
> - 'returns': 'str' }
> + 'returns': 'str',
> + 'features': [ 'savevm-monitor-nodes' ] }
With this fixed:
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
next prev parent reply other threads:[~2019-10-14 10:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-11 8:50 [PATCH v4 0/4] qapi: Add detection for the 'savevm' fix for blockdev Markus Armbruster
2019-10-11 8:50 ` [PATCH v4 1/4] tests/qapi-schema: Tidy up test output indentation Markus Armbruster
2019-10-11 9:07 ` Peter Krempa
2019-10-11 8:50 ` [PATCH v4 2/4] qapi: Add feature flags to commands in qapi Markus Armbruster
2019-10-14 12:23 ` Markus Armbruster
2019-10-11 8:50 ` [PATCH v4 3/4] tests: qapi: Test 'features' of commands Markus Armbruster
2019-10-15 6:51 ` Markus Armbruster
2019-10-11 8:50 ` [PATCH v4 4/4] qapi: Allow introspecting fix for savevm's cooperation with blockdev Markus Armbruster
2019-10-14 10:06 ` Kevin Wolf [this message]
2019-10-14 12:16 ` Markus Armbruster
2019-10-11 9:10 ` [PATCH v4 0/4] qapi: Add detection for the 'savevm' fix for blockdev Peter Krempa
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=20191014100653.GE7173@localhost.localdomain \
--to=kwolf@redhat.com \
--cc=armbru@redhat.com \
--cc=pkrempa@redhat.com \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).