From: Pavan Kumar Paluri Date: Mon, 29 Jul 2024 18:08:08 +0000 (-0500) Subject: x86/sev: Fix __reserved field in sev_config X-Git-Tag: v6.11-rc2~2^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c14e4114582c20276467226387d5bae7310a849e;p=thirdparty%2Fkernel%2Flinux.git x86/sev: Fix __reserved field in sev_config 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") Signed-off-by: Pavan Kumar Paluri Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/20240729180808.366587-1-papaluri@amd.com --- diff --git a/arch/x86/coco/sev/core.c b/arch/x86/coco/sev/core.c index 082d61d85dfc1..de1df0cb45dab 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;