mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw/i386: Update structures to save the number of nodes per package
Update structures X86CPUTopoIDs and CPUX86State to hold the number of nodes per package. This is required to build EPYC mode topology. Signed-off-by: Babu Moger <babu.moger@amd.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <158396720035.58170.1973738805301006456.stgit@naples-babu.amd.com>
This commit is contained in:
parent
156778a083
commit
c24a41bb53
6 changed files with 25 additions and 20 deletions
|
@ -62,6 +62,7 @@ inline void init_topo_info(X86CPUTopoInfo *topo_info,
|
|||
{
|
||||
MachineState *ms = MACHINE(x86ms);
|
||||
|
||||
topo_info->nodes_per_pkg = ms->numa_state->num_nodes / ms->smp.sockets;
|
||||
topo_info->dies_per_pkg = x86ms->smp_dies;
|
||||
topo_info->cores_per_die = ms->smp.cores;
|
||||
topo_info->threads_per_core = ms->smp.threads;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue