[RFC PATCH 2/9] x86: AMD changes for Secure Launch Resource Table header file

Sergii Dmytruk posted 9 patches 1 year ago
There is a newer version of this series
[RFC PATCH 2/9] x86: AMD changes for Secure Launch Resource Table header file
Posted by Sergii Dmytruk 1 year ago
From: Ross Philipson <ross.philipson@oracle.com>

Introduce the AMD info table that allows the SLRT to be linked in as a
setup_data entry. This allows the SLRT to be found and in addition all
the DLMR information needed by the SKL (Secure Kernel Loader).

Signed-off-by: Ross Philipson <ross.philipson@oracle.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
---
 include/linux/slr_table.h | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/include/linux/slr_table.h b/include/linux/slr_table.h
index a44fd6fbce23..5b9a4f5641a6 100644
--- a/include/linux/slr_table.h
+++ b/include/linux/slr_table.h
@@ -176,6 +176,21 @@ struct slr_entry_intel_info {
 	struct slr_txt_mtrr_state saved_bsp_mtrrs;
 } __packed;
 
+/*
+ * AMD SKINIT Info table
+ */
+struct slr_entry_amd_info {
+	struct slr_entry_hdr hdr;
+	u64 next;
+	u32 type;
+	u32 len;
+	u64 slrt_size;
+	u64 slrt_base;
+	u64 boot_params_base;
+	u16 psp_version;
+	u16 reserved[3];
+} __packed;
+
 /*
  * UEFI config measurement entry
  */
-- 
2.47.1