Skip to content

Commit 800173c

Browse files
tobluxsean-jc
authored andcommitted
KVM: SVM: Use str_enabled_disabled() helper in sev_hardware_setup()
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>
1 parent 036e78a commit 800173c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kvm/svm/sev.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3051,11 +3051,11 @@ void __init sev_hardware_setup(void)
30513051
min_sev_asid, max_sev_asid);
30523052
if (boot_cpu_has(X86_FEATURE_SEV_ES))
30533053
pr_info("SEV-ES %s (ASIDs %u - %u)\n",
3054-
sev_es_supported ? "enabled" : "disabled",
3054+
str_enabled_disabled(sev_es_supported),
30553055
min_sev_asid > 1 ? 1 : 0, min_sev_asid - 1);
30563056
if (boot_cpu_has(X86_FEATURE_SEV_SNP))
30573057
pr_info("SEV-SNP %s (ASIDs %u - %u)\n",
3058-
sev_snp_supported ? "enabled" : "disabled",
3058+
str_enabled_disabled(sev_snp_supported),
30593059
min_sev_asid > 1 ? 1 : 0, min_sev_asid - 1);
30603060

30613061
sev_enabled = sev_supported;

0 commit comments

Comments
 (0)