linux/arch
Praveen Kumar 52a535c630 x86/hyperv: fix logical processor creation
[ Upstream commit 450605c28d ]

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: 333abaf5ab (x86/hyperv: implement and use hv_smp_prepare_cpus)
Signed-off-by: Praveen Kumar <kumarpraveen@linux.microsoft.com>
Link: https://lore.kernel.org/r/20210531074046.113452-1-kumarpraveen@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2021-07-14 17:06:51 +02:00
..
alpha sched/core: Initialize the idle task with preemption disabled 2021-07-14 17:06:21 +02:00
arc sched/core: Initialize the idle task with preemption disabled 2021-07-14 17:06:21 +02:00
arm sched/core: Initialize the idle task with preemption disabled 2021-07-14 17:06:21 +02:00
arm64 KVM: arm64: Don't zero the cycle count register when PMCR_EL0.P is set 2021-07-14 17:06:47 +02:00
csky sched/core: Initialize the idle task with preemption disabled 2021-07-14 17:06:21 +02:00
h8300 arch: rearrange headers inclusion order in asm/bitops for m68k, sh and h8300 2021-05-06 19:24:11 -07:00
hexagon Merge branch 'akpm' (patches from Andrew) 2021-05-07 00:34:51 -07:00
ia64 ia64: mca_drv: fix incorrect array size calculation 2021-07-14 17:06:38 +02:00
m68k m68k: atari: Fix ATARI_KBD_CORE kconfig unmet dependency warning 2021-07-14 17:06:43 +02:00
microblaze quota: Disable quotactl_path syscall 2021-05-17 14:39:56 +02:00
mips sched/core: Initialize the idle task with preemption disabled 2021-07-14 17:06:21 +02:00
nds32 tracing updates for 5.13 2021-05-03 11:19:54 -07:00
nios2 Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2021-05-02 09:14:01 -07:00
openrisc sched/core: Initialize the idle task with preemption disabled 2021-07-14 17:06:21 +02:00
parisc sched/core: Initialize the idle task with preemption disabled 2021-07-14 17:06:21 +02:00
powerpc KVM: PPC: Book3S HV: Fix TLB management on SMT8 POWER9 and POWER10 processors 2021-07-14 17:06:27 +02:00
riscv sched/core: Initialize the idle task with preemption disabled 2021-07-14 17:06:21 +02:00
s390 mm: define default MAX_PTRS_PER_* in include/pgtable.h 2021-07-14 17:06:38 +02:00
sh sched/core: Initialize the idle task with preemption disabled 2021-07-14 17:06:21 +02:00
sparc sched/core: Initialize the idle task with preemption disabled 2021-07-14 17:06:21 +02:00
um Merge branch 'akpm' (patches from Andrew) 2021-05-07 00:34:51 -07:00
x86 x86/hyperv: fix logical processor creation 2021-07-14 17:06:51 +02:00
xtensa sched/core: Initialize the idle task with preemption disabled 2021-07-14 17:06:21 +02:00
.gitignore .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
Kconfig Add Landlock, a new LSM from Mickaël Salaün <mic@linux.microsoft.com> 2021-05-01 18:50:44 -07:00