# Re: \[PATCH v2 02/12\] mm: Introduce a function to check for virtualization protection features

- From: Tom Lendacky \<thomas.lendacky@amd.com\>
- Date: 2021-08-19 16:40:11 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2021/08/212793
- Thread: https://ratatoskr.run/linuxppc-dev/2021/08/212359/t.md

```text
On 8/19/21 4:46 AM, Christoph Hellwig wrote:
> On Fri, Aug 13, 2021 at 11:59:21AM -0500, Tom Lendacky wrote:
>> +#define PATTR_MEM_ENCRYPT		0	/* Encrypted memory */
>> +#define PATTR_HOST_MEM_ENCRYPT		1	/* Host encrypted memory */
>> +#define PATTR_GUEST_MEM_ENCRYPT		2	/* Guest encrypted memory */
>> +#define PATTR_GUEST_PROT_STATE		3	/* Guest encrypted state */
> 
> Please write an actual detailed explanaton of what these mean, that
> is what implications it has on the kernel.

Will do.

Thanks,
Tom

> 
```
