Re: [PATCH v3 4/5] vfio-user: Message-based DMA support

2023-09-15 Thread Mattias Nissler
On Thu, Sep 14, 2023 at 9:04 PM Stefan Hajnoczi wrote: > > On Thu, Sep 07, 2023 at 06:04:09AM -0700, Mattias Nissler wrote: > > Wire up support for DMA for the case where the vfio-user client does not > > provide mmap()-able file descriptors, but DMA requests must be performed > > via the VFIO-use

Re: [PATCH v3 4/5] vfio-user: Message-based DMA support

2023-09-14 Thread Stefan Hajnoczi
On Thu, Sep 07, 2023 at 06:04:09AM -0700, Mattias Nissler wrote: > Wire up support for DMA for the case where the vfio-user client does not > provide mmap()-able file descriptors, but DMA requests must be performed > via the VFIO-user protocol. This installs an indirect memory region, > which alrea

[PATCH v3 4/5] vfio-user: Message-based DMA support

2023-09-07 Thread Mattias Nissler
Wire up support for DMA for the case where the vfio-user client does not provide mmap()-able file descriptors, but DMA requests must be performed via the VFIO-user protocol. This installs an indirect memory region, which already works for pci_dma_{read,write}, and pci_dma_map works thanks to the ex