linux-stable/arch/x86/hyperv
Saurabh Sengar 53c3716d17 x86/hyperv: Use per cpu initial stack for vtl context
[ Upstream commit 2b4b90e053 ]

Currently, the secondary CPUs in Hyper-V VTL context lack support for
parallel startup. Therefore, relying on the single initial_stack fetched
from the current task structure suffices for all vCPUs.

However, common initial_stack risks stack corruption when parallel startup
is enabled. In order to facilitate parallel startup, use the initial_stack
from the per CPU idle thread instead of the current task.

Fixes: 3be1bc2fe9 ("x86/hyperv: VTL support for Hyper-V")
Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/1709452896-13342-1-git-send-email-ssengar@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <1709452896-13342-1-git-send-email-ssengar@linux.microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:17:30 -04:00
..
Makefile x86/hyperv: VTL support for Hyper-V 2023-04-18 17:29:52 +00:00
hv_apic.c arch/x86: Fix typos 2024-01-03 11:46:22 +01:00
hv_init.c x86/hyperv: Fix the detection of E820_TYPE_PRAM in a Gen2 VM 2023-11-12 22:50:30 +00:00
hv_proc.c drivers: hv: Create a consistent pattern for checking Hyper-V hypercall status 2021-04-21 09:49:19 +00:00
hv_spinlock.c x86/apic: Wrap IPI calls into helper functions 2023-08-09 12:00:55 -07:00
hv_vtl.c x86/hyperv: Use per cpu initial stack for vtl context 2024-03-26 18:17:30 -04:00
irqdomain.c arch/x86: Fix typos 2024-01-03 11:46:22 +01:00
ivm.c x86/hyperv: Make encrypted/decrypted changes safe for load_unaligned_zeropad() 2024-03-01 08:31:42 +00:00
mmu.c x86/hyperv: Improve code for referencing hyperv_pcpu_input_arg 2023-06-28 17:53:25 +00:00
nested.c x86/hyperv: Improve code for referencing hyperv_pcpu_input_arg 2023-06-28 17:53:25 +00:00