Multi-level page tables and userland mapping fixes, v3
Status from this message: Applied, plus a bunch of follow-on patches that isolate the userspace
Get series with b4
b4 am [email protected]Versions newest first
Changes since v2 from the cover letter
* Fix two errors pointed out by pbrook: l1_map size in system mode, and h2g_valid definition for 64-on-32-bit.
* Assertions that addresses are not outside the bounds of the guest address space.
* Re-base vs master, after l1_map_phys changes.
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | Move TARGET_PHYS_ADDR_SPACE_BITS to target-*/cpu.h.exec.c target-alpha/ target-arm/ +9 more | +63 | 2 replies | |
| 2/6 | Use TARGET_VIRT_ADDR_SPACE_BITS in h2g_valid.cpu-all.h | +11 | 0 replies | |
| 3/6 | linux-user: Use h2g_valid in qemu_vmalloc.linux-user/ | +4 | 0 replies | |
| 4/6 | linux-user: Fix mmap_find_vma returning invalid addresses.linux-user/ linux-user/ linux-user/ | +82 | 0 replies | |
| 5/6 | Implement multi-level page tables.cpu-all.h exec.c | +275 | 3 replies | |
| 6/6 | Fix last page errors in page_check_range and page_set_flags.exec.c | +36 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [PATCH 0/6] Multi-level page tables and userland mapping fixes, v3
Changes since v2:
* Fix two errors pointed out by pbrook: l1_map size in system mode, and h2g_valid definition for 64-on-32-bit.
* Assertions that addresses are not outside the bounds of the guest address space.
* Re-base vs master, after l1_map_phys changes.
r~
Richard Henderson (6):
Move TARGET_PHYS_ADDR_SPACE_BITS to target-*/cpu.h. Use TARGET_VIRT_ADDR_SPACE_BITS in h2g_valid.
linux-user: Use h2g_valid in qemu_vmalloc.
linux-user: Fix mmap_find_vma returning invalid addresses. Implement multi-level page tables.
Fix last page errors in page_check_range and page_set_flags.
cpu-all.h | 23 ++- exec.c | 522 ++++++++++++++++++++++++++++------------------- linux-user/main.c | 11 +- linux-user/mmap.c | 111 ++++++++--- linux-user/qemu.h | 2 - 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 + 16 files changed, 474 insertions(+), 259 deletions(-)