Skip to contentSkip to conversation

x86/pks: Actually skip the PKS test if PKS isn't support

PATCH Applied Sean Christopherson 1 participant 2 messages May 29, 2025 – Jun 10, 2025 KVM

lore
Share & tools
lore

Sean Christopherson

author reviewer
#0 lore raw

PATCH 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.

---
 x86/pks.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
x86/pks.c +1 -1
index bda15efc..f4d6ac83 100644
@@ -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
author reviewer Applied
#1 lore raw
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

--
https://github.com/kvm-x86/kvm-unit-tests/tree/next