Re: [PATCH v4 1/8] x86/sev: Prepare for using the RMPREAD instruction to access the RMP
From: Borislav Petkov
Date: Fri Oct 25 2024 - 09:56:43 EST
On Fri, Oct 25, 2024 at 08:47:06AM -0500, Tom Lendacky wrote:
> Just wanted to show you what it looks like. There still is a lot of change
> because of the new argument and using a structure now instead of the
> direct entry.
Ah ok.
> I can change back and maybe add some more detail above the struct names if
> that suffices.
Yeah, I think "struct rmpread" is simply a strange thing to have when there is
an instruction of that name. I think the naming of the structs should aim at
being descriptive as to what they are. Hypothetical example:
struct rmpentry_as_found_in_the_rmptable ...
struct rmpentry_as_returned_by_rmpread
Now make the above shorter by keeping the information. :-)
IOW, on the one hand, "rmpentry_raw" or "rmpentry_direct" or
"rmpentry_<something>", and, OTOH, just "struct rmpentry" kinda makes sense
and it is short enough.
At least how I see it rn...
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette