Received: from eggs.gnu.org ([2001:4830:134:3::10]:46106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiNnt-0001fn-54 for qemu-devel@nongnu.org; Tue, 22 Mar 2016 11:01:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiNnn-0002uV-E8 for qemu-devel@nongnu.org; Tue, 22 Mar 2016 11:01:05 -0400 Date: Tue, 22 Mar 2016 16:00:54 +0100 From: Igor Mammedov Message-ID: <20160322160054.374bc7d9@nial.brq.redhat.com> In-Reply-To: <87vb4eoam4.fsf@blackfin.pond.sub.org> References: <1458048248-4605-1-git-send-email-imammedo@redhat.com> <87vb4eoam4.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 0/2] spapr: QMP: add query-hotpluggable-cpus List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: mjrosato@linux.vnet.ibm.com, pkrempa@redhat.com, ehabkost@redhat.com, agraf@suse.de, qemu-devel@nongnu.org, borntraeger@de.ibm.com, qemu-ppc@nongnu.org, bharata@linux.vnet.ibm.com, cornelia.huck@de.ibm.com, dgibson@redhat.com, afaerber@suse.de On Tue, 22 Mar 2016 15:22:59 +0100 Markus Armbruster wrote: > Igor Mammedov writes: > > > Changes since v2: > > - rebase on top of hte lates spapr cpu hotpug series > > - add 'vcpus-count' field, pkrempa@redhat.com > > - s/CpuInstanceProps/CpuInstanceProperties/ > > - use '#optional' marker > > - make "props" as always present even if it's empty > > - fix JSON examples > > - fix minor typos > > - drop pre_plug spapr impl out of series as not related to QMP command > > - drop generic pre hotplug callback as not related to QMP command > > > > Changes since RFC: > > - drop arch_id > > - move CPU properties into separate structure > > - target implements its own qmp callback version > > - rebased on top of [RFC PATCH v1 00/10] Core based CPU hotplug for PowerPC sPAPR > > https://www.mail-archive.com/qemu-devel@nongnu.org/msg357567.html > > - convert slot name to core id hack > > - drop links > > - add generic pre hotplug callback > > - implement query-hotpluggable-cpus > > > > The first patch (QMP API) in this series could go in first > > allowing individual targets to post their hotplug > > implementation independently on top of it. > > We discussed the need for a yet another ad hoc query command. Can you > please summarize the discussion and its conclusion? Explaining *why* a > feature is needed is always a good idea. Cover letter and commit > messages are good places for it. Summary would be: that yet another ad hoc query QMP command is 1. a single / atomic command 2. well documented 3. fixed at compile time/staic so it's easy for mgmt to discover it. while a considered alternative QOM interface via qom-get(path) is 1. not atomic, i.e. requires a lot of qom-get commands over the wire to traverse QOM tree and fetch information 2. not documented 3. dynamically generated and would require more complicated coding even to create a simplistic interface similar to proposed QMP command (for example: possible_cpu QOM objects with a related properties) I hope, I haven't missed anything.