OSDN Git Service

x86/Xen: don't report ancient LAPIC version
authorJan Beulich <JBeulich@suse.com>
Fri, 8 Dec 2017 11:17:28 +0000 (04:17 -0700)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Tue, 12 Dec 2017 14:39:17 +0000 (09:39 -0500)
commit0f3922a9b99eca76c6578cd84191573378f2c988
treeee9df16f009c9866d998f42b435b29f92cfdda2c
parent1ab134ca3151c55b6fc606857e71d9adb4c355d1
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>
arch/x86/xen/apic.c