diff options
author | Quentin Perret <qperret@google.com> | 2025-04-16 19:08:59 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2025-05-06 11:56:18 +0300 |
commit | 6c2d4c319c7db7be883428ae1161502f3f690e60 (patch) | |
tree | fc080e78c25cc6819b2505ab4651917975689eb5 /tools/perf/scripts/python/flamegraph.py | |
parent | 845f126732a8126dee3f15855487121f4836131a (diff) | |
download | linux-6c2d4c319c7db7be883428ae1161502f3f690e60.tar.xz |
KVM: arm64: Selftest for pKVM transitions
We have recently found a bug [1] in the pKVM memory ownership
transitions by code inspection, but it could have been caught with a
test.
Introduce a boot-time selftest exercising all the known pKVM memory
transitions and importantly checks the rejection of illegal transitions.
The new test is hidden behind a new Kconfig option separate from
CONFIG_EL2_NVHE_DEBUG on purpose as that has side effects on the
transition checks ([1] doesn't reproduce with EL2 debug enabled).
[1] https://lore.kernel.org/kvmarm/20241128154406.602875-1-qperret@google.com/
Suggested-by: Will Deacon <will@kernel.org>
Signed-off-by: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20250416160900.3078417-4-qperret@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions