[Qemu-devel] [RFC v3 0/3] prebuild cpu QOM tree /machine/node/socket/core ->link-cpu

2014-03-11 Thread chen.fan.fnst
From: "chen.fan.fnst" at present, after hotplug a discontinuous cpu id on source, then done migration, on target, it will fail to add the unoccupied cpu id which was skipped at source, this cause is on target Qemu prebuild CPU with continuous cpu_index. so after migratio

[Qemu-devel] [RFC v3 1/3] cpu: introduce CpuTopoInfo structure for argument simplification

2014-03-11 Thread chen.fan.fnst
From: "chen.fan.fnst" Signed-off-by: Chen Fan --- target-i386/topology.h | 33 + 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/target-i386/topology.h b/target-i386/topology.h index 07a6c5f..7843976 100644 --- a/target-i386/topolo

[Qemu-devel] [RFC v3 2/3] i386: use CpuTopoInfo instead apic_id as argument for pc_new_cpu()

2014-03-11 Thread chen.fan.fnst
From: "chen.fan.fnst" Signed-off-by: Chen Fan --- hw/i386/pc.c | 12 target-i386/cpu.c | 2 -- target-i386/cpu.h | 3 +++ 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index e715a33..c754042 100644 --- a/hw/i386/pc.

[Qemu-devel] [RFC v3 3/3] i386: introduce cpu QOM hierarchy tree

2014-03-11 Thread chen.fan.fnst
From: "chen.fan.fnst" add cpu-topology.h cpu-topology.c files for prebuilding cpu qom tree "/machine/node[X]/socket[Y]/core[Z]->link cpu" Signed-off-by: Chen Fan --- hw/i386/pc.c | 3 + target-i386/Makefile.objs | 2 +- target-i3