Skip to content

RFC cpu: add device_add foo-x86_64-cpu support

Gu Zheng qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3cpu: introduce CpuTopoInfo structure for argument simplificationtarget-i386/topology.h+17 -161 reply
2/3qom/cpu: move register_vmstate to common CPUClass.realizefnexec.c hw/intc/apic_common.c include/hw/i386/apic_internal.h +3 more+35 -190 replies
3/3cpu: add device_add foo-x86_64-cpu supportinclude/qom/cpu.h qdev-monitor.c target-i386/cpu.c +1 more+83 -10 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchEduardo Habkost
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [RFC PATCH 0/3] cpu: add device_add foo-x86_64-cpu support

This series is based on the previous patchset from Chen Fan:
https://lists.nongnu.org/archive/html/qemu-devel/2014-05/msg02360.html

This patches try to make cpu hotplug with device_add, and make "-device foo-x86_64-cpu" available,also we can set apic-id property with command line, if without setting apic-id property, we offer the first unoccupied apic id as the default new apic id. When hotplug cpu with device_add, additional check of APIC ID will be done after cpu object initialization which was different from 'cpu_add' command that check 'ids' at the beginning.

Chen Fan (2):
cpu: introduce CpuTopoInfo structure for argument simplification
cpu: add device_add foo-x86_64-cpu support

Gu Zheng (1):
qom/cpu: move register_vmstate to common CPUClass.realizefn

 exec.c                          |   32 ++++++++++-------
 hw/intc/apic_common.c           |    3 +-
 include/hw/i386/apic_internal.h |    3 +-
 include/qom/cpu.h               |    3 ++
 qdev-monitor.c                  |    1 +
 qom/cpu.c                       |    2 +
 target-i386/cpu.c               |   76 ++++++++++++++++++++++++++++++++++++--
 target-i386/topology.h          |   51 ++++++++++++++++++--------
 8 files changed, 135 insertions(+), 36 deletions(-)
Signature · 1 line
1.7.7