From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgD9Q-0000OB-JS for qemu-devel@nongnu.org; Tue, 21 Feb 2017 11:18:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgD9P-0007dw-Oq for qemu-devel@nongnu.org; Tue, 21 Feb 2017 11:18:52 -0500 References: <1487357795-52614-1-git-send-email-imammedo@redhat.com> <20170220195500.332a4844@nial.brq.redhat.com> <20170221134416.5803b3e5@nial.brq.redhat.com> <87poibr6kv.fsf@dusky.pond.sub.org> From: Paolo Bonzini Message-ID: <6959c545-4b6e-423b-45f2-8e0683b08ce2@redhat.com> Date: Tue, 21 Feb 2017 17:18:35 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 0/3] generalize parsing of cpu_model List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , Markus Armbruster Cc: Igor Mammedov , Eduardo Habkost , "Michael S. Tsirkin" , Stefan Hajnoczi , "patches@linaro.org" , QEMU Developers , qemu-arm , "qemu-ppc@nongnu.org" , Marcel Apfelbaum , David Gibson On 21/02/2017 14:57, Peter Maydell wrote: >> -global is a qdev thing. > ...which reminds me to ask: is there any hope for unifying > our properties so we don't have both "qdev properties" and > "qom properties" or are we doomed to two distinct sets of > APIs forever? We already have one set of property APIs in some sense. qdev properties *are* QOM properties; you visit them with object_property_foreach and so on. The extensions that qdev adds, and are exclusive to qdev properties, are the following: - defining properties via DEFINE_PROPERTY_* (qdev_property_add_static etc.) - defining default values with -global (global_props and a handful of functions that use it). - providing alternative human-readable formatting for info qtree (qdev_property_add_legacy) Paolo