All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/7] pc/spapr: unify handling of possible CPUs
@ 2017-02-09 11:08 Igor Mammedov
  2017-02-09 11:08 ` [Qemu-devel] [PATCH 1/7] machine: move possible_cpus to MachineState Igor Mammedov
                   ` (8 more replies)
  0 siblings, 9 replies; 20+ messages in thread
From: Igor Mammedov @ 2017-02-09 11:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: David Gibson, Alexander Graf, qemu-ppc, Bharata B Rao, ehabkost,
	drjones, Marcel Apfelbaum


Series is prerequsite split of from NUMA cpu mapping
refactoring and includes only possible_cpus[] generalization
to make it reusable for SPAPR and virt-arm targets as
has been requested by Eduardo [1].

Since virt-arm doesn't support -device based CPUs, ARM
patches are not included here and will be posted separately as
 'hw/arm/virt: -device cpu support'
series with dependency on this series.

This series doesn't include any of NUMA refactoring patches,
which will be posted on top once SPAPR and virt-arm would use
possible_cpus[].

Hence goal of this series is to make x86 specific possible_cpus[]
more generic, move it to MachineState and reuse it in SPAPR
machine so we could use it as common storage for topology
information when parsing -smp/-numa and then follow
the same/similar CPU creation pattern across the affected targets.

As result of this series:
  * possible_cpus[] becomes part of MachineState
  * SPAPR machine reuses it for persistent topololy storage
    and core bookkeeping
  * target specific query_hotpluggable_cpus() callbacks are
    generalized into common machine_query_hotpluggable_cpus()

Series depends on:
  [PATCH 0/3] spapr: fix cpu core hotunplug call flow
  https://www.mail-archive.com/qemu-devel@nongnu.org/msg427214.html
which is staged for next pull req in SPAPR tree.

git tree for testing:
  git@github.com:imammedo/qemu.git unify_poissible_cpus_v1

Regression tested CPU hotplug with ppc fedora25 guest on ppc host
with kvm enabled.

 1) "[RFC 00/13] numa: add '-numa cpu' option"
    https://www.mail-archive.com/qemu-devel@nongnu.org/msg423883.html

CC: David Gibson <david@gibson.dropbear.id.au> (supporter:sPAPR)
CC: Alexander Graf <agraf@suse.de> (supporter:sPAPR)
CC: qemu-ppc@nongnu.org 
CC: Bharata B Rao <bharata@linux.vnet.ibm.com>
CC: ehabkost@redhat.com
CC: drjones@redhat.com
CC: Marcel Apfelbaum <marcel@redhat.com>


Igor Mammedov (7):
  machine: move possible_cpus to MachineState
  pc: move pcms->possible_cpus init out of pc_cpus_init()
  pc: calculate topology only once when possible_cpus is initialised
  pc: pass apic_id to pc_find_cpu_slot() directly so lookup could be
    done without CPU object
  change CPUArchId.cpu type to Object*
  spapr: reuse machine->possible_cpus instead of cores[]
  machine: unify [pc_|spapr_]query_hotpluggable_cpus() callbacks

 include/hw/boards.h    |   8 +++-
 include/hw/i386/pc.h   |   1 -
 include/hw/ppc/spapr.h |   1 -
 hw/acpi/cpu.c          |   2 +-
 hw/core/machine.c      |  31 +++++++++++++
 hw/i386/pc.c           | 124 +++++++++++++++++++++----------------------------
 hw/ppc/spapr.c         | 117 +++++++++++++++++++++++++++-------------------
 7 files changed, 162 insertions(+), 122 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2017-02-13  6:08 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-09 11:08 [Qemu-devel] [PATCH 0/7] pc/spapr: unify handling of possible CPUs Igor Mammedov
2017-02-09 11:08 ` [Qemu-devel] [PATCH 1/7] machine: move possible_cpus to MachineState Igor Mammedov
2017-02-09 23:20   ` David Gibson
2017-02-09 11:08 ` [Qemu-devel] [PATCH 2/7] pc: move pcms->possible_cpus init out of pc_cpus_init() Igor Mammedov
2017-02-09 23:26   ` David Gibson
2017-02-09 11:08 ` [Qemu-devel] [PATCH 3/7] pc: calculate topology only once when possible_cpus is initialised Igor Mammedov
2017-02-09 23:26   ` David Gibson
2017-02-09 11:08 ` [Qemu-devel] [PATCH 4/7] pc: pass apic_id to pc_find_cpu_slot() directly so lookup could be done without CPU object Igor Mammedov
2017-02-09 23:26   ` David Gibson
2017-02-09 11:08 ` [Qemu-devel] [PATCH 5/7] change CPUArchId.cpu type to Object* Igor Mammedov
2017-02-09 23:33   ` David Gibson
2017-02-09 11:08 ` [Qemu-devel] [PATCH 6/7] spapr: reuse machine->possible_cpus instead of cores[] Igor Mammedov
2017-02-09 23:47   ` David Gibson
2017-02-10 10:18   ` [Qemu-devel] [PATCH v2 " Igor Mammedov
2017-02-09 11:08 ` [Qemu-devel] [PATCH 7/7] machine: unify [pc_|spapr_]query_hotpluggable_cpus() callbacks Igor Mammedov
2017-02-09 23:53   ` David Gibson
2017-02-10  9:00     ` Igor Mammedov
2017-02-10 10:20 ` [Qemu-devel] [PATCH v2 8/7] machine: replace query_hotpluggable_cpus() callback with has_hotpluggable_cpus flag Igor Mammedov
2017-02-10 10:31 ` [Qemu-devel] [PATCH 0/7] pc/spapr: unify handling of possible CPUs Igor Mammedov
2017-02-13  6:06   ` David Gibson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.