Messages in this thread | | | Date | Wed, 23 Feb 2022 08:33:35 -0600 | Subject | Re: [PATCH] x86/mm/cpa: Generalize __set_memory_enc_pgtable() | From | Brijesh Singh <> |
| |
On 2/23/22 06:38, Borislav Petkov wrote: ...
> +static void amd_enc_status_change_prepare(unsigned long vaddr, int npages, bool enc) > +{ > +} > + > +static bool amd_enc_status_change_finish(unsigned long vaddr, int npages, bool enc) > +{ > + if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) > + return false; ^^^^^
We should return true otherwise set_memory_{decrypt,encrypt} will fail for the SME case.
thanks
| |