On Fri, Aug 21, 2015 at 12:23:01PM +0200, Cornelia Huck wrote: > On Thu, 20 Aug 2015 14:54:26 -0700 > Eduardo Habkost <ehabk...@redhat.com> 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 name>-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