linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86/mm: Fix spacing within memory encryption features message
@ 2022-04-18 16:16 Tom Lendacky
  2022-04-19 12:10 ` Kirill A. Shutemov
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Lendacky @ 2022-04-18 16:16 UTC (permalink / raw)
  To: linux-kernel, x86
  Cc: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen,
	Andy Lutomirski, Peter Zijlstra, Kirill A. Shutemov,
	Kuppuswamy Sathyanarayanan

The spacing is off in the memory encryption features message on AMD
platforms that support memory encryption, e.g.:

  "Memory Encryption Features active:AMD  SEV SEV-ES"

There is no space before "AMD" and two spaces after it. Fix this so that
the message is spaced properly:

  "Memory Encryption Features active: AMD SEV SEV-ES"

Fixes: 968b493173ac ("x86/mm: Make DMA memory shared for TD guest")
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
---
 arch/x86/mm/mem_encrypt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/mm/mem_encrypt.c b/arch/x86/mm/mem_encrypt.c
index 74c09cc46d38..11350e2fd736 100644
--- a/arch/x86/mm/mem_encrypt.c
+++ b/arch/x86/mm/mem_encrypt.c
@@ -49,7 +49,7 @@ static void print_mem_encrypt_feature_info(void)
 		return;
 	}
 
-	pr_cont("AMD ");
+	pr_cont(" AMD");
 
 	/* Secure Memory Encryption */
 	if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] x86/mm: Fix spacing within memory encryption features message
  2022-04-18 16:16 [PATCH] x86/mm: Fix spacing within memory encryption features message Tom Lendacky
@ 2022-04-19 12:10 ` Kirill A. Shutemov
  0 siblings, 0 replies; 2+ messages in thread
From: Kirill A. Shutemov @ 2022-04-19 12:10 UTC (permalink / raw)
  To: Tom Lendacky
  Cc: linux-kernel, x86, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
	Dave Hansen, Andy Lutomirski, Peter Zijlstra,
	Kuppuswamy Sathyanarayanan

On Mon, Apr 18, 2022 at 11:16:13AM -0500, Tom Lendacky wrote:
> The spacing is off in the memory encryption features message on AMD
> platforms that support memory encryption, e.g.:
> 
>   "Memory Encryption Features active:AMD  SEV SEV-ES"
> 
> There is no space before "AMD" and two spaces after it. Fix this so that
> the message is spaced properly:
> 
>   "Memory Encryption Features active: AMD SEV SEV-ES"
> 
> Fixes: 968b493173ac ("x86/mm: Make DMA memory shared for TD guest")
> Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>

Oops. Sorry for that.

Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>

-- 
 Kirill A. Shutemov

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-19 12:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-18 16:16 [PATCH] x86/mm: Fix spacing within memory encryption features message Tom Lendacky
2022-04-19 12:10 ` Kirill A. Shutemov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).