Re: [PATCH v4 2/4] crypto: ccp - Add an API to return the supported SEV-SNP policy bits

Tom Lendacky
2025-11-13T18:58:44Z

On 11/13/25 12:52, Sean Christopherson wrote:
> On Mon, Oct 27, 2025, Tom Lendacky wrote:
>> Supported policy bits are dependent on the level of SEV firmware that is
>> currently running. Create an API to return the supported policy bits for
>> the current level of firmware.
>>
>> Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
>> ---
>
> ...
>
>> @@ -1014,6 +1031,7 @@ void *snp_alloc_firmware_page(gfp_t mask);
>> void snp_free_firmware_page(void *addr);
>> void sev_platform_shutdown(void);
>> bool sev_is_snp_ciphertext_hiding_supported(void);
>> +u64 sev_get_snp_policy_bits(void);
>>
>> #else /* !CONFIG_CRYPTO_DEV_SP_PSP */
>>
>> @@ -1052,6 +1070,8 @@ static inline void sev_platform_shutdown(void) { }
>>
>> static inline bool sev_is_snp_ciphertext_hiding_supported(void) { return false; }
>>
>> +static inline u64 sev_get_snp_policy_bits(void) { return 0; }
>
> As called out in the RFC[*], this stub is unnecesary.
>
> [*] https://lore.kernel.org/all/aMHP5EO-ucJGdHXz@google.com

Ah, sorry, missed that one. Do you want a fix up or do you want to handle it?

Thanks,
Tom