Re: [PATCH v8 4/5] x86/mm: Add noalias variants of set_memory_*crypted() functions

Kai Huang
2022-06-28T01:15:40Z

>
> I still don't like the idea of using the DMA API itself. But, maybe we
> need some common infrastructure that the DMA API and this code use which
> says, "get me some pages that I can safely make shared".

Right. For instance any KVM PV feature would require shared memory, and DMA API
normally doesn't fit (taking 'struct kvm_steal_time' as example).

Maybe we can reserve a CMA for this purpose.

--
Thanks,
-Kai