lkml.org 
[lkml]   [2023]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRE: [PATCH v2 08/14] vfio: Add infrastructure for bind_iommufd from userspace
    Date
    > From: Liu, Yi L <yi.l.liu@intel.com>
    > Sent: Monday, February 6, 2023 5:05 PM
    >
    > For the device fd opened from cdev, userspace needs to bind it to an
    > iommufd and attach it to IOAS managed by iommufd. With such operations,
    > userspace can set up a secure DMA context and hence access device.
    >
    > This changes the existing vfio_iommufd_bind() to accept a pt_id pointer
    > as an optional input, and also an dev_id pointer to selectively return
    > the dev_id to prepare for adding bind_iommufd ioctl, which does the bind
    > first and then attach IOAS.
    >
    > Signed-off-by: Yi Liu <yi.l.liu@intel.com>

    Reviewed-by: Kevin Tian <kevin.tian@intel.com>

    \
     
     \ /
      Last update: 2023-03-27 00:12    [W:4.215 / U:0.064 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site