Skip to content

Commit 0f3922a

Browse files
jbeulichBoris Ostrovsky
authored andcommitted
x86/Xen: don't report ancient LAPIC version
Unconditionally reporting a value seen on the P4 or older invokes functionality like io_apic_get_unique_id() on 32-bit builds, resulting in a panic() with sufficiently many CPUs and/or IO-APICs. Doing what that function does would be the hypervisor's responsibility anyway, so makes no sense to be used when running on Xen. Uniformly report a more modern version; this shouldn't matter much as both LAPIC and IO-APIC are being managed entirely / mostly by the hypervisor. Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Juergen Gross <jgross@suse.com> Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
1 parent 1ab134c commit 0f3922a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/xen/apic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static u32 xen_apic_read(u32 reg)
5656
return 0;
5757

5858
if (reg == APIC_LVR)
59-
return 0x10;
59+
return 0x14;
6060
#ifdef CONFIG_X86_32
6161
if (reg == APIC_LDR)
6262
return SET_APIC_LOGICAL_ID(1UL << smp_processor_id());

0 commit comments

Comments
 (0)