Re: [RFC PATCH V5 09/15] x86/hyperv: Add smp support for sev-snp guest

Tianyu Lan
2023-05-04T15:52:12Z

On 5/1/2023 8:46 AM, Tom Lendacky wrote:
>> +    vmsa->sev_features.snp = 1;
>> +    vmsa->sev_features.restrict_injection = 1;
>
> So this means that any other feature bits set in the BSP won't be set in
> the AP? Shouldn't you be using the BSP value and checking to be sure
> what you really want set is set?

So far, the snp flag is enough. You are right that we need to keep it as
same value on the both BSP and APs. will update in the next version.