# Re: \[PATCH v2 00/12\] Implement generic prot\_guest\_has() helper function

- From: Tom Lendacky \<thomas.lendacky@amd.com\>
- Date: 2021-08-13 17:22:59 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2021/08/212374
- Thread: https://ratatoskr.run/linuxppc-dev/2021/08/212359/t.md

```text
On 8/13/21 11:59 AM, Tom Lendacky wrote:
> This patch series provides a generic helper function, prot_guest_has(),
> to replace the sme_active(), sev_active(), sev_es_active() and
> mem_encrypt_active() functions.
>
> It is expected that as new protected virtualization technologies are
> added to the kernel, they can all be covered by a single function call
> instead of a collection of specific function calls all called from the
> same locations.
>
> The powerpc and s390 patches have been compile tested only. Can the
> folks copied on this series verify that nothing breaks for them.

There are some patches related to PPC that added new calls to the mem_encrypt_active() function that are not yet in the tip tree. After the merge window, I'll need to send a v3 with those additional changes before this series can be applied.

Thanks,
Tom
```
