Re: [PATCH v3 2/5] softmmu: Support concurrent bounce buffers

2023-09-15 Thread Stefan Hajnoczi
On Fri, 15 Sept 2023 at 05:55, Mattias Nissler wrote: > > On Thu, Sep 14, 2023 at 8:49 PM Stefan Hajnoczi wrote: > > > > On Thu, Sep 07, 2023 at 06:04:07AM -0700, Mattias Nissler wrote: > > > When DMA memory can't be directly accessed, as is the case when > > > running the device model in a separ

Re: [PATCH v3 2/5] softmmu: Support concurrent bounce buffers

2023-09-15 Thread Peter Xu
On Fri, Sep 15, 2023 at 11:32:31AM +0200, Mattias Nissler wrote: > > > @@ -3105,7 +3105,8 @@ void address_space_init(AddressSpace *as, > > > MemoryRegion *root, const char *name) > > > as->ioeventfds = NULL; > > > QTAILQ_INIT(&as->listeners); > > > QTAILQ_INSERT_TAIL(&address_spaces

Re: [PATCH v3 2/5] softmmu: Support concurrent bounce buffers

2023-09-15 Thread Mattias Nissler
On Thu, Sep 14, 2023 at 8:49 PM Stefan Hajnoczi wrote: > > On Thu, Sep 07, 2023 at 06:04:07AM -0700, Mattias Nissler wrote: > > When DMA memory can't be directly accessed, as is the case when > > running the device model in a separate process without shareable DMA > > file descriptors, bounce buff

Re: [PATCH v3 2/5] softmmu: Support concurrent bounce buffers

2023-09-15 Thread Mattias Nissler
On Wed, Sep 13, 2023 at 9:11 PM Peter Xu wrote: > > On Thu, Sep 07, 2023 at 06:04:07AM -0700, Mattias Nissler wrote: > > When DMA memory can't be directly accessed, as is the case when > > running the device model in a separate process without shareable DMA > > file descriptors, bounce buffering i

Re: [PATCH v3 2/5] softmmu: Support concurrent bounce buffers

2023-09-14 Thread Stefan Hajnoczi
On Thu, Sep 07, 2023 at 06:04:07AM -0700, Mattias Nissler wrote: > When DMA memory can't be directly accessed, as is the case when > running the device model in a separate process without shareable DMA > file descriptors, bounce buffering is used. > > It is not uncommon for device models to reques

Re: [PATCH v3 2/5] softmmu: Support concurrent bounce buffers

2023-09-13 Thread Peter Xu
On Thu, Sep 07, 2023 at 06:04:07AM -0700, Mattias Nissler wrote: > When DMA memory can't be directly accessed, as is the case when > running the device model in a separate process without shareable DMA > file descriptors, bounce buffering is used. > > It is not uncommon for device models to reques

[PATCH v3 2/5] softmmu: Support concurrent bounce buffers

2023-09-07 Thread Mattias Nissler
When DMA memory can't be directly accessed, as is the case when running the device model in a separate process without shareable DMA file descriptors, bounce buffering is used. It is not uncommon for device models to request mapping of several DMA regions at the same time. Examples include: * net