From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrvpD-00014P-4y for qemu-devel@nongnu.org; Thu, 09 Apr 2009 11:05:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lrvp8-0000zc-IC for qemu-devel@nongnu.org; Thu, 09 Apr 2009 11:05:51 -0400 Received: from [199.232.76.173] (port=37002 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lrvp7-0000yz-GV for qemu-devel@nongnu.org; Thu, 09 Apr 2009 11:05:50 -0400 Received: from naru.obs2.net ([84.20.150.76]:55265) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lrvp5-0005dF-VR for qemu-devel@nongnu.org; Thu, 09 Apr 2009 11:05:48 -0400 Received: from kos.to (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by narury.org (Postfix) with ESMTP id 03D553274001 for ; Thu, 9 Apr 2009 18:05:38 +0300 (EEST) From: riku.voipio@iki.fi Date: Thu, 9 Apr 2009 18:05:34 +0300 Message-Id: Subject: [Qemu-devel] [PATCH 0/2] linux-user: revive GUEST_BASE support Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org From: Riku Voipio 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(-)