diff options
| author | Roman Kisel <[email protected]> | 2025-05-07 18:22:26 +0000 |
|---|---|---|
| committer | Wei Liu <[email protected]> | 2025-05-23 16:30:56 +0000 |
| commit | 43cb39ad260a168abf6da3a48f394afff92d436b (patch) | |
| tree | 0f6d3729bc472fc2958f7bd6d9d856f1a4990681 /rust/helpers/xarray.c | |
| parent | x86/hyperv: Fix APIC ID and VP index confusion in hv_snp_boot_ap() (diff) | |
| download | kernel-43cb39ad260a168abf6da3a48f394afff92d436b.tar.gz kernel-43cb39ad260a168abf6da3a48f394afff92d436b.zip | |
arch/x86: Provide the CPU number in the wakeup AP callback
When starting APs, confidential guests and paravisor guests
need to know the CPU number, and the pattern of using the linear
search has emerged in several places. With N processors that leads
to the O(N^2) time complexity.
Provide the CPU number in the AP wake up callback so that one can
get the CPU number in constant time.
Suggested-by: Michael Kelley <[email protected]>
Signed-off-by: Roman Kisel <[email protected]>
Reviewed-by: Tom Lendacky <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Reviewed-by: Michael Kelley <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Wei Liu <[email protected]>
Message-ID: <[email protected]>
Diffstat (limited to 'rust/helpers/xarray.c')
0 files changed, 0 insertions, 0 deletions
