Re: [PATCH 2/2] drm/i915/gvt: subsitute kvm_read/write_guest with vfio_iova_rw

From: Paolo Bonzini
Date: Tue Jan 07 2020 - 05:21:54 EST


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