From: Max Reitz <mreitz@redhat.com>
To: Alberto Garcia <berto@igalia.com>, qemu-block@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
Markus Armbruster <armbru@redhat.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Qemu-block] [RFC for-2.7 0/1] block/qapi: Add query-block-node-tree
Date: Wed, 30 Mar 2016 16:22:10 +0200 [thread overview]
Message-ID: <56FBE112.6090207@redhat.com> (raw)
In-Reply-To: <w51poucqgpp.fsf@maestria.local.igalia.com>
[-- Attachment #1.1: Type: text/plain, Size: 2046 bytes --]
On 30.03.2016 14:43, Alberto Garcia wrote:
> On Thu 24 Mar 2016 08:07:17 PM CET, Max Reitz wrote:
>> There are two reasons why I fear we may not want this:
>>
>> The first is that the node graph is more or less something internal to
>> qemu. Its actual structure may (and most probably will) change over
>> time. We do want to be able to let the user or management application
>> manage the graph in fine detail, but these modifications are something
>> that can be emulated by legacy handling code later if we decide they are
>> no longer in line with the internal graph that we'd like to have.
>>
>> However, if we emit the full graph with a command such as introduced
>> here, we can hardly change its outside appearance just to please legacy
>> applications. The output will change if the internal representation
>> changes.
>>
>> I don't personally think this is too bad as long as we clearly state
>> this in the command's description: That qemu is free to implicitly
>> create intermediate nodes the user did not explicitly specify, and that
>> the set of nodes thus created may change over time.
>
> ...but if the internal representation can change over time, then the
> user cannot rely on the output of this command, so what's the use?
> Stating that in the command description wouldn't solve anything.
That depends. If we know that qemu will never implicitly add anything
but single-parent-single-children filters into the chain and we state
so, that is something users can work around: If they encounter an
unknown node, they just skip down to its child.
Alternatively, we could define that for unknown nodes a user wants to
skip, they can walk down to the "file" child.
So if we state "We do with the graph whatever we want and you get no
guarantees whatsoever", that is indeed not very helpful. But if we can
give some guarantees, i.e. that qemu will never implicitly remove
user-defined nodes and how to behave in case an unknown node is
encountered, then it can still be of use.
Max
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2016-03-30 14:22 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-24 19:07 [Qemu-devel] [RFC for-2.7 0/1] block/qapi: Add query-block-node-tree Max Reitz
2016-03-24 19:07 ` [Qemu-devel] [RFC for-2.7 1/1] " Max Reitz
2016-03-25 2:50 ` Wen Congyang
2016-03-26 16:27 ` Max Reitz
2016-03-25 6:54 ` Wen Congyang
2016-03-26 16:33 ` Max Reitz
2016-03-28 15:25 ` Eric Blake
2016-03-29 15:29 ` Max Reitz
2016-03-29 15:39 ` Eric Blake
2016-03-29 15:43 ` Max Reitz
2016-03-29 15:51 ` [Qemu-devel] [RFC for-2.7 0/1] " Kevin Wolf
2016-03-29 15:56 ` Max Reitz
2016-03-29 16:09 ` Kevin Wolf
2016-03-29 16:10 ` Max Reitz
2016-03-30 12:43 ` [Qemu-devel] [Qemu-block] " Alberto Garcia
2016-03-30 14:22 ` Max Reitz [this message]
2016-03-31 9:49 ` Stefan Hajnoczi
2016-04-01 15:30 ` Max Reitz
2016-04-04 12:35 ` Stefan Hajnoczi
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=56FBE112.6090207@redhat.com \
--to=mreitz@redhat.com \
--cc=armbru@redhat.com \
--cc=berto@igalia.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--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).