]> git.dujemihanovic.xyz Git - linux.git/commit
x86/xen: return a sane initial apic id when running as PV guest
authorJuergen Gross <jgross@suse.com>
Fri, 5 Apr 2024 12:15:47 +0000 (14:15 +0200)
committerJuergen Gross <jgross@suse.com>
Thu, 2 May 2024 17:18:44 +0000 (19:18 +0200)
commit802600ebdf23371b893a51a4ad046213f112ea3b
tree00558998dbf10f83fc376e1568bc12e143e12d27
parent8a95db3bf8a32186fe448b1a934afbd5f1da0263
x86/xen: return a sane initial apic id when running as PV guest

With recent sanity checks for topology information added, there are now
warnings issued for APs when running as a Xen PV guest:

  [Firmware Bug]: CPU   1: APIC ID mismatch. CPUID: 0x0000 APIC: 0x0001

This is due to the initial APIC ID obtained via CPUID for PV guests is
always 0.

Avoid the warnings by synthesizing the CPUID data to contain the same
initial APIC ID as xen_pv_smp_config() is using for registering the
APIC IDs of all CPUs.

Fixes: 52128a7a21f7 ("86/cpu/topology: Make the APIC mismatch warnings complete")
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/enlighten_pv.c