Skip to content

exec/memory: Rework some address and access size limits

Philippe Mathieu-Daudé qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6target/s390x/mmu_helper: Use address_space_rw() in placetarget/s390x/mmu_helper.c+4 -21 reply
2/6hw/dma/rc4030: Use DMA address space to do DMA accesseshw/dma/rc4030.c+2 -10 replies
3/6hw/sd/allwinner-sdhost: Do DMA accesses via DMA address spacehw/sd/allwinner-sdhost.c include/hw/sd/allwinner-sdhost.h+34 -61 reply
4/6exec/cpu-common: Do not restrict CPU to 32-bit memory access maximumhw/usb/hcd-musb.c include/exec/cpu-common.h+8 -82 replies
5/6exec: Restrict 32-bit CPUs to 32-bit address spaceexec.c+9 -14 replies
6/6memory: Use CPU register size as default access_size_maxmemory.c+1 -12 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchDavid Hildenbrand
1/6R-b
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] exec/memory: Rework some address and access size limits

These patches are extracted from a bigger series which
- remove generic ISA space, restricting it to the hw that really has it (mostly PCI-ISA bridges)
- allow QTest/GDB to use any address space
- make I/O address space target-specific (only X86 and AVR have a CPU connected to it)
- better handle Harvard architectures

Various patches only make sense if the AVR arch is merged, so instead of waiting and keeping rebasing/testing, let's share what is generic and might be worthwhile.

Currently the QMP/QTest commands only use the 1st CPU address space, which has already been reported to limit fuzzing/fault_injection/gdbstub.

I'll probably follow with the PCI-ISA bridge part, but let's first see the feedback for this batch.

Regards,

Phil.

Philippe Mathieu-Daudé (6):
target/s390x/mmu_helper: Use address_space_rw() in place hw/dma/rc4030: Use DMA address space to do DMA accesses hw/sd/allwinner-sdhost: Do DMA accesses via DMA address space exec/cpu-common: Do not restrict CPU to 32-bit memory access maximum
exec: Restrict 32-bit CPUs to 32-bit address space
memory: Use CPU register size as default access_size_max

 include/exec/cpu-common.h        |  4 ++--
 include/hw/sd/allwinner-sdhost.h |  4 ++++
 exec.c                           | 10 ++++++++-
 hw/dma/rc4030.c                  |  3 ++-
 hw/sd/allwinner-sdhost.c         | 36 ++++++++++++++++++++++++++------
 hw/usb/hcd-musb.c                | 12 +++++------
 memory.c                         |  2 +-
 target/s390x/mmu_helper.c        |  6 ++++--
 8 files changed, 58 insertions(+), 19 deletions(-)
Signature · 1 line
2.21.3