Re: [PATCH 1/3] softmmu: Support concurrent bounce buffers

2023-08-23 Thread Mattias Nissler
On Thu, Jul 20, 2023 at 8:10 PM Stefan Hajnoczi wrote: > > On Tue, Jul 04, 2023 at 01:06:25AM -0700, Mattias Nissler wrote: > > It is not uncommon for device models to request mapping of several DMA > > regions at the same time. An example is igb (and probably other net > > devices as well) when a

Re: [PATCH 1/3] softmmu: Support concurrent bounce buffers

2023-07-20 Thread Stefan Hajnoczi
On Tue, Jul 04, 2023 at 01:06:25AM -0700, Mattias Nissler wrote: > +if (qatomic_dec_fetch(&bounce_buffers_in_use) == 1) { > +cpu_notify_map_clients(); > } About my comment regarding removing this API: I see the next patch does that. Stefan signature.asc Description:

Re: [PATCH 1/3] softmmu: Support concurrent bounce buffers

2023-07-20 Thread Stefan Hajnoczi
On Tue, Jul 04, 2023 at 01:06:25AM -0700, Mattias Nissler wrote: > It is not uncommon for device models to request mapping of several DMA > regions at the same time. An example is igb (and probably other net > devices as well) when a packet is spread across multiple descriptors. > > In order to su

[PATCH 1/3] softmmu: Support concurrent bounce buffers

2023-07-04 Thread Mattias Nissler
It is not uncommon for device models to request mapping of several DMA regions at the same time. An example is igb (and probably other net devices as well) when a packet is spread across multiple descriptors. In order to support this when indirect DMA is used, as is the case when running the devic