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