Skip to content
Commit 450605c2 authored by Praveen Kumar's avatar Praveen Kumar Committed by Wei Liu
Browse files

x86/hyperv: fix logical processor creation

Microsoft Hypervisor expects the logical processor index to be the same
as CPU's index during logical processor creation. Using cpu_physical_id
confuses hypervisor's scheduler. That causes the root partition not boot
when core scheduler is used.

This patch removes the call to cpu_physical_id and uses the CPU index
directly for bringing up logical processor. This scheme works for both
classic scheduler and core scheduler.

Fixes: 333abaf5

 (x86/hyperv: implement and use hv_smp_prepare_cpus)
Signed-off-by: default avatarPraveen Kumar <kumarpraveen@linux.microsoft.com>
Link: https://lore.kernel.org/r/20210531074046.113452-1-kumarpraveen@linux.microsoft.com
Signed-off-by: default avatarWei Liu <wei.liu@kernel.org>
parent c6a8625f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment