lkml.org 
[lkml]   [2022]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] x86/mm/ptdump: display page encryption state
From
On 4/20/22 00:17, Mike Rapoport wrote:
>> _PAGE_ENC is AMD-specific. Could we do this with a new generic "cc_"
>> function, maybe cc_is_enc()?
>>
>> Something like this would (I think) work for both SEV and TDX:
>>
>> bool cc_is_enc(u64 prot)
>> {
>> return cc_mkdec(prot) != prot;
>> }
> It works for SEV. I can repost with this and you'll confirm it works on
> TDX?

I don't have a TDX setup handy, but Kirill certainly does. I'm sure
he'd be happy to give you a tested-by.

\
 
 \ /
  Last update: 2022-04-20 16:31    [W:0.039 / U:0.696 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site