On 21.01.25 09:50, Wencheng Yang wrote:
hi, David,


Hi,

 > I'm wondering: isn't this something the kernel should be able to figure
 > out? Is this encrypted RAM (SMA) or not, and set the flag accordingly?
 > What are the challenges?

VFIO driver and IOMMU driver don't know the device(memory or device mmio) behind vaddr, only device driver knows that, now that the device is managed by user space VFIO,
user should tell the info to VFIO driver.

what I am wondering was is: does it ever make sense to set the SME PTE flag on anything that is not ordinary system RAM?

IOW: in which scenarios would we set it on a PTE that targets device memory or device MMIO?

--
Cheers,

David / dhildenb


Reply via email to