mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
machine: Add SMP Sockets in CpuTopology
Store the smp sockets in CpuTopology. The socket information required to build the apic id in EPYC mode. Right now socket information is not passed to down when decoding the apic id. Add the socket information here. Signed-off-by: Babu Moger <babu.moger@amd.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <158396718647.58170.2278448323151215741.stgit@naples-babu.amd.com>
This commit is contained in:
parent
f20dec0b63
commit
8cb30e3aec
4 changed files with 5 additions and 0 deletions
|
@ -757,6 +757,7 @@ static void smp_parse(MachineState *ms, QemuOpts *opts)
|
|||
ms->smp.cpus = cpus;
|
||||
ms->smp.cores = cores;
|
||||
ms->smp.threads = threads;
|
||||
ms->smp.sockets = sockets;
|
||||
}
|
||||
|
||||
if (ms->smp.cpus > 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue