summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorBabu Moger2020-03-11 23:54:02 +0100
committerEduardo Habkost2020-04-01 00:13:32 +0200
commit2e26f4ab3bf8390a2677d3afd9b1a04f015d7721 (patch)
tree625942bed7dae7944d14a1602e9e6a271bbe5387 /include/exec
parenti386: Introduce use_epyc_apic_id_encoding in X86CPUDefinition (diff)
downloadqemu-2e26f4ab3bf8390a2677d3afd9b1a04f015d7721.tar.gz
qemu-2e26f4ab3bf8390a2677d3afd9b1a04f015d7721.tar.xz
qemu-2e26f4ab3bf8390a2677d3afd9b1a04f015d7721.zip
hw/i386: Move arch_id decode inside x86_cpus_init
Apicid calculation depends on knowing the total number of numa nodes for EPYC cpu models. Right now, we are calculating the arch_id while parsing the numa(parse_numa). At this time, it is not known how many total numa nodes are configured in the system. Move the arch_id calculation inside x86_cpus_init. At this time, smp parse is already completed and numa node information is available. Override the handlers if use_epyc_apic_id_encoding is enabled in cpu model definition. Also replace the calling convention to use handlers from X86MachineState. Signed-off-by: Babu Moger <babu.moger@amd.com> Message-Id: <158396724217.58170.12256158354204870716.stgit@naples-babu.amd.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions