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