diff options
| author | Vincent Donnefort <vdonnefort@google.com> | 2026-10-19 10:42:58 +0100 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-10-26 07:56:01 +0000 |
| commit | 0fa4e506a054702d03d46aac9272a37f820fc2e5 (patch) | |
| tree | a69293b4036ede0eb677e47b42561b0cf3edacf8 /scripts/basic/split-include.c | |
| parent | c4c362949dcaaaabaa5db34acaa6e91b9912094c (diff) | |
| download | linux-0fa4e506a054702d03d46aac9272a37f820fc2e5.tar.gz linux-0fa4e506a054702d03d46aac9272a37f820fc2e5.zip | |
KVM: arm64: Move pkvm_selftests() after all CPUs have initialized EL2
init_subsystems() installs the hyp vector on all CPUs. By running
pkvm_selftests() in init_hyp_mode(), there's a risk for a migration to a
CPU where the hyp stub is still in place which would fail to run one of
the HVCs necessary for the selftest.
While init_subsystems() is the earliest we can call pkvm_selftests(),
move it to finalize_pkvm() to avoid having to export the selftest
function out of pkvm.c.
Fixes: bd93068340e9 ("KVM: arm64: Add selftests for the pKVM heap allocator")
Reported-by: Fuad Tabba <fuad.tabba@linux.dev>
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev>
Tested-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20261019094258.1582756-1-vdonnefort@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
