mirror_ubuntu-kernels/arch/x86/kernel/apic
Thomas Gleixner b5a5ce58d3 x86/apic: Prepare x2APIC for using apic::max_apic_id
In order to remove the apic::apic_id_valid() callback and switch to
checking apic::max_apic_id, it is required to update apic::max_apic_id when
the APIC initialization code overrides it via x2apic_set_max_apicid().

Make the existing booleans a bitfield and add a flag which lets the update
function and the core code which switches the driver detect whether the
apic instance wants to have that update or not and apply it if required.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Sohil Mehta <sohil.mehta@intel.com>
Tested-by: Juergen Gross <jgross@suse.com> # Xen PV (dom0 and unpriv. guest)
2023-08-09 11:58:31 -07:00
..
apic_common.c x86/apic: Mop up apic::apic_id_registered() 2023-08-09 11:58:27 -07:00
apic_flat_64.c x86/apic: Add max_apic_id member 2023-08-09 11:58:31 -07:00
apic_noop.c x86/apic: Add max_apic_id member 2023-08-09 11:58:31 -07:00
apic_numachip.c x86/apic: Add max_apic_id member 2023-08-09 11:58:31 -07:00
apic.c x86/apic: Move safe wait_icr_idle() next to apic_mem_wait_icr_idle() 2023-08-09 11:58:29 -07:00
bigsmp_32.c x86/apic: Add max_apic_id member 2023-08-09 11:58:31 -07:00
hw_nmi.c locking/seqlock, headers: Untangle the spaghetti monster 2020-08-06 16:13:13 +02:00
io_apic.c x86/ioapic/32: Decrapify phys_id_present_map operation 2023-08-09 11:58:26 -07:00
ipi.c x86/apic: Move safe wait_icr_idle() next to apic_mem_wait_icr_idle() 2023-08-09 11:58:29 -07:00
local.h x86/apic: Prepare x2APIC for using apic::max_apic_id 2023-08-09 11:58:31 -07:00
Makefile x86/PCI: Remove unused HyperTransport interrupt support 2017-11-23 20:18:18 +01:00
msi.c x86/apic: Rename disable_apic 2023-08-09 11:58:16 -07:00
probe_32.c x86/apic: Add max_apic_id member 2023-08-09 11:58:31 -07:00
probe_64.c x86/apic: Prepare x2APIC for using apic::max_apic_id 2023-08-09 11:58:31 -07:00
vector.c x86/apic: Wrap APIC ID validation into an inline 2023-08-09 11:58:30 -07:00
x2apic_cluster.c x86/apic: Prepare x2APIC for using apic::max_apic_id 2023-08-09 11:58:31 -07:00
x2apic_phys.c x86/apic: Prepare x2APIC for using apic::max_apic_id 2023-08-09 11:58:31 -07:00
x2apic_uv_x.c x86/apic: Add max_apic_id member 2023-08-09 11:58:31 -07:00