• Juergen Gross's avatar
    x86/xen: return a sane initial apic id when running as PV guest · 802600eb
    Juergen Gross authored
    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: 52128a7a ("86/cpu/topology: Make the APIC mismatch warnings complete")
    Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
    802600eb
enlighten_pv.c 37.7 KB