Re: [PATCH RFC v2 08/16] vfio-user: get region info

2021-09-08 Thread Stefan Hajnoczi
On Thu, Sep 09, 2021 at 05:35:40AM +, John Johnson wrote: > > > > On Sep 7, 2021, at 7:31 AM, Stefan Hajnoczi wrote: > > > > On Mon, Aug 16, 2021 at 09:42:41AM -0700, Elena Ufimtseva wrote: > >> @@ -1514,6 +1515,16 @@ bool vfio_get_info_dma_avail(struct > >> vfio_iommu_type1_info *info, >

Re: [PATCH RFC v2 08/16] vfio-user: get region info

2021-09-08 Thread John Johnson
> On Sep 7, 2021, at 7:31 AM, Stefan Hajnoczi wrote: > > On Mon, Aug 16, 2021 at 09:42:41AM -0700, Elena Ufimtseva wrote: >> @@ -1514,6 +1515,16 @@ bool vfio_get_info_dma_avail(struct >> vfio_iommu_type1_info *info, >> return true; >> } >> >> +static int

Re: [PATCH RFC v2 08/16] vfio-user: get region info

2021-09-07 Thread Stefan Hajnoczi
On Mon, Aug 16, 2021 at 09:42:41AM -0700, Elena Ufimtseva wrote: > @@ -1514,6 +1515,16 @@ bool vfio_get_info_dma_avail(struct > vfio_iommu_type1_info *info, > return true; > } > > +static int vfio_get_region_info_remfd(VFIODevice *vbasedev, int index) > +{ > +struct vfio_region_info

[PATCH RFC v2 08/16] vfio-user: get region info

2021-08-16 Thread Elena Ufimtseva
From: John Johnson Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hw/vfio/user-protocol.h | 14 +++ hw/vfio/user.h| 2 + include/hw/vfio/vfio-common.h | 3 ++ hw/vfio/common.c | 76