lkml.org 
[lkml]   [2024]   [Apr]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v3 02/14] x86/sev: Make the VMPL0 checking function more generic
From
On 4/17/24 15:50, Borislav Petkov wrote:
> On Wed, Apr 17, 2024 at 03:35:53PM -0500, Tom Lendacky wrote:
>
> Yap.
>
> The point is, it is calling RMPADJUST. And it does modify RMP
> permissions of a guest page.
>
> Thus, if you prefer, you can go all out and call the helper
>
> rmp_adjust_permissions(unsigned int tgt_vmpl, void *pa)
>
> and make it generic from the get-go.

I think I'll just eliminate the function then and call rmpadjust directly,
that should make it clear.

Thanks,
Tom

>
> And then have the macro wrap around it in order to explain that
> particular use with the macro name.
>
> If it is still not clear what I mean, lemme know and I'll do a diff
> ontop.
>
> Thx.
>

\
 
 \ /
  Last update: 2024-04-18 20:39    [W:0.642 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site