]> git.proxmox.com Git - mirror_qemu.git/commit
hw/i386: Move arch_id decode inside x86_cpus_init
authorBabu Moger <babu.moger@amd.com>
Wed, 11 Mar 2020 22:54:02 +0000 (17:54 -0500)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 31 Mar 2020 22:13:32 +0000 (19:13 -0300)
commit2e26f4ab3bf8390a2677d3afd9b1a04f015d7721
tree625942bed7dae7944d14a1602e9e6a271bbe5387
parent0c1538cb1a26287c072645f4759b9872b1596d79
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>
hw/i386/pc.c
hw/i386/x86.c