Messages in this thread |  | | Subject | Re: [PATCH 2/2] drm/i915/gvt: subsitute kvm_read/write_guest with vfio_iova_rw | From | Paolo Bonzini <> | Date | Tue, 7 Jan 2020 11:21:48 +0100 |
| |
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
|  |