diff options
author | Saurabh Sengar <ssengar@linux.microsoft.com> | 2024-03-03 00:01:36 -0800 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2024-03-08 23:40:09 +0000 |
commit | 2b4b90e053a29057fb05ba81acce26bddce8d404 (patch) | |
tree | 563b6b0c779a3cfbd0da364ae1a6cfadb5158e52 /arch/arm64 | |
parent | 0e3f7d120086c8b9d6e1ae0dd4917fc529daa1ca (diff) | |
download | lwn-2b4b90e053a29057fb05ba81acce26bddce8d404.tar.gz lwn-2b4b90e053a29057fb05ba81acce26bddce8d404.zip |
x86/hyperv: Use per cpu initial stack for vtl context
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: 3be1bc2fe9d2 ("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>
Diffstat (limited to 'arch/arm64')
0 files changed, 0 insertions, 0 deletions