Received: from eggs.gnu.org ([2001:4830:134:3::10]:38091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVP3o-0002uk-Dc for qemu-devel@nongnu.org; Mon, 15 Feb 2016 14:43:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVP3g-0008Lq-VF for qemu-devel@nongnu.org; Mon, 15 Feb 2016 14:43:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVP3g-0008Lk-PJ for qemu-devel@nongnu.org; Mon, 15 Feb 2016 14:43:44 -0500 From: Markus Armbruster References: <1455556228-232720-1-git-send-email-imammedo@redhat.com> Date: Mon, 15 Feb 2016 20:43:41 +0100 In-Reply-To: <1455556228-232720-1-git-send-email-imammedo@redhat.com> (Igor Mammedov's message of "Mon, 15 Feb 2016 18:10:28 +0100") Message-ID: <878u2lhi8i.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain 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, ehabkost@redhat.com, aik@ozlabs.ru, qemu-devel@nongnu.org, agraf@suse.de, abologna@redhat.com, bharata@linux.vnet.ibm.com, pbonzini@redhat.com, afaerber@suse.de, david@gibson.dropbear.id.au Igor Mammedov writes: > it will allow mgmt to query present and possible to hotplug CPUs > it is required from a target platform that wish to support > command to set board specific MachineClass.possible_cpus() hook, > which will return a list of possible CPUs with options > that would be needed for hotplugging possible CPUs. > > For RFC there are: > 'arch_id': 'int' - mandatory unique CPU number, > for x86 it's APIC ID for ARM it's MPIDR > 'type': 'str' - CPU object type for usage with device_add > > and a set of optional fields that would allows mgmt tools > to know at what granularity and where a new CPU could be > hotplugged; > [node],[socket],[core],[thread] > Hopefully that should cover needs for CPU hotplug porposes for > magor targets and we can extend structure in future adding > more fields if it will be needed. > > also for present CPUs there is a 'cpu_link' field which > would allow mgmt inspect whatever object/abstraction > the target platform considers as CPU object. > > For RFC purposes implements only for x86 target so far. Adding ad hoc queries as we go won't scale. Could this be solved by a generic introspection interface?