Skip to content

Commit 450bbe4

Browse files
ashkalraherbertx
authored andcommitted
crypto: ccp - New bit-field definitions for SNP_PLATFORM_STATUS command
Define new bit-field definitions returned by SNP_PLATFORM_STATUS command such as new capabilities like SNP_FEATURE_INFO command availability, ciphertext hiding enabled and capability. Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Ashish Kalra <ashish.kalra@amd.com> Reviewed-by: Kim Phillips <kim.phillips@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 8f5ae30 commit 450bbe4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

include/uapi/linux/psp-sev.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ struct sev_user_data_get_id2 {
185185
* @mask_chip_id: whether chip id is present in attestation reports or not
186186
* @mask_chip_key: whether attestation reports are signed or not
187187
* @vlek_en: VLEK (Version Loaded Endorsement Key) hashstick is loaded
188+
* @feature_info: whether SNP_FEATURE_INFO command is available
189+
* @rapl_dis: whether RAPL is disabled
190+
* @ciphertext_hiding_cap: whether platform has ciphertext hiding capability
191+
* @ciphertext_hiding_en: whether ciphertext hiding is enabled
188192
* @rsvd1: reserved
189193
* @guest_count: the number of guest currently managed by the firmware
190194
* @current_tcb_version: current TCB version
@@ -200,7 +204,11 @@ struct sev_user_data_snp_status {
200204
__u32 mask_chip_id:1; /* Out */
201205
__u32 mask_chip_key:1; /* Out */
202206
__u32 vlek_en:1; /* Out */
203-
__u32 rsvd1:29;
207+
__u32 feature_info:1; /* Out */
208+
__u32 rapl_dis:1; /* Out */
209+
__u32 ciphertext_hiding_cap:1; /* Out */
210+
__u32 ciphertext_hiding_en:1; /* Out */
211+
__u32 rsvd1:25;
204212
__u32 guest_count; /* Out */
205213
__u64 current_tcb_version; /* Out */
206214
__u64 reported_tcb_version; /* Out */

0 commit comments

Comments
 (0)