mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
spapr: reuse machine->possible_cpus instead of cores[]
Replace SPAPR specific cores[] array with generic machine->possible_cpus and store core objects there. It makes cores bookkeeping similar to x86 cpus and will allow to unify similar code. It would allow to replace cpu_index based NUMA node mapping with iproperty based one (for -device created cores) since possible_cpus carries board defined topology/layout. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
8aba384298
commit
535455fdee
2 changed files with 90 additions and 40 deletions
|
@ -94,7 +94,6 @@ struct sPAPRMachineState {
|
|||
/*< public >*/
|
||||
char *kvm_type;
|
||||
MemoryHotplugState hotplug_memory;
|
||||
Object **cores;
|
||||
};
|
||||
|
||||
#define H_SUCCESS 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue