From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXVjR-0001XR-72 for qemu-devel@nongnu.org; Thu, 03 Sep 2015 10:43:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXVjN-0003CU-0F for qemu-devel@nongnu.org; Thu, 03 Sep 2015 10:43:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXVjM-0003CH-SA for qemu-devel@nongnu.org; Thu, 03 Sep 2015 10:43:12 -0400 Date: Thu, 3 Sep 2015 10:43:09 -0400 From: Jeff Cody Message-ID: <20150903144309.GB19447@localhost.localdomain> References: <29C62C49-06A5-4F99-8062-7269A28C29A3@gmail.com> <8737z7o85i.fsf@blackfin.pond.sub.org> <441C227A-2CF0-43AE-AC7F-B066708CEABD@gmail.com> <87fv36j9j6.fsf@blackfin.pond.sub.org> <117F603F-1907-4D9A-B5F9-4164A76FBBAF@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <117F603F-1907-4D9A-B5F9-4164A76FBBAF@gmail.com> Subject: Re: [Qemu-devel] Should we auto-generate IDs? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Programmingkid Cc: Kevin Wolf , Markus Armbruster , qemu-devel qemu-devel , Paolo Bonzini , Andreas =?iso-8859-1?Q?F=E4rber?= On Thu, Sep 03, 2015 at 10:34:04AM -0400, Programmingkid wrote: > It has been over a week since we first started talking about this > subject. A lot of opinions have been flying around. Does this issue > look like it is starting to be fixed? I just have to say I don't > think it has been solved yet. Having device_del use a QOM path does > not sound very good. It is actually easier and faster for the user > to restart QEMU with a new ID for some device than to have to look > up some QOM path. Having a user-friendly system for creating ID's > should be a priority. Please see my v2 patch series (you were CC'ed on it): [PATCH v2 1/2] util - add automated ID generation utility [PATCH v2 2/2] block: auto-generated node-names The first patch is a qemu-wide utility to generate IDs. The scheme seems to have some consensus, and a few r-b's (it is also derived from this conversation thread). The second patch is using it in the block layer, for node-names; it should be trivial to see how to use it for qdev. Would you like me to roll a v3, with a qdev patch added in? Thanks, Jeff