Re: [PATCH v8 13/17] vfio-user: handle DMA mappings

2022-04-26 Thread Jag Raman
> On Apr 25, 2022, at 1:34 PM, Jag Raman wrote: > > > >> On Apr 25, 2022, at 5:56 AM, Stefan Hajnoczi wrote: >> >> On Tue, Apr 19, 2022 at 04:44:18PM -0400, Jagannathan Raman wrote: >>> +static void dma_unregister(vfu_ctx_t *vfu_ctx, vfu_dma_info_t *info) >>> +{ >>> + VfuObject *o = vfu_get

Re: [PATCH v8 13/17] vfio-user: handle DMA mappings

2022-04-25 Thread Jag Raman
> On Apr 25, 2022, at 5:56 AM, Stefan Hajnoczi wrote: > > On Tue, Apr 19, 2022 at 04:44:18PM -0400, Jagannathan Raman wrote: >> +static void dma_unregister(vfu_ctx_t *vfu_ctx, vfu_dma_info_t *info) >> +{ >> +VfuObject *o = vfu_get_private(vfu_ctx); >> +AddressSpace *dma_as = NULL; >> +

Re: [PATCH v8 13/17] vfio-user: handle DMA mappings

2022-04-25 Thread Stefan Hajnoczi
On Tue, Apr 19, 2022 at 04:44:18PM -0400, Jagannathan Raman wrote: > +static void dma_unregister(vfu_ctx_t *vfu_ctx, vfu_dma_info_t *info) > +{ > +VfuObject *o = vfu_get_private(vfu_ctx); > +AddressSpace *dma_as = NULL; > +MemoryRegion *mr = NULL; > +ram_addr_t offset; > + > +mr

[PATCH v8 13/17] vfio-user: handle DMA mappings

2022-04-19 Thread Jagannathan Raman
Define and register callbacks to manage the RAM regions used for device DMA Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman Reviewed-by: Stefan Hajnoczi --- hw/remote/machine.c | 5 hw/remote/vfio-user-obj.c | 55 ++