summaryrefslogtreecommitdiffstats
path: root/arch/x86/coco
diff options
context:
space:
mode:
authorPavan Kumar Paluri <papaluri@amd.com>2024-07-29 20:08:08 +0200
committerBorislav Petkov (AMD) <bp@alien8.de>2024-07-30 10:07:26 +0200
commitc14e4114582c20276467226387d5bae7310a849e (patch)
tree1ec4b40d3a09680e3c908930a088b506156ee5ac /arch/x86/coco
parentx86/aperfmperf: Fix deadlock on cpu_hotplug_lock (diff)
downloadlinux-c14e4114582c20276467226387d5bae7310a849e.tar.xz
linux-c14e4114582c20276467226387d5bae7310a849e.zip
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 <papaluri@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20240729180808.366587-1-papaluri@amd.com
Diffstat (limited to 'arch/x86/coco')
-rw-r--r--arch/x86/coco/sev/core.c2
1 files changed, 1 insertions, 1 deletions
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;