aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorQuentin Perret <qperret@google.com>2025-04-16 16:08:59 +0000
committerMarc Zyngier <maz@kernel.org>2025-05-06 09:56:18 +0100
commit6c2d4c319c7db7be883428ae1161502f3f690e60 (patch)
treefc080e78c25cc6819b2505ab4651917975689eb5 /scripts/lib/kdoc/kdoc_files.py
parentKVM: arm64: Don't WARN from __pkvm_host_share_guest() (diff)
downloadlinux-rng-6c2d4c319c7db7be883428ae1161502f3f690e60.tar.xz
linux-rng-6c2d4c319c7db7be883428ae1161502f3f690e60.zip
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 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions