Received: from eggs.gnu.org ([2001:4830:134:3::10]:41351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMylO-00086X-Es for qemu-devel@nongnu.org; Sat, 23 Jan 2016 09:02:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMylJ-00082A-ET for qemu-devel@nongnu.org; Sat, 23 Jan 2016 09:02:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMylJ-00081y-8d for qemu-devel@nongnu.org; Sat, 23 Jan 2016 09:01:57 -0500 Date: Sat, 23 Jan 2016 12:01:53 -0200 From: Eduardo Habkost Message-ID: <20160123140153.GJ3869@thinpad.lan.raisama.net> References: <1452609387-7232-1-git-send-email-valentin.rakush@gmail.com> <20160112145019.GN17626@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160112145019.GN17626@redhat.com> Subject: Re: [Qemu-devel] [RFC] target-i386: Display i386 CPUID properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: asmetanin@virtuozzo.com, den@openvz.org, Valentin Rakush , afaerber@suse.de, qemu-devel@nongnu.org On Tue, Jan 12, 2016 at 02:50:20PM +0000, Daniel P. Berrange wrote: > On Tue, Jan 12, 2016 at 05:36:27PM +0300, Valentin Rakush wrote: > > This is RFC because implementation depends on the upcoming class > > properties > > http://lists.nongnu.org/archive/html/qemu-devel/2015-08/msg03115.html > > and also because this patch does not handle all x86_64 properties. > > > > This RFC is in response to concerns pointed in this review but with changed > > subject line as recommended. > > http://lists.nongnu.org/archive/html/qemu-devel/2016-01/msg00053.html > > > > This RFC demonstrates the way for displaying cpu properties using -cpu > > help option. > > The point of doing this with QOM class properties, is such that we can > create a facility to query class properties for any QOM type in a > consistent manner. I was expecting this would take the form of a > QMP monitor command 'qom-type-properties' or something along those > lines. Also, note that qmp_device_list_properties() already does what you want to do, without requiring class-properties. This means you can implement the new interfaces (help output, QMP changes) without any new QOM core code. You can also propose QOM class-properties, if it helps making code simpler, but it's not a requirement for returning QOM properties on QMP/help output. -- Eduardo