On 7/5/24 11:42, Mattias Nissler wrote:
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
configured per AddressSpace.

Reviewed-by: Peter Xu <[email protected]>
Tested-by: Jonathan Cameron <[email protected]>
Signed-off-by: Mattias Nissler <[email protected]>
---
  include/exec/cpu-common.h |   2 -
  include/exec/memory.h     |  45 ++++++++++++++++-
  system/dma-helpers.c      |   4 +-
  system/memory.c           |   7 +++
  system/physmem.c          | 101 ++++++++++++++++----------------------
  5 files changed, 93 insertions(+), 66 deletions(-)

This patch has been split in 2 simpler -- IMHO -- parts here:
https://lore.kernel.org/qemu-devel/[email protected]/


Reply via email to