Received: from eggs.gnu.org ([2001:4830:134:3::10]:35375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aakt3-0000Z5-4B for qemu-devel@nongnu.org; Tue, 01 Mar 2016 09:02:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaksx-0002yg-6e for qemu-devel@nongnu.org; Tue, 01 Mar 2016 09:02:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaksx-0002yU-1h for qemu-devel@nongnu.org; Tue, 01 Mar 2016 09:02:47 -0500 Date: Tue, 1 Mar 2016 11:02:44 -0300 From: Eduardo Habkost Message-ID: <20160301140244.GB3632@thinpad.lan.raisama.net> References: <20160218033952.GG15224@voom.fritz.box> <20160218113739.64b02461@nial.brq.redhat.com> <20160219043848.GZ15224@voom.fritz.box> <20160219164911.091b4351@nial.brq.redhat.com> <20160222025432.GD2808@voom.fritz.box> <20160223104645.6b64f60c@nial.brq.redhat.com> <20160223212620.GF3901@thinpad.lan.raisama.net> <20160224154218.5bd84960@nial.brq.redhat.com> <20160225175206.GE3313@thinpad.lan.raisama.net> <20160229164258.11e44bd5@nial.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160229164258.11e44bd5@nial.brq.redhat.com> Subject: Re: [Qemu-devel] [RFC] QMP: add query-hotpluggable-cpus List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: lvivier@redhat.com, thuth@redhat.com, Peter Krempa , aik@ozlabs.ru, Markus Armbruster , qemu-devel@nongnu.org, agraf@suse.de, abologna@redhat.com, bharata@linux.vnet.ibm.com, pbonzini@redhat.com, afaerber@suse.de, David Gibson On Mon, Feb 29, 2016 at 04:42:58PM +0100, Igor Mammedov wrote: [...] > > > > > i.e. completely split interface from how boards internally implement > > > > > CPU hotplug. > > > > > > > > A QOM-based interface may still split the interface from how > > > > boards internally implement CPU hotplug. They don't need to > > > > affect the device tree of the machine, we just need to create QOM > > > > objects or links at predictable paths, that implement certain > > > > interfaces. > > > Beside of not being able to reach consensus for a long time, > > > I'm fine with isolated QOM interface if it allow us to move forward. > > > However static QMP/QAPI interface seems to be better describing and > > > has better documentation vs current very flexible poorly self-describing QOM. > > > > You have a good point: QMP is more stable and better documented. > > QOM is easier for making experiments, and I would really like to > > see it being used more. But if we still don't understand the > > requirements enough to design a QMP interface, we won't be able > > to implement the same functionality using QOM either. > > > > If we figure out the requirements, I believe we should be able to > > design equivalent QMP and QOM interfaces. > So not to stall CPU hotplug progress, I'd start with stable QMP query > interface for general use, leaving experimental QOM interface for later > as difficult to discover and poorly documented one from mgmt pov, > meaning mgmt would have to: > - instantiate a particular machine type to find if QOM interface is supported, > i.e. '-machine none' won't work with it as it's board depended VS static compile time qapi-schema in QMP case > - execute a bunch of qom-list/qom-read requests over wire to enumerate/query > objects starting at some fixed entry point (/machine/cpus) VS a single command that does 'atomic' enumeration in QMP case. Agreed. -- Eduardo