]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
KVM: SVM: Use str_enabled_disabled() helper in sev_hardware_setup()
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 27 Dec 2024 09:44:51 +0000 (10:44 +0100)
committerSean Christopherson <seanjc@google.com>
Wed, 8 Jan 2025 22:08:41 +0000 (14:08 -0800)
Remove hard-coded strings by using the str_enabled_disabled() helper
function.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Pavan Kumar Paluri <papaluri@amd.com>
Reviewed-by: Nikunj A Dadhania <nikunj@amd.com>
Link: https://lore.kernel.org/r/20241227094450.674104-2-thorsten.blum@linux.dev
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/sev.c

index 943bd074a5d37212a1fdf1f01e42f1c8f0e416c6..87ed8cde68a70b846878e0786204820767d48b0d 100644 (file)
@@ -3051,11 +3051,11 @@ out:
                        min_sev_asid, max_sev_asid);
        if (boot_cpu_has(X86_FEATURE_SEV_ES))
                pr_info("SEV-ES %s (ASIDs %u - %u)\n",
-                       sev_es_supported ? "enabled" : "disabled",
+                       str_enabled_disabled(sev_es_supported),
                        min_sev_asid > 1 ? 1 : 0, min_sev_asid - 1);
        if (boot_cpu_has(X86_FEATURE_SEV_SNP))
                pr_info("SEV-SNP %s (ASIDs %u - %u)\n",
-                       sev_snp_supported ? "enabled" : "disabled",
+                       str_enabled_disabled(sev_snp_supported),
                        min_sev_asid > 1 ? 1 : 0, min_sev_asid - 1);
 
        sev_enabled = sev_supported;