qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Cc: riku.voipio@iki.fi
Subject: Re: [Qemu-devel] [PATCH 14/17] Revived GUEST_BASE support for usermode emulation targets.
Date: Tue, 31 Mar 2009 21:51:36 +0000	[thread overview]
Message-ID: <200903312251.37058.paul@codesourcery.com> (raw)
In-Reply-To: <db74990fb0286d05303bb8fdac2c5af7db679cd3.1238531009.git.riku.voipio@iki.fi>

On Tuesday 31 March 2009, riku.voipio@iki.fi wrote:
> +           "You can use -B option to load target binary into different\n"
> +           "address that is specified in elf headers.  This can be
> useful\n" +           "when target binary would be loaded to low addresses
> and\n" +           "/proc/sys/vm/mmap_min_addr is set to higher.  For
> example\n" +           "     qemu-" TARGET_ARCH " -B 0x100000 ...\n"
> +           "loads target binary starting from the first meg.\n"

This is wrong. -B is completely transparent to the guest application and 
offsets the whole guest address space. 

> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index c6b0b74..ef2bf55 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -2413,6 +2413,8 @@ static inline abi_long do_shmat(int shmid, abi_ulong
> shmaddr, int shmflg, }
>      }
>  
> +    *raddr = h2g(*raddr);
> +

This is wrong. host and guest addresses are different sizes.
This sort of bugfix should also be separated from the host support. Especially 
as the bogus code comes from one of your earlier patches.

Paul

  reply	other threads:[~2009-03-31 21:51 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-31 20:40 [Qemu-devel] [PATCH 00/17] linux-user patches in maemo riku.voipio
2009-03-31 20:40 ` [Qemu-devel] [PATCH 01/17] Fix fstatat64()/newfstatat() syscall implementation riku.voipio
2009-03-31 20:40 ` [Qemu-devel] [PATCH 02/17] Rewrite mmap_find_vma() to work fine on 64-bit hosts with 32-bit targets riku.voipio
2009-03-31 20:40 ` [Qemu-devel] [PATCH 03/17] Fix and cleanup IPCOP_sem* ipc calls handling riku.voipio
2009-03-31 20:40 ` [Qemu-devel] [PATCH 04/17] Implement sem* syscalls riku.voipio
2009-03-31 20:40 ` [Qemu-devel] [PATCH 05/17] Fix and cleanup IPCOP_shm* ipc calls handling riku.voipio
2009-03-31 22:08   ` Paul Brook
2009-03-31 20:40 ` [Qemu-devel] [PATCH 06/17] Implement shm* syscalls riku.voipio
2009-03-31 20:40 ` [Qemu-devel] [PATCH 07/17] shmat(): use mmap_find_vma to find free memory area riku.voipio
2009-03-31 20:40 ` [Qemu-devel] [PATCH 08/17] Added posix message queue syscalls except mq_notify riku.voipio
2009-03-31 20:40 ` [Qemu-devel] [PATCH 09/17] Format mq_open strace arguments riku.voipio
2009-03-31 20:40 ` [Qemu-devel] [PATCH 10/17] More strace formatting for posix message queues syscalls riku.voipio
2009-03-31 20:40 ` [Qemu-devel] [PATCH 11/17] Add support for passing contents of argv0 riku.voipio
2009-03-31 20:40 ` [Qemu-devel] [PATCH 12/17] linux-user: unix sockets - fix running dbus riku.voipio
2009-03-31 23:36   ` [Qemu-devel] [PATCH 12/17] linux-user: unix sockets - fix runningdbus Krumme, Chris
2009-04-05 18:04     ` Riku Voipio
2009-03-31 20:40 ` [Qemu-devel] [PATCH 13/17] Strace is now working again with GUEST_BASE support riku.voipio
2009-03-31 21:31   ` Paul Brook
2009-04-01  6:49     ` Mika Westerberg
2009-03-31 20:40 ` [Qemu-devel] [PATCH 14/17] Revived GUEST_BASE support for usermode emulation targets riku.voipio
2009-03-31 21:51   ` Paul Brook [this message]
2009-03-31 20:40 ` [Qemu-devel] [PATCH 15/17] linux-user: removed unnecessary MAX_SOCK_ADDR checks for socket syscalls riku.voipio
2009-03-31 20:40 ` [Qemu-devel] [PATCH 16/17] Prefer glibc over direct syscalls riku.voipio
2009-03-31 20:40 ` [Qemu-devel] [PATCH 17/17] linux-user: Proper exit code for uncaught signals riku.voipio
2009-03-31 22:31 ` [Qemu-devel] [PATCH 00/17] linux-user patches in maemo Paul Brook
2009-04-01  9:31   ` Riku Voipio
2009-04-01 12:07     ` Aurelien Jarno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200903312251.37058.paul@codesourcery.com \
    --to=paul@codesourcery.com \
    --cc=qemu-devel@nongnu.org \
    --cc=riku.voipio@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).