Received: from eggs.gnu.org ([2001:4830:134:3::10]:32883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZV3vo-0001dV-3a for qemu-devel@nongnu.org; Thu, 27 Aug 2015 16:37:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZV3vc-0005Hd-By for qemu-devel@nongnu.org; Thu, 27 Aug 2015 16:37:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZV3vc-0005HY-58 for qemu-devel@nongnu.org; Thu, 27 Aug 2015 16:37:44 -0400 Date: Thu, 27 Aug 2015 16:37:40 -0400 From: Jeff Cody Message-ID: <20150827203740.GN11016@localhost.localdomain> References: <37557843-A1BA-4822-9933-B0B8AD588C90@gmail.com> <55DF1884.2030608@redhat.com> <20150827144253.GX24486@redhat.com> <20150827154057.GE2669@localhost.localdomain> <068B4976-968C-45A3-9219-77FB600BC257@gmail.com> <20150827160217.GA24486@redhat.com> <20150827190843.GM11016@localhost.localdomain> <55DF64AC.30305@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55DF64AC.30305@redhat.com> Subject: Re: [Qemu-devel] Should we auto-generate IDs? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Kevin Wolf , Markus Armbruster , qemu-devel qemu-devel , Programmingkid , Paolo Bonzini , jsnow@redhat.com, Andreas =?iso-8859-1?Q?F=E4rber?= On Thu, Aug 27, 2015 at 01:27:40PM -0600, Eric Blake wrote: > On 08/27/2015 01:08 PM, Jeff Cody wrote: > > On Thu, Aug 27, 2015 at 05:02:17PM +0100, Daniel P. Berrange wrote: > >> > >> Just to be clear - libvirt will *never* use an auto-generated device > >> IDs feature. It is way more complicated to let QEMU assign device IDs > >> and then auto-detect them from some 'info device-list' output, than > >> to just specify IDs upfront at device/object creation time which > >> it already does[1]. There is simply no benefit to auto-generating device > >> IDs for a mgmt app like libvirt, and plenty of downside. Auto-generated > >> IDs will only be of interest to humans talking to the monitor directly > >> without a mgmt app involved. > >> > >> Regards, > >> Daniel > >> > >> [1] we don't provide IDs for qcow2 image backing file chain, but that's > >> part of a bigger story that's being dealt with in this area. > > > > This is the part that interests me the most :) > > > > Do you think in dealing with image backing file chains, libvirt would > > ever make use of QEMU auto-generated node-names (either in the > > current feature set, or with future features)? I'm not sure if your > > above statement is specific to device ID, or extends to node-names as > > well. > > I have a patch series that I posted for libvirt that used a hack to try > and take advantage of auto-generated names (basically, you can't use > allocation watermark events on qcow2-over-block-devices without proper > node names). Had we turned on auto node names in 2.4 (the release that > added the event), then it might be in libvirt now. But now that we have > to support 2.4 without auto node names, it's in libvirt's long-term > interest to avoid technical debt and directly supply node names for all > BDS, rather than relying on node names, and rather than cheating by > waiting for qemu 2.5. > > So my current task in libvirt is to try and fix things to supply node > names everywhere, then rewrite my allocation watermark event series atop > that change, at which point relying on auto names will not be necessary > for libvirt. > OK, thanks. That certainly makes it less urgent, at least on my end. Seems like the only time we'd need it for libvirt is if in the future we created BDSs as a byproduct of an operation, and wanted to have a node-name so that we could present it to libvirt afterwards. Thanks, Jeff