On 14.09.2022 01:31, Stefano Stabellini wrote:
> The problem is that drivers/xen/privcmd.c:privcmd_mmap sets VM_IO |
> VM_PFNMAP, and either flag would cause check_vma_flags to return
> -EFAULT.
> 
> Do you know if it works if you remove VM_IO | VM_PFNMAP from
> privcmd_mmap?

My Linux MM knowledge is certainly rusty, but I don't think this can
work, at the very least not without further changes elsewhere. I did
look some at the specific use by the TEE subsystem, and it looks to
me as if their "shared memory" machinery simply isn't meant to be
used with non-local memory.

Jan

Reply via email to