lkml.org 
[lkml]   [2020]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] vhost: introduce vDPA based backend
    On Wed, Feb 05, 2020 at 03:50:14PM +0800, Jason Wang wrote:
    > > Would it be better for the map/umnap logic to happen inside each device ?
    > > Devices that needs the IOMMU will call iommu APIs from inside the driver callback.
    >
    > Technically, this can work. But if it can be done by vhost-vpda it will make
    > the vDPA driver more compact and easier to be implemented.

    Generally speaking, in the kernel, it is normal to not hoist code of
    out drivers into subsystems until 2-3 drivers are duplicating that
    code. It helps ensure the right design is used

    Jason

    \
     
     \ /
      Last update: 2020-02-05 13:57    [W:4.465 / U:0.148 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site