aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/psp-sev.h
diff options
context:
space:
mode:
authorJanakarajan Natarajan <Janakarajan.Natarajan@amd.com>2018-05-25 16:23:29 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2018-05-30 12:13:54 -0400
commitedd303ff0e9ebc39118e633916278b5ca8558c30 (patch)
treeed6a935943d2961fe6b0278d58a6f58ffd1e7c8e /include/linux/psp-sev.h
parent1ebe6da2f989c1ce296be69ada40e8cfc3e78b3e (diff)
crypto: ccp - Add DOWNLOAD_FIRMWARE SEV command
The DOWNLOAD_FIRMWARE command, added as of SEV API v0.15, allows the OS to install SEV firmware newer than the currently active SEV firmware. For the new SEV firmware to be applied it must: * Pass the validation test performed by the existing firmware. * Be of the same build or a newer build compared to the existing firmware. For more information please refer to "Section 5.11 DOWNLOAD_FIRMWARE" of https://support.amd.com/TechDocs/55766_SEV-KM%20API_Specification.pdf Signed-off-by: Janakarajan Natarajan <Janakarajan.Natarajan@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/psp-sev.h')
-rw-r--r--include/linux/psp-sev.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/psp-sev.h b/include/linux/psp-sev.h
index 93addfa34061..1d2496246072 100644
--- a/include/linux/psp-sev.h
+++ b/include/linux/psp-sev.h
@@ -54,6 +54,7 @@ enum sev_cmd {
54 SEV_CMD_PDH_CERT_EXPORT = 0x008, 54 SEV_CMD_PDH_CERT_EXPORT = 0x008,
55 SEV_CMD_PDH_GEN = 0x009, 55 SEV_CMD_PDH_GEN = 0x009,
56 SEV_CMD_DF_FLUSH = 0x00A, 56 SEV_CMD_DF_FLUSH = 0x00A,
57 SEV_CMD_DOWNLOAD_FIRMWARE = 0x00B,
57 58
58 /* Guest commands */ 59 /* Guest commands */
59 SEV_CMD_DECOMMISSION = 0x020, 60 SEV_CMD_DECOMMISSION = 0x020,
@@ -130,6 +131,17 @@ struct sev_data_pek_cert_import {
130} __packed; 131} __packed;
131 132
132/** 133/**
134 * struct sev_data_download_firmware - DOWNLOAD_FIRMWARE command parameters
135 *
136 * @address: physical address of firmware image
137 * @len: len of the firmware image
138 */
139struct sev_data_download_firmware {
140 u64 address; /* In */
141 u32 len; /* In */
142} __packed;
143
144/**
133 * struct sev_data_pdh_cert_export - PDH_CERT_EXPORT command parameters 145 * struct sev_data_pdh_cert_export - PDH_CERT_EXPORT command parameters
134 * 146 *
135 * @pdh_address: PDH certificate address 147 * @pdh_address: PDH certificate address