Received: from eggs.gnu.org ([2001:4830:134:3::10]:35002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP4i8-0003bG-UI for qemu-devel@nongnu.org; Mon, 18 Jul 2016 05:19:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bP4i4-0005Ot-4f for qemu-devel@nongnu.org; Mon, 18 Jul 2016 05:19:36 -0400 From: David Gibson Date: Mon, 18 Jul 2016 19:19:18 +1000 Message-Id: <1468833560-17397-1-git-send-email-david@gibson.dropbear.id.au> Subject: [Qemu-devel] [RFC 0/2] cpu-add compatibility for query-hotpluggable-cpus implementations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: imammedo@redhat.com, pkrempa@redhat.com, bharata@linux.vnet.ibm.com Cc: abologna@redhat.com, qemu-ppc@nongnu.org, qemu-devel@nongnu.org, groug@kaod.org, David Gibson I'm not entirely sure if this is a good idea, and if it is whether this is a good approach to it. But I'd like to discuss it and see if anyone has better ideas. As you may know we've hit a bunch of complications with cpu_index which will impose some limitations with what we can do with the new query-hotpluggable-cpus interface, and we've run out of time to address these in qemu-2.7. At the same time we're hitting complications with the fact that the new qemu interface requires a new libvirt interface to use properly, and that has follow on effects further up the stack. Together this means a bunch more delays to having usable CPU hotplug on Power for downstream users, which is unfortunate. This is an attempt to get something limited working in a shorter time frame, by implementing the old cpu-add interface in terms of the new interface. Obviously this can't fully exploit the new interface's capabilities, but you can do basic in-order cpu hotplug without removal. To make this work, I need to broaden the semantics of cpu-add: it will a single entry from query-hotpluggable-cpus, which means it may add multiple vcpus, which the x86 implementation did not previously do. I'm not sure if the intended semantics of cpu-add were ever defined well enough to say if this is "wrong" or not. Because of this, I suspect libvirt will still need some work, but I'm hoping it might be less that the full new API implementation. David Gibson (2): spapr: Reverse order of hotpluggable cpus list qmp: Implement cpu-add in terms of query-hotpluggable-cpus when available hw/ppc/spapr.c | 2 +- qmp.c | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 1 deletion(-) -- 2.7.4