public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/sev: Fix __reserved field in sev_config
@ 2024-07-29 18:08 Pavan Kumar Paluri
  2024-07-29 19:32 ` Borislav Petkov
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Pavan Kumar Paluri @ 2024-07-29 18:08 UTC (permalink / raw)
  To: linux-kernel
  Cc: Borislav Petkov, Thomas Gleixner, Ingo Molnar, Dave Hansen,
	Tom Lendacky, Ashish Kalra, Michael Roth, Pavan Kumar Paluri,
	stable

sev_config currently has debug, ghcbs_initialized, and use_cas fields.
However, __reserved count has not been updated. Fix this.

Fixes: 34ff65901735 ("x86/sev: Use kernel provided SVSM Calling Areas")
Cc: stable@vger.kernel.org
Signed-off-by: Pavan Kumar Paluri <papaluri@amd.com>
---
 arch/x86/coco/sev/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/coco/sev/core.c b/arch/x86/coco/sev/core.c
index 082d61d85dfc..de1df0cb45da 100644
--- a/arch/x86/coco/sev/core.c
+++ b/arch/x86/coco/sev/core.c
@@ -163,7 +163,7 @@ struct sev_config {
 	       */
 	      use_cas		: 1,
 
-	      __reserved	: 62;
+	      __reserved	: 61;
 };
 
 static struct sev_config sev_cfg __read_mostly;
-- 
2.34.1


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

end of thread, other threads:[~2024-07-30 13:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-29 18:08 [PATCH] x86/sev: Fix __reserved field in sev_config Pavan Kumar Paluri
2024-07-29 19:32 ` Borislav Petkov
2024-07-29 23:45   ` Paluri, PavanKumar
2024-07-30  5:59     ` Borislav Petkov
2024-07-30  8:24 ` [tip: x86/urgent] " tip-bot2 for Pavan Kumar Paluri
2024-07-30 13:22 ` [PATCH] " Tom Lendacky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox