Re: [Qemu-devel] [PATCH v4 2/9] util: Introduce vfio helpers

2018-01-11 Thread Fam Zheng
On Wed, 01/10 13:09, Alex Williamson wrote: > On Wed, 10 Jan 2018 17:18:39 +0800 > Fam Zheng wrote: > > > This is a library to manage the host vfio interface, which could be used > > to implement userspace device driver code in QEMU such as NVMe or net > > controllers. > > > > Signed-off-by: Fam

Re: [Qemu-devel] [PATCH v4 2/9] util: Introduce vfio helpers

2018-01-11 Thread Fam Zheng
On Wed, 01/10 16:52, Stefan Hajnoczi wrote: > On Wed, Jan 10, 2018 at 05:18:39PM +0800, Fam Zheng wrote: > > +/* Map [host, host + size) area into a contiguous IOVA address space, and > > store > > + * the result in @iova if not NULL. The caller need to make sure the area > > is > > + * aligned t

Re: [Qemu-devel] [PATCH v4 2/9] util: Introduce vfio helpers

2018-01-10 Thread Alex Williamson
On Wed, 10 Jan 2018 17:18:39 +0800 Fam Zheng wrote: > This is a library to manage the host vfio interface, which could be used > to implement userspace device driver code in QEMU such as NVMe or net > controllers. > > Signed-off-by: Fam Zheng > --- > include/qemu/vfio-helpers.h | 30 ++ > uti

Re: [Qemu-devel] [PATCH v4 2/9] util: Introduce vfio helpers

2018-01-10 Thread Stefan Hajnoczi
On Wed, Jan 10, 2018 at 05:18:39PM +0800, Fam Zheng wrote: > +/* Map [host, host + size) area into a contiguous IOVA address space, and > store > + * the result in @iova if not NULL. The caller need to make sure the area is > + * aligned to page size, and mustn't overlap with existing mapping area

[Qemu-devel] [PATCH v4 2/9] util: Introduce vfio helpers

2018-01-10 Thread Fam Zheng
This is a library to manage the host vfio interface, which could be used to implement userspace device driver code in QEMU such as NVMe or net controllers. Signed-off-by: Fam Zheng --- include/qemu/vfio-helpers.h | 30 ++ util/Makefile.objs | 1 + util/trace-events | 11 +