Received: from eggs.gnu.org ([2001:4830:134:3::10]:52536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSoUb-00043l-4g for qemu-devel@nongnu.org; Fri, 21 Aug 2015 11:44:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSoUW-0006ef-4p for qemu-devel@nongnu.org; Fri, 21 Aug 2015 11:44:33 -0400 Date: Fri, 21 Aug 2015 08:44:24 -0700 From: Eduardo Habkost Message-ID: <20150821154424.GA5575@thinpad.lan.raisama.net> References: <1440107676-17326-1-git-send-email-ehabkost@redhat.com> <20150821122301.56569318.cornelia.huck@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150821122301.56569318.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH 00/10] Fix machine class names to use the "-machine" suffix List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cornelia Huck Cc: Peter Maydell , Marcel Apfelbaum , Alexander Graf , qemu-devel@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Richard Henderson , Andreas =?iso-8859-1?Q?F=E4rber?= , David Gibson On Fri, Aug 21, 2015 at 12:23:01PM +0200, Cornelia Huck wrote: > On Thu, 20 Aug 2015 14:54:26 -0700 > Eduardo Habkost wrote: > > > The machine class names in QEMU are not consistent today. Some of them use the > > "-machine" suffix, but some use completely different naming conventions. This > > makes it difficult to implement machine class lookup without iterating through > > the whole list of machine classes. > > > > This series changes all machines to use "-machine" as the class > > name, so we can simply use object_class_by_name() in the future to lookup > > machine classes. (This was not done yet because it will also require some > > changes in the way aliases are handled.) > > I've played around with the s390 machines a bit and it seems to do the > right thing using the same commandlines as before. > > One question: info qom-tree shows the new machine class names - is > there anybody (other than a human looking at it) making use of that > information? I don't believe anybody is using it. It would be possible to use the class name for something useful if machines were user-creatable objects, but they aren't. -- Eduardo