From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-174.mta0.migadu.com (out-174.mta0.migadu.com [91.218.175.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB42320ADD2 for ; Fri, 10 Jan 2025 10:11:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736503918; cv=none; b=KVgVmu0yJGBPeF8jmx00TeLXceKWzYzFp4vZ+bx1DuE2GkYwp1wi24Iw3Szn2ioWOsP3ggqbTQVJCYArWWOTBhObuapAfOd+XGme5/4y8x3Qyw9G/dQiq7Lq/nZaxTfZHYxmILg9uTlyMDv8upDzcIPVuSSkPYkrs53Qt8RKXxM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736503918; c=relaxed/simple; bh=G1AyobH0IOg0TPIvMe8N364pCsW37FBTfeUc6bXwE/I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h9e0egtozvZK5Qn6ismZqrrmUp7teVTIuWmWe38MMaZFVsy2HZ80GH+YXw4dJTJP0206ooQxqus5589UcXblXE87o7p+WllOLjhZ+Vm2B5THQgmy1yiEK4NcX2SFEzPpQB8iM+VKIHCup3Q0HzaBXGV6kZxGtT1hIxZe9BTbnso= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=Z1U7K894; arc=none smtp.client-ip=91.218.175.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Z1U7K894" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1736503908; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=9Zur2DLealPSnFJgzW8QqdXP4mA+MiHyBCWGmZ1vfD0=; b=Z1U7K8940r7DCx4pkrb5AY0UJ22Fnjb6mmpZrbrgwepKlXF6hTYm5NMULcoDA5dUsPG0eY +csd7cpcqxehVkTvR5wviSmxSNXhcaOxfEQCAXaCLoowyvufgN/GJpMg2U4ozwy/0+7OZX oiT1aLugokhZRTjO1aXjK+SiGH8cngA= From: Thorsten Blum To: Sean Christopherson , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" Cc: Thorsten Blum , Christophe JAILLET , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] KVM: SVM: Use str_enabled_disabled() helper in svm_hardware_setup() Date: Fri, 10 Jan 2025 11:11:00 +0100 Message-ID: <20250110101100.272312-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Remove hard-coded strings by using the str_enabled_disabled() helper function. Suggested-by: Christophe JAILLET Signed-off-by: Thorsten Blum --- arch/x86/kvm/svm/svm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index 21dacd312779..bce562548a6a 100644 --- a/arch/x86/kvm/svm/svm.c +++ b/arch/x86/kvm/svm/svm.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include @@ -5328,7 +5329,7 @@ static __init int svm_hardware_setup(void) /* Force VM NPT level equal to the host's paging level */ kvm_configure_mmu(npt_enabled, get_npt_level(), get_npt_level(), PG_LEVEL_1G); - pr_info("Nested Paging %sabled\n", npt_enabled ? "en" : "dis"); + pr_info("Nested Paging %s\n", str_enabled_disabled(npt_enabled)); /* Setup shadow_me_value and shadow_me_mask */ kvm_mmu_set_me_spte_mask(sme_me_mask, sme_me_mask); -- 2.47.1