Skip to content

Remove cpu_register_io_memory

Avi Kivity qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5memory: make phys_page_find() return an unadjusted sectionexec.c+102 -1160 replies
2/5memory: store section indices in iotlb instead of io indicesexec-all.h exec.c softmmu_template.h+24 -80 replies
3/5exec: fix code tlb entry misused as iotlb in get_page_addr_code()exec.c+1 -15 replies
4/5memory: dispatch directly via MemoryRegionexec-all.h exec.c memory.c +1 more+69 -980 replies
5/5memory: get rid of cpu_register_io_memory()cpu-all.h exec-all.h exec-obsolete.h +2 more+1 -734 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/5] Remove cpu_register_io_memory

The current code allows us direct lookup from physical address (or TLB entry) to a MemoryRegion, yet we still dispatch accesses via the ram_addr returned by cpu_register_io_memory(). This is clumsy, so remove this extra indirection.

Avi Kivity (5):
memory: make phys_page_find() return an unadjusted section
memory: store section indices in iotlb instead of io indices
exec: fix code tlb entry misused as iotlb in get_page_addr_code()
memory: dispatch directly via MemoryRegion
memory: get rid of cpu_register_io_memory()

 cpu-all.h          |    8 -
 exec-all.h         |    9 +-
 exec-obsolete.h    |    3 -
 exec.c             |  362 ++++++++++++++++++++--------------------------------
 memory.c           |   13 +-
 softmmu_template.h |   40 +++---
 6 files changed, 168 insertions(+), 267 deletions(-)
Signature · 1 line
1.7.9