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

From: Borislav Petkov
Date: Sun Jan 21 2024 - 07:30:17 EST


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.

https://people.kernel.org/tglx/notes-about-netiquette