Skip to content

Commit 4c334c6

Browse files
tobluxsean-jc
authored andcommitted
KVM: SVM: Use str_enabled_disabled() helper in svm_hardware_setup()
Remove hard-coded strings by using the str_enabled_disabled() helper function. Suggested-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://lore.kernel.org/r/20250110101100.272312-2-thorsten.blum@linux.dev Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent 800173c commit 4c334c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/x86/kvm/svm/svm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <linux/rwsem.h>
2929
#include <linux/cc_platform.h>
3030
#include <linux/smp.h>
31+
#include <linux/string_choices.h>
3132

3233
#include <asm/apic.h>
3334
#include <asm/perf_event.h>
@@ -5332,7 +5333,7 @@ static __init int svm_hardware_setup(void)
53325333
/* Force VM NPT level equal to the host's paging level */
53335334
kvm_configure_mmu(npt_enabled, get_npt_level(),
53345335
get_npt_level(), PG_LEVEL_1G);
5335-
pr_info("Nested Paging %sabled\n", npt_enabled ? "en" : "dis");
5336+
pr_info("Nested Paging %s\n", str_enabled_disabled(npt_enabled));
53365337

53375338
/* Setup shadow_me_value and shadow_me_mask */
53385339
kvm_mmu_set_me_spte_mask(sme_me_mask, sme_me_mask);

0 commit comments

Comments
 (0)