From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fj58x-0007GR-Ca for qemu-devel@nongnu.org; Fri, 27 Jul 2018 11:59:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fj58w-00078o-Mj for qemu-devel@nongnu.org; Fri, 27 Jul 2018 11:59:03 -0400 Date: Fri, 27 Jul 2018 17:58:54 +0200 From: Kevin Wolf Message-ID: <20180727155854.GF4355@localhost.localdomain> References: <20180727141539.506-1-kwolf@redhat.com> <20180727141539.506-2-kwolf@redhat.com> <7721290c-94f0-d203-10c0-8aa586c54600@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7721290c-94f0-d203-10c0-8aa586c54600@redhat.com> Subject: Re: [Qemu-devel] [PATCH for-3.0 1/3] block/qapi: Add 'qdev' field to query-blockstats result List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-block@nongnu.org, pkrempa@redhat.com, mreitz@redhat.com, qemu-devel@nongnu.org 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 > > --- > > > @@ -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 Thanks. Kevin