Re: [PATCH v3 1/5] softmmu: Per-AddressSpace bounce buffering

2023-09-19 Thread Mattias Nissler
On Fri, Sep 15, 2023 at 10:37 AM Mattias Nissler wrote: > > On Wed, Sep 13, 2023 at 8:30 PM Peter Xu wrote: > > > > On Thu, Sep 07, 2023 at 06:04:06AM -0700, Mattias Nissler wrote: > > > @@ -3105,6 +3105,9 @@ void address_space_init(AddressSpace *as, > > > MemoryRegion *root, const char *name) >

Re: [PATCH v3 1/5] softmmu: Per-AddressSpace bounce buffering

2023-09-15 Thread Mattias Nissler
On Wed, Sep 13, 2023 at 8:30 PM Peter Xu wrote: > > On Thu, Sep 07, 2023 at 06:04:06AM -0700, Mattias Nissler wrote: > > @@ -3105,6 +3105,9 @@ void address_space_init(AddressSpace *as, > > MemoryRegion *root, const char *name) > > as->ioeventfds = NULL; > > QTAILQ_INIT(&as->listeners);

Re: [PATCH v3 1/5] softmmu: Per-AddressSpace bounce buffering

2023-09-13 Thread Peter Xu
On Thu, Sep 07, 2023 at 06:04:06AM -0700, Mattias Nissler wrote: > @@ -3105,6 +3105,9 @@ void address_space_init(AddressSpace *as, MemoryRegion > *root, const char *name) > as->ioeventfds = NULL; > QTAILQ_INIT(&as->listeners); > QTAILQ_INSERT_TAIL(&address_spaces, as, address_spaces

[PATCH v3 1/5] softmmu: Per-AddressSpace bounce buffering

2023-09-07 Thread Mattias Nissler
Instead of using a single global bounce buffer, give each AddressSpace its own bounce buffer. The MapClient callback mechanism moves to AddressSpace accordingly. This is in preparation for generalizing bounce buffer handling further to allow multiple bounce buffers, with a total allocation limit c