[PATCH v4 19/19] kho: Add KUnit test for the feature header helpers

sashiko-bot at kernel.org sashiko-bot at kernel.org
Tue Nov 10 22:16:59 PST 2026


> Add a KUnit test suite in lib/tests/kho_feature_kunit.c covering
> the Kexec HandOver feature header declared in
> include/linux/kho/abi/feature.h.
> 
> The suite contains three focused test cases:
> - kho_ser_hdr_zero_flags_test: verifies zero-feature header
>   initialization, payload sizing, and empty feature queries.
> - kho_ser_hdr_set_get_test: verifies DECLARE_KHO_SER structure sizing,
>   header initialization, payload pointer resolution, and 1-bit
>   feature flag setting and retrieval across flags entry boundaries,
>   including out-of-range queries.
> - kho_ser_hdr_validate_test: verifies __kho_ser_validate rejecting
>   unsupported required feature flags while ignoring optional flags.
> 
> Signed-off-by: Tarun Sahu <tarunsahu at google.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261110050202.529473-1-tarunsahu@google.com?part=19




More information about the kexec mailing list