From: Kevin Wolf <kwolf@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: qemu-block@nongnu.org, pkrempa@redhat.com, mreitz@redhat.com,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH for-3.0 1/3] block/qapi: Add 'qdev' field to query-blockstats result
Date: Fri, 27 Jul 2018 17:58:54 +0200 [thread overview]
Message-ID: <20180727155854.GF4355@localhost.localdomain> (raw)
In-Reply-To: <7721290c-94f0-d203-10c0-8aa586c54600@redhat.com>
Am 27.07.2018 um 17:07 hat Eric Blake geschrieben:
> On 07/27/2018 09:15 AM, Kevin Wolf wrote:
> > Like for query-block, the client needs to identify which BlockBackend
> > the returned data is for. Anonymous BlockBackends are identified by the
> > device model they are attached to. Add a 'qdev' field that contains the
> > qdev ID or QOM path of the attached device model.
> >
> > Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> > ---
>
> > @@ -879,7 +882,7 @@
> > # Since: 0.14.0
> > ##
> > { 'struct': 'BlockStats',
> > - 'data': {'*device': 'str', '*node-name': 'str',
> > + 'data': {'*device': 'str', '*qdev': 'str', '*node-name': 'str',
> > 'stats': 'BlockDeviceStats',
> > '*parent': 'BlockStats',
> > '*backing': 'BlockStats'} }
>
> Can we also update the example under query-blockstats a few lines later to
> show the added field?
I'll add the qdev field, but the example is hopelessly outdated anyway.
Sounds like something for another patch.
> At any rate, it looks helpful. Although this is borderline new feature, it
> resolves a need identified in libvirt using -blockdev, and so I can live
> with it as a 3.0 bugfix.
>
> Reviewed-by: Eric Blake <eblake@redhat.com>
Thanks.
Kevin
next prev parent reply other threads:[~2018-07-27 15:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-27 14:15 [Qemu-devel] [PATCH for-3.0 0/3] Fix query-blockstats with -blockdev Kevin Wolf
2018-07-27 14:15 ` [Qemu-devel] [PATCH for-3.0 1/3] block/qapi: Add 'qdev' field to query-blockstats result Kevin Wolf
2018-07-27 15:07 ` Eric Blake
2018-07-27 15:58 ` Kevin Wolf [this message]
2018-07-30 11:25 ` Peter Krempa
2018-07-27 14:15 ` [Qemu-devel] [PATCH for-3.0 2/3] block/qapi: Include anonymous BBs in query-blockstats Kevin Wolf
2018-07-27 15:08 ` Eric Blake
2018-07-27 14:15 ` [Qemu-devel] [PATCH for-3.0 3/3] qemu-iotests: Test query-blockstats with -drive and -blockdev Kevin Wolf
2018-07-27 15:12 ` Eric Blake
2018-07-27 16:01 ` Kevin Wolf
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=20180727155854.GF4355@localhost.localdomain \
--to=kwolf@redhat.com \
--cc=eblake@redhat.com \
--cc=mreitz@redhat.com \
--cc=pkrempa@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 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.