Skip to content

Multi-level page tables and userland mapping fixes, v2

Richard Henderson qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Changes since v1 from the cover letter

* Sparc virt and phys address range corrections.
* Unrelated changes removed.
* Assertions added for guest address space.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Move TARGET_PHYS_ADDR_SPACE_BITS to target-*/cpu.h.exec.c target-alpha/cpu.h target-arm/cpu.h +9 more+63 -180 replies
2/7Use TARGET_VIRT_ADDR_SPACE_BITS in h2g_valid.cpu-all.h+11 -51 reply
3/7Fix last page errors in page_set_flags and page_check_range.exec.c+21 -180 replies
4/7Implement multi-level page tables.cpu-all.h exec.c+268 -1750 replies
5/7linux-user: Use h2g_valid in qemu_vmalloc.linux-user/mmap.c+4 -50 replies
6/7linux-user: Fix mmap_find_vma returning invalid addresses.linux-user/main.c linux-user/mmap.c+80 -290 replies
7/7Assert arguments in range for guest address space.exec.c+15 -00 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/7] Multi-level page tables and userland mapping fixes, v2

Changes since v1:
* Sparc virt and phys address range corrections.
* Unrelated changes removed.
* Assertions added for guest address space.

r~

Richard Henderson (7):
Move TARGET_PHYS_ADDR_SPACE_BITS to target-*/cpu.h. Use TARGET_VIRT_ADDR_SPACE_BITS in h2g_valid.
Fix last page errors in page_set_flags and page_check_range. Implement multi-level page tables.
linux-user: Use h2g_valid in qemu_vmalloc.
linux-user: Fix mmap_find_vma returning invalid addresses. Assert arguments in range for guest address space.

 cpu-all.h               |   23 ++-
 exec.c                  |  513 ++++++++++++++++++++++++++++-------------------
 linux-user/main.c       |    7 +-
 linux-user/mmap.c       |  111 ++++++++---
 target-alpha/cpu.h      |    4 +-
 target-arm/cpu.h        |    3 +
 target-cris/cpu.h       |    3 +
 target-i386/cpu.h       |   11 +
 target-m68k/cpu.h       |    3 +
 target-microblaze/cpu.h |    3 +
 target-mips/mips-defs.h |    4 +
 target-ppc/cpu.h        |   17 ++
 target-s390x/cpu.h      |    5 +
 target-sh4/cpu.h        |    3 +
 target-sparc/cpu.h      |    8 +
 15 files changed, 465 insertions(+), 253 deletions(-)