Messages in this thread | | | Date | Wed, 20 Apr 2022 07:30:01 -0700 | Subject | Re: [PATCH] x86/mm/ptdump: display page encryption state | From | Dave Hansen <> |
| |
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.
| |