Received: from eggs.gnu.org ([2001:4830:134:3::10]:52198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlJsR-0002gW-DD for qemu-devel@nongnu.org; Fri, 16 May 2014 11:16:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WlJsL-000155-91 for qemu-devel@nongnu.org; Fri, 16 May 2014 11:16:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlJsK-000151-WB for qemu-devel@nongnu.org; Fri, 16 May 2014 11:16:45 -0400 Date: Fri, 16 May 2014 12:16:41 -0300 From: Eduardo Habkost Message-ID: <20140516151641.GY3302@otherpad.lan.raisama.net> References: <20140506092238.570534a8@nial.usersys.redhat.com> <20140506144256.GU3363@otherpad.lan.raisama.net> <20140506220111.45aa0692@thinkpad> <20140506201957.GW3363@otherpad.lan.raisama.net> <53694624.7050603@suse.de> <20140515143501.5208dd49@nial.usersys.redhat.com> <20140515130751.GN3302@otherpad.lan.raisama.net> <20140515154816.4eb9f775@nial.usersys.redhat.com> <20140515140349.GQ3302@otherpad.lan.raisama.net> <20140516165221.7cd6ee1e@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140516165221.7cd6ee1e@thinkpad> Subject: Re: [Qemu-devel] [RFC 0/5] Allow object-add on X86CPU subclasses, for CPU model probing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: Peter Krempa , libvir-list@redhat.com, qemu-devel@nongnu.org, Paolo Bonzini , Jiri Denemark , Andreas =?iso-8859-1?Q?F=E4rber?= On Fri, May 16, 2014 at 04:52:21PM +0200, Igor Mammedov wrote: > On Thu, 15 May 2014 11:03:49 -0300 > Eduardo Habkost wrote: > > On Thu, May 15, 2014 at 03:48:16PM +0200, Igor Mammedov wrote: [...] > > > > > > Can't we add query-cpus QMP command or something like this to hide path > > > from user. > > > > That would work, too. But why is a dedicated "query-cpus" command better > > than something like "qom-list path=/machine/cpus" (that could simply > > return a list of links to the actual CPU objects)? > So that not to stall the work on deciding on > - if exposing not yet stables QOM paths as stable ABI is a good thing, I > recall Andreas objecting to using QOM paths with device hotplug This surprises me. > - what paths to CPUs should be wrt stalled topology discussion > I don't see why it depends on the topology discussion: if we are capable of keeping "query-cpus" working after we introduce the topology hierarchy, I believe we are perfectly capable of keeping symlinks on "/machine/cpus" working, too. Even if we change the actual paths later and introduce a more complex QOM hierarchy somewhere else. Isn't the reuse of infrastructure for list/get/set operations the whole point of QOM? -- Eduardo