mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
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>
This commit is contained in:
parent
036e78a942
commit
800173cf75
|
|
@ -3051,11 +3051,11 @@ void __init sev_hardware_setup(void)
|
|||
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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user