Re: [RFC PATCH 0/6] Add AMD Secure Nested Paging (SEV-SNP) support

Brijesh Singh
2021-07-13T14:01:27Z

On 7/13/21 3:05 AM, Dov Murik wrote:>
> Particularly confusing is the `policy` attribute which is only relevant
> for SEV / SEV-ES, while there's a new `snp.policy` attribute for SNP...
> Maybe the irrelevant attributes should not be added to the tree when not
> in SNP.

The policy fields are also applicable to the SNP. The main difference are:

- in SEV/SEV-ES the policy is 32-bit compare to 64-bit value in SEV-SNP.
However, for SEV-SNP spec uses lower 32-bit value and higher bits are
marked reserved.

- the bit field meaning are different

Based on this, we can introduce a new filed 'snp-policy'.

-Brijesh