Re: [PATCH v1 24/26] crypto: ccp: Add the SNP_PLATFORM_STATUS command

Borislav Petkov
2024-01-21T12:30:06Z

On Sat, Dec 30, 2023 at 10:19:52AM -0600, Michael Roth wrote:
> + /* Change the page state before accessing it */
> + if (snp_reclaim_pages(__pa(data), 1, true)) {
> + snp_leak_pages(__pa(data) >> PAGE_SHIFT, 1);
> + return -EFAULT;
> + }

This looks weird and it doesn't explain why this needs to happen.
SNP_PLATFORM_STATUS text doesn't explain either.

So, what's up?

--
Regards/Gruss,
Boris.