Lines Matching +full:num +full:- +full:guest +full:- +full:ids
1 // SPDX-License-Identifier: GPL-2.0-only
5 * The APIC IDs describe the system topology in multiple domain levels.
11 * The root space contains the package (socket) IDs.
49 u32 cpuid_to_apicid[] __ro_after_init = { [0 ... NR_CPUS - 1] = BAD_APICID, };
80 if (!(apicid & (__max_threads_per_core - 1))) in cpu_mark_primary_thread()
95 return apicid & (UINT_MAX << x86_topo_system.dom_shifts[dom - 1]); in topo_apicid()
107 return -ENODEV; in topo_lookup_cpuid()
231 * of the APICs via firmware parsers or VM guest in topo_register_apic()
246 * on bare metal. Allow the bogosity in a guest. in topo_register_apic()
250 pr_info_once("Ignoring hot-pluggable APIC ID %x in present package.\n", in topo_register_apic()
269 * topology_register_apic - Register an APIC in early topology maps
277 pr_err_once("APIC ID %x exceeds kernel limit of: %x\n", apic_id, MAX_LOCAL_APIC - 1); in topology_register_apic()
298 * topology_register_boot_apic - Register the boot CPU APIC
312 * topology_get_logical_id - Retrieve the logical ID at a given topology domain level
318 * real APIC IDs and backshifted normalized APIC IDs work correctly.
321 * - >= 0: The requested logical ID
322 * - -ERANGE: @apicid is out of range
323 * - -ENODEV: @apicid is not registered
331 return -ERANGE; in topology_get_logical_id()
333 return -ENODEV; in topology_get_logical_id()
340 * topology_unit_count - Retrieve the count of specified units at a given topology domain level
376 * topology_hotplug_apic - Handle a physical hotplugged APIC after boot
385 return -EINVAL; in topology_hotplug_apic()
389 return -ENODEV; in topology_hotplug_apic()
393 return -ENOSPC; in topology_hotplug_apic()
402 * topology_hotunplug_apic - Remove a physical hotplugged APIC after boot
422 * topology_apply_cmdline_limits_early - Apply topology command line limits early
481 disabled += assigned - nr_cpu_ids; in topology_init_possible_cpus()
491 disabled = allowed - assigned; in topology_init_possible_cpus()
502 __max_dies_per_package = 1U << (get_count_order(cntb) - get_count_order(cnta)); in topology_init_possible_cpus()
519 pr_info("Num. cores per package: %3u\n", __num_cores_per_package); in topology_init_possible_cpus()
521 pr_info("Num. threads per package: %3u\n", __num_threads_per_package); in topology_init_possible_cpus()
530 /* Assign CPU numbers to non-present CPUs */ in topology_init_possible_cpus()
531 for (apicid = 0; disabled; disabled--, apicid++) { in topology_init_possible_cpus()