path: root/include/linux/psp-sev.h
diff options
authorTom Lendacky <>2020-04-21 12:44:49 -0500
committerHerbert Xu <>2020-04-30 15:19:33 +1000
commit97f9ac3db6612f14ac0c509e1a63ce14fd4cc0eb (patch)
treeda529da36498fa04b6ffb14f8876818d305378a0 /include/linux/psp-sev.h
parent3c2214b6027ff37945799de717c417212e1a8c54 (diff)
crypto: ccp - Add support for SEV-ES to the PSP driver
To provide support for SEV-ES, the hypervisor must provide an area of memory to the PSP. Once this Trusted Memory Region (TMR) is provided to the PSP, the contents of this area of memory are no longer available to the x86. Update the PSP driver to allocate a 1MB region for the TMR that is 1MB aligned and then provide it to the PSP through the SEV INIT command. Signed-off-by: Tom Lendacky <> Reviewed-by: Brijesh Singh <> Reviewed-by: Joerg Roedel <> Signed-off-by: Herbert Xu <>
Diffstat (limited to 'include/linux/psp-sev.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/psp-sev.h b/include/linux/psp-sev.h
index 5167bf2bfc75..7fbc8679145c 100644
--- a/include/linux/psp-sev.h
+++ b/include/linux/psp-sev.h
@@ -100,6 +100,8 @@ struct sev_data_init {
u32 tmr_len; /* In */
} __packed;
+#define SEV_INIT_FLAGS_SEV_ES 0x01
* struct sev_data_pek_csr - PEK_CSR command parameters