@@ -134,6 +136,16 @@ int hv_common_cpu_init(unsigned int cpu)After the kfree(), set *inputarg back to NULL. There's other code that
if (!(*inputarg))
return -ENOMEM;
+ if (hv_isolation_type_en_snp()) {
+ ret = set_memory_decrypted((unsigned long)*inputarg, 1);
+ if (ret) {
+ kfree(*inputarg);
tests the value of *inputarg to know if the per-CPU hypercall page has
been successfully allocated.