aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorQuentin Perret <[email protected]>2025-04-16 16:08:59 +0000
committerMarc Zyngier <[email protected]>2025-05-06 08:56:18 +0000
commit6c2d4c319c7db7be883428ae1161502f3f690e60 (patch)
treefc080e78c25cc6819b2505ab4651917975689eb5 /rust/helpers/task.c
parentKVM: arm64: Don't WARN from __pkvm_host_share_guest() (diff)
downloadkernel-6c2d4c319c7db7be883428ae1161502f3f690e60.tar.gz
kernel-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/[email protected]/ Suggested-by: Will Deacon <[email protected]> Signed-off-by: Quentin Perret <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Zyngier <[email protected]>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions