[Qemu-devel] [PATCH 0/7] Better handling of machine specific per-cpu information

David Gibson posted 7 patches 18 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20180613065707.30766-1-david@gibson.dropbear.id.au
Test checkpatch passed
Test docker-mingw@fedora passed
Test docker-quick@centos7 passed
Test s390x passed
hw/intc/xics.c                  |  5 +-
hw/intc/xics_spapr.c            | 16 ++++--
hw/ppc/pnv.c                    |  8 +--
hw/ppc/pnv_core.c               | 96 +++++++++++++++++++--------------
hw/ppc/spapr.c                  |  8 +--
hw/ppc/spapr_cpu_core.c         | 85 ++++++++++++++---------------
hw/ppc/spapr_hcall.c            | 77 ++++++++++++++------------
include/hw/ppc/pnv_core.h       | 11 +++-
include/hw/ppc/spapr_cpu_core.h | 13 +++++
include/hw/ppc/xics.h           |  4 +-
target/ppc/cpu.h                |  8 +--
target/ppc/translate_init.inc.c |  8 ---
12 files changed, 186 insertions(+), 153 deletions(-)

[Qemu-devel] [PATCH 0/7] Better handling of machine specific per-cpu information

Posted by David Gibson 18 weeks ago
It's moderately common for a machine type to need to keep track of
information that is specific to the platform it implements, but
per-cpu.

While it could keep such information inside the MachineState, this
makes lookup from the CPUState awkward.  So, this series adds a
standard way to stash machine-specific per-cpu information using a
void pointer in the PowerPCCPU object.  The machine is responsible for
alloc()ing, free()ing and (if applicable) migrating this state.

The meat of the series is the last two patches.  The first 5 clean up
a number of minor uglies I encountered while implementing.

David Gibson (7):
  spapr: Clean up cpu realize/unrealize paths
  pnv: Add missing error check during cpu realize()
  pnv_core: Allocate cpu thread objects individually
  pnv: Clean up cpu realize path
  pnv: Add cpu unrealize path
  target/ppc: Replace intc pointer with a general machine_data pointer
  target/ppc, spapr: Move VPA information to machine_data

 hw/intc/xics.c                  |  5 +-
 hw/intc/xics_spapr.c            | 16 ++++--
 hw/ppc/pnv.c                    |  8 +--
 hw/ppc/pnv_core.c               | 96 +++++++++++++++++++--------------
 hw/ppc/spapr.c                  |  8 +--
 hw/ppc/spapr_cpu_core.c         | 85 ++++++++++++++---------------
 hw/ppc/spapr_hcall.c            | 77 ++++++++++++++------------
 include/hw/ppc/pnv_core.h       | 11 +++-
 include/hw/ppc/spapr_cpu_core.h | 13 +++++
 include/hw/ppc/xics.h           |  4 +-
 target/ppc/cpu.h                |  8 +--
 target/ppc/translate_init.inc.c |  8 ---
 12 files changed, 186 insertions(+), 153 deletions(-)

-- 
2.17.1