Skip to content

linux-user: revive GUEST_BASE support

[email protected] qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2linux-user: strace now handles guest strings correctlylinux-user/strace.c linux-user/strace.list linux-user/syscall.c +1 more+1058 -760 replies
2/2Revived GUEST_BASE support for usermode emulation targets.configure cpu-all.h linux-user/elfload.c +4 more+118 -13 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/2] linux-user: revive GUEST_BASE support

From: Riku Voipio <[email protected]>

On modern distros, /proc/sys/vm/mmap_min_addr is set to 65k, thus making linux-user not work out of box. By making GUEST_BASE setting work again, we can automatically map the binary higher.

In order not to break strace when host and target pointer no longet match, make strace not use targer pointers directly. While at it, expand syscall flags in the same real strace does.

Mika Westerberg (2):
linux-user: strace now handles guest strings correctly Revived GUEST_BASE support for usermode emulation targets.

 configure                 |    9 +
 cpu-all.h                 |    6 +-
 linux-user/elfload.c      |   24 ++
 linux-user/main.c         |   53 +++
 linux-user/qemu.h         |    3 +
 linux-user/strace.c       | 1013 ++++++++++++++++++++++++++++++++++++++++++++-
 linux-user/strace.list    |  109 +++---
 linux-user/syscall.c      |    6 -
 linux-user/syscall_defs.h |    6 +
 tcg/i386/tcg-target.c     |   12 +
 tcg/x86_64/tcg-target.c   |   12 +
 11 files changed, 1176 insertions(+), 77 deletions(-)