lkml.org 
[lkml]   [2020]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 2/2] drm/i915/gvt: subsitute kvm_read/write_guest with vfio_iova_rw
From
Date
On 03/01/20 02:03, Yan Zhao wrote:
> + ret = write ? vfio_iova_rw(dev, gpa, buf, len, true) :
> + vfio_iova_rw(dev, gpa, buf, len, false);
>
> return ret;

"Write" can be just the final argument to vfio_iova_rw, that is

return vfio_iova_rw(dev, gpa, buf, len, write):

Thanks,

Paolo

\
 
 \ /
  Last update: 2020-01-07 11:23    [W:0.082 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site