x86/pks: Actually skip the PKS test if PKS isn't support
Sean Christopherson
reviewerPATCH 1/1 x86/pks: Actually skip the PKS test if PKS isn't support
Use report_skip() to call out that PKS isn't supported so that the report is accurate, which is especially important for EFI builds, which report a FAIL if no tests were run.
Signed-off-by Sean Christopherson <[email protected]>
--- x86/pks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
x86/pks.c +1 -1
@@ -69,7 +69,7 @@ int main(int ac, char **av)unsigned int pkrs_wd =0x20 ;if (!this_cpu_has (X86_FEATURE_PKS )) { -printf ("PKS not enabled\n" ); +report_skip ("PKS not enabled\n" );return report_summary (); }
base-commit: 72d110d8286baf1b355301cc8c8bdb42be2663fb
Signature · 1 line
2.49.0.1204.g71687c7c1d-goog
Quoted 3 lines · Sean Christopherson
Use
report_skip()to call out that PKS isn't supported so that the report is accurate, which is especially important for EFI builds, which report a FAIL if no tests were run.
Applied to kvm-x86 next, thanks!
[1/1] x86/pks: Actually skip the PKS test if PKS isn't support
https://github.com/kvm-x86/kvm-unit-tests/commit/61cfd6dd3fb8