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 <pet...@redhat.com>
Tested-by: Jonathan Cameron <jonathan.came...@huawei.com>
Signed-off-by: Mattias Nissler <mniss...@rivosinc.com>
---
  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/20240507123025.93391-1-phi...@linaro.org/


Reply via email to