qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC 0/2] cpu-add compatibility for query-hotpluggable-cpus implementations
@ 2016-07-18  9:19 David Gibson
  2016-07-18  9:19 ` [Qemu-devel] [RFC 1/2] spapr: Reverse order of hotpluggable cpus list David Gibson
                   ` (2 more replies)
  0 siblings, 3 replies; 24+ messages in thread
From: David Gibson @ 2016-07-18  9:19 UTC (permalink / raw)
  To: imammedo, pkrempa, bharata
  Cc: abologna, qemu-ppc, qemu-devel, groug, 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

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2016-07-26  1:39 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-18  9:19 [Qemu-devel] [RFC 0/2] cpu-add compatibility for query-hotpluggable-cpus implementations David Gibson
2016-07-18  9:19 ` [Qemu-devel] [RFC 1/2] spapr: Reverse order of hotpluggable cpus list David Gibson
2016-07-19 11:52   ` Peter Krempa
2016-07-20  1:00     ` David Gibson
2016-07-20  7:01       ` Peter Krempa
2016-07-21 13:07         ` David Gibson
2016-07-21 14:30           ` Igor Mammedov
2016-07-21 14:42             ` Greg Kurz
2016-07-25  6:09         ` David Gibson
2016-07-25  8:14           ` Igor Mammedov
2016-07-26  1:13             ` David Gibson
2016-07-18  9:19 ` [Qemu-devel] [RFC 2/2] qmp: Implement cpu-add in terms of query-hotpluggable-cpus when available David Gibson
2016-07-18 14:01   ` Peter Krempa
2016-07-19  1:01     ` David Gibson
2016-07-19  4:02     ` Bharata B Rao
2016-07-19  7:51       ` Igor Mammedov
2016-07-19 11:50         ` Peter Krempa
2016-07-18 15:06 ` [Qemu-devel] [RFC 0/2] cpu-add compatibility for query-hotpluggable-cpus implementations Peter Krempa
2016-07-18 16:20   ` Igor Mammedov
2016-07-19  4:28     ` Bharata B Rao
2016-07-19  8:02       ` Igor Mammedov
2016-07-22  3:30       ` David Gibson
2016-07-19 11:19     ` Peter Krempa
2016-07-19  1:09   ` David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).