Re: [PATCH] x86/sev: Do the C-bit verification only on the BSP

From: Borislav Petkov
Date: Mon Dec 04 2023 - 17:15:13 EST


On Mon, Dec 04, 2023 at 10:06:42AM -0600, Tom Lendacky wrote:
> You're ignoring RAX now on return, so you can probably just make
> sev_verify_cbit() a void function now. You would still need to save RAX
> because of the calling convention, though, so it doesn't make this code any
> cleaner (other than the comment could then just say restore CR3 value).
> You're call, I'm good either way.

I'm thinking I should leave that change for the patch which converts
sev_verify_cbit() to C...

Thx for looking.

--
Regards/Gruss,
Boris.

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