Re: [Qemu-devel] [PATCH] linux-user/strace.c: Correct errno printing for mmap etc

2011-11-23 Thread Riku Voipio
On Mon, Nov 21, 2011 at 12:21:19PM +, Peter Maydell wrote: Correct the printing of errnos for syscalls which are handled via print_syscall_ret_addr (mmap, mmap2, brk, shmat): errnos are returned as negative returned values at this level, not via the host 'errno' variable. Signed-off-by:

Re: [Qemu-devel] [PATCH 0/5] linux-user: fake some /proc/self entries

2011-11-03 Thread Riku Voipio
On Wed, Nov 02, 2011 at 08:23:21PM +0100, Alexander Graf wrote: When running linux-user programs in QEMU, the guest program can examine itself by checking /proc/self/ files. And some libraries really do use this! Unfortunately, when checking /proc/self/ today, the guest program sees the

Re: [Qemu-devel] [PATCH] linux-user: add binfmt wrapper for argv[0] handling

2011-10-31 Thread Riku Voipio
On Sat, Oct 29, 2011 at 08:08:39PM +0200, Alexander Graf wrote: When using qemu's linux-user binaries through binfmt, argv[0] gets lost along the execution because qemu only gets passed in the full file name to the executable while argv[0] can be something completely different. This

[Qemu-devel] [PULL] [PATCH 00/10] Linux-user patches for 1.0

2011-10-31 Thread Riku Voipio
Fixes related linux-user qemu targetting 1.0 are available in the git repository at: git://git.linaro.org/people/rikuvoipio/qemu.git linux-user-for-upstream Alexander Graf (2): linux-user: fix openat linux-user: implement reboot syscall Matthias Braun (3): linux-user: fix

[Qemu-devel] [PATCH 10/10] ppc64-linux-user: Fix syscall return type.

2011-10-27 Thread riku . voipio
From: Richard Henderson r...@twiddle.net Use target_ulong instead of hard-coded uint32_t. Remove the disabled printf's that are redundant with -strace. Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/main.c | 13

[Qemu-devel] [PATCH 06/10] sparc-linux-user: Handle SIGILL.

2011-10-27 Thread riku . voipio
From: Richard Henderson r...@twiddle.net Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/main.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index e7dad54

[Qemu-devel] [PATCH 07/10] sparc-linux-user: Fixup sending SIGSEGV

2011-10-27 Thread riku . voipio
From: Richard Henderson r...@twiddle.net Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/main.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 2bc10ed

[Qemu-devel] [PATCH 01/10] linux-user: fix TARGET_RLIM_INFINITY declaration

2011-10-27 Thread riku . voipio
From: Matthias Braun ma...@braunis.de Signed-off-by: Matthias Braun ma...@braunis.de Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall_defs.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h

[Qemu-devel] [PATCH 04/10] linux-user: fix openat

2011-10-27 Thread riku . voipio
of the mode parameter, rendering permission passing of openat() to work with linux-user. Reported-by: Dirk Mueller dmuel...@suse.de Signed-off-by: Alexander Graf ag...@suse.de Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/syscall.c | 14 +- 1 files changed, 1

[Qemu-devel] [PATCH 02/10] linux-user: fix rlimit syscalls on sparc(64)

2011-10-27 Thread riku . voipio
From: Matthias Braun ma...@braunis.de Signed-off-by: Matthias Braun ma...@braunis.de Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/syscall_defs.h |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h

[Qemu-devel] [PATCH 00/10] Linux-user patches for 1.0

2011-10-27 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Fixes related linux-user qemu targetting 1.0. please ping If I have missed any. Patches are also available in the git repository at: git://git.linaro.org/people/rikuvoipio/qemu.git linux-user-for-upstream Alexander Graf (2): linux-user: fix openat

[Qemu-devel] [PATCH 09/10] ppc64-linux-user: Properly interpret the entry function descriptor.

2011-10-27 Thread riku . voipio
From: Richard Henderson r...@twiddle.net Don't confuse the load address with the load bias. They're equal for ET_DYN objects (i.e. ld.so) but different for ET_EXEC objects (i.e. statically linked). Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi

[Qemu-devel] [PATCH 08/10] sparc-linux-user: Add some missing syscall numbers

2011-10-27 Thread riku . voipio
From: Richard Henderson r...@twiddle.net Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/sparc/syscall_nr.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/linux-user/sparc/syscall_nr.h b/linux-user/sparc

[Qemu-devel] [PATCH 03/10] linux-user: fix abi_(u)long, target_ulong mismatch

2011-10-27 Thread riku . voipio
From: Matthias Braun ma...@braunis.de abi_(u)long might be different from target_ulong, so don't use tswapl but introduce a new tswapal Signed-off-by: Matthias Braun ma...@braunis.de Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/qemu-types.h | 12 ++ linux-user/signal.c

[Qemu-devel] [PATCH 05/10] linux-user: implement reboot syscall

2011-10-27 Thread riku . voipio
sys_reboot() emulation. Signed-off-by: Alexander Graf ag...@suse.de Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/syscall.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 6159571..9f5da36 100644

[Qemu-devel] [PULL] pending linux-user patches

2011-09-22 Thread Riku Voipio
The following changes since commit 27cdad67a1bc23b38c765b677ed8064bfb8d3e44: Revert alpha-softmmu: Disable for the 0.15 release branch. (2011-09-21 00:50:32 +0200) are available in the git repository at: git://git.linaro.org/people/rikuvoipio/qemu.git linux-user-for-upstream An-Cheng Huang

[Qemu-devel] [PATCH 4/7] linux-user: Fix MIPS indirect syscall handling

2011-09-09 Thread riku . voipio
From: An-Cheng Huang anch...@ubnt.com Change the number of argument for MIPS sys_syscall from 0 to 8. This allows arguments for indirect syscalls to be processed correctly. Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off

[Qemu-devel] [PATCH 5/7] linux-user: Verify MIPS syscall arguments

2011-09-09 Thread riku . voipio
From: An-Cheng Huang anch...@ubnt.com On MIPS, some syscall arguments are taken from the stack. This patch adds verification such that do_syscall() is only invoked if all arguments have been successfully taken from the stack. Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Peter

[Qemu-devel] [PATCH 3/7] linux-user: Exit with an error if we couldn't set up gdbserver

2011-09-09 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org If gdbserver_start() fails (usually because we couldn't bind to the requested TCP port) then exit qemu rather than blithely continuing. This brings the linux-user behaviour in to line with system mode. Signed-off-by: Riku Voipio riku.voi...@linaro.org

[Qemu-devel] [PATCH 0/7] pending linux-user patches

2011-09-09 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org The following patches have sent to the list last month and look ok. If everyone is Ok with these patches, I will send these as pull request next week. Patches are also available at the git repository at: git://git.linaro.org/people/rikuvoipio/qemu.git

[Qemu-devel] [PATCH 7/7] introduce environment variables for all qemu-user options

2011-09-09 Thread riku . voipio
From: Johannes Schauer j.scha...@email.de (Edits by Riku Voipio to apply to current HEAD) Rework option parsing code for linux-user in a table-driven manner to allow environment variables for all commandline options. Also generate usage() output from option table. Fix complains from

[Qemu-devel] [PATCH 6/7] linux-user: Implement setxattr/getxattr/removexattr syscalls

2011-09-09 Thread riku . voipio
From: An-Cheng Huang anch...@ubnt.com This patch implements the setxattr, getxattr, and removexattr syscalls if CONFIG_ATTR is enabled. Note that since libattr uses indirect syscalls for these, this change depends on the fix for indirect syscall handling on MIPS. Signed-off-by: Riku Voipio

[Qemu-devel] [PATCH 1/7] linux-user: Fix initialization of the heap contents when allocating new pages

2011-09-09 Thread riku . voipio
error: Segmentation fault Signed-off-by: Riku Voipio riku.voi...@linaro.org Signed-off-by: Laurent ALFONSI laurent.alfo...@st.com Signed-off-by: Cédric VINCENT cedric.vinc...@st.com --- linux-user/syscall.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/linux-user

[Qemu-devel] [PATCH 2/7] linux-user: Implement new ARM 64 bit cmpxchg kernel helper

2011-09-09 Thread riku . voipio
* Allow guest to object to guest offset to ensure it can map a page * Populate page with kernel helper version Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Dr. David Alan Gilbert david.gilb...@linaro.org --- linux-user

Re: [Qemu-devel] [PATCH 0/3] linux-user: Implement setxattr/getxattr/removexattr syscalls

2011-09-02 Thread Riku Voipio
Hi, On Wed, Aug 17, 2011 at 02:30:53PM -0700, An-Cheng Huang wrote: On Tue, Aug 09, 2011 at 12:30:52PM -0700, An-Cheng Huang wrote: These patches implement the setxattr, getxattr, and removexattr syscalls. Since libattr uses indirect syscalls for these, the fix for the indirect syscall

Re: [Qemu-devel] [PATCH 0/3] usb-musb: make qdev-aware

2011-09-02 Thread Riku Voipio
On Fri, Sep 02, 2011 at 09:50:44AM +0200, Gerd Hoffmann wrote: On 09/02/11 09:03, juha.riihim...@nokia.com wrote: How to you test musb? Unfortunately I don't have any test cases which actively use the musb, so I settle for testing an n810 image (and a beagle image in my omap3 tree) and

Re: [Qemu-devel] Bug#632192: [PATCH] add QEMU_LD_PREFIX environment variable

2011-07-30 Thread Riku Voipio
On Fri, Jul 29, 2011 at 05:21:59PM +0200, Johannes Schauer wrote: So if we agree on using environment variables to pass options to qemu-user we next need to agree on how to name the options. The following commandline arguments exist (in order as they are checked in linux-user/main.c) and I

Re: [Qemu-devel] [PATCH] add QEMU_LD_PREFIX environment variable

2011-07-28 Thread Riku Voipio
On Sat, Jul 23, 2011 at 07:47:49AM +0200, josch wrote: This could be avoided by setting the proposed environment variable QEMU_LD_PREFIX to the just created debian rootfs. As mentioned earlier, the usage of the -L option is not possible in this scenario because qemu-user is only implicitly

Re: [Qemu-devel] mips-linux-user and POSIX IPC

2011-07-28 Thread Riku Voipio
On Tue, Jul 26, 2011 at 08:56:38AM +, Holger Freyther wrote: For semctl qemu enters through the do_ipc method, it appears to be that the 'variable' ptr is really a ptr (to the stack) and needs to be dereferenced. The below snippet seems to fix that issue for me. My next problem is with

Re: [Qemu-devel] [PATCH 0/3] MIPS64 user mode emulation in QEMU with Cavium specific instruction support

2011-07-20 Thread riku voipio
Hi, On 07/12/2011 02:09 PM, Khansa Butt wrote: We have developed Mips64 user mode emulation. In addition we implemented Cavium specific instruction along with octeon CPU definition. We need your support to make our contribution public ally available via making it open source. I tried to

[Qemu-devel] [PULL] v2: pending linux-user patches

2011-07-18 Thread Riku Voipio
from kernel 2.6.39.2 linux-user: Implement prlimit64 syscall linux-user/syscall.c: Enforce pselect6 sigset size restrictions linux-user/signal.c: Rename s390 target_ucontext fields to fix ia64 Riku Voipio (2): linux-user: correct syscall 123 on sh4 linux-user: make MIPS

Re: [Qemu-devel] [PATCH] linux-user/signal.c: Rename s390 target_ucontext fields to fix ia64

2011-07-18 Thread riku voipio
On 07/18/2011 01:18 PM, Alexander Graf wrote: The ia64 sys/ucontext.h defines macros 'uc_link', 'uc_sigmask' and 'uc_stack'. Rename the s390 target_ucontext struct members to tuc_*, bringing them into line with the other targets and fixing a compile failure on ia64 hosts caused by this clash.

[Qemu-devel] [PATCH 01/15] arm-semi: Provide access to CLI arguments passed through the -append option

2011-07-13 Thread riku . voipio
Cc: Riku Voipio riku.voi...@iki.fi Signed-off-by: Riku Voipio riku.voi...@linaro.org --- arm-semi.c | 113 +++ 1 files changed, 67 insertions(+), 46 deletions(-) diff --git a/arm-semi.c b/arm-semi.c index 5a62d03..873518a 100644 --- a/arm

[Qemu-devel] [PATCH 00/15] v2: pending linux-user patches

2011-07-13 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org This time including Wesleys patches I missed last time, replacing his mips: eabi syscall support for 64-bit args patch with a my version, and fixing cacheflush syscall as requested bt Cédric. Patches also available in the git repository at: git

[Qemu-devel] [PATCH 02/15] linux-user: Add support for KD...LED ioctls

2011-07-13 Thread riku . voipio
)) setleds.host $(SETLEDS_INIT:setleds=$(SETLEDS_QEMU)) $(SETLEDS_TESTS:setleds=$(SETLEDS_QEMU)) setleds.target cmp setleds.host setleds.target Signed-off-by: Cédric VINCENT cedric.vinc...@st.com Cc: Riku Voipio riku.voi...@iki.fi Signed-off-by: Riku Voipio riku.voi...@linaro.org

[Qemu-devel] [PATCH 06/15] linux-user: Implement prlimit64 syscall

2011-07-13 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org Implement the prlimit64 syscall. Slightly modified to apply upstream -Riku Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 43

[Qemu-devel] [PATCH 08/15] mips: sigaltstack args

2011-07-13 Thread riku . voipio
From: Wesley W. Terpstra terps...@debian.org The syscall sigaltstack takes two parameters, not zero. This patch should have no impact as only values above 4 influence the runtime behaviour. Nevertheless, it is wrong. Signed-off-by: Wesley W. Terpstra terps...@debian.org Signed-off-by: Riku

[Qemu-devel] [PATCH 07/15] linux-user/syscall.c: Enforce pselect6 sigset size restrictions

2011-07-13 Thread riku . voipio
-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e2f356b..90f6789 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5699,6 +5699,11 @@ abi_long

[Qemu-devel] [PATCH 09/15] mips: missing syscall returns wrong errno

2011-07-13 Thread riku . voipio
-by: Riku Voipio riku.voi...@linaro.org Signed-off-by: Wesley W. Terpstra terps...@debian.org --- linux-user/main.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index d695610..e32f987 100644 --- a/linux-user/main.c +++ b/linux-user/main.c

[Qemu-devel] [PATCH 13/15] linux-user: correct syscall 123 on sh4

2011-07-13 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org As reported by Cédric VINCENT: The syscall #123 on SH4 should be TARGET_NR_cacheflush instead of TARGET_NR_modify_ldt [1]. The only consequence of this misnaming is that many Unsupported syscall warnings are issued when emulating JIT compilers. Reported

[Qemu-devel] [PATCH 03/15] linux-user: Add support for more VT ioctls

2011-07-13 Thread riku . voipio
From: Cédric VINCENT cedric.vinc...@st.com DirectFB-1.0 uses at least two of the four added ioctls, and the two others were added for completeness. This patch was validated with the program vlock -all/-new. Signed-off-by: Cédric VINCENT cedric.vinc...@st.com Cc: Riku Voipio riku.voi...@iki.fi

[Qemu-devel] [PATCH 15/15] linux-user/signal.c: Rename s390 target_ucontext fields to fix ia64

2011-07-13 Thread riku . voipio
. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/signal.c | 30 +++--- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index 7d168e1..07ad07a

[Qemu-devel] [PATCH 10/15] mips: null pointer deref should segfault

2011-07-13 Thread riku . voipio
From: Wesley W. Terpstra terps...@debian.org Dereferencing a null pointer causes an exception 0xC (EXCP_AdEL) instead of EXCP_TLBL. This should also trigger a segfault. Signed-off-by: Wesley W. Terpstra terps...@debian.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/main.c

[Qemu-devel] [PATCH 14/15] linux-user: make MIPS and ARM eabi use same argument reordering

2011-07-13 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org MIPS uses similar calling convention than ARM eabi, where when using 64-bit values some registers are skipped. This patch makes MIPS and ARM eabi share the argument reordering code. This affects ftruncate64, creating insane sized fails (or just failing

[Qemu-devel] [PATCH 04/15] linux-user: Add support for even more FB ioctls

2011-07-13 Thread riku . voipio
From: Cédric VINCENT cedric.vinc...@st.com This patch was validated with programs from DirectFB-1.0 and WebKit/DirectFB. Signed-off-by: Cédric VINCENT cedric.vinc...@st.com Cc: Riku Voipio riku.voi...@iki.fi Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/ioctls.h|5

[Qemu-devel] [PATCH 12/15] mips: rlimit codes are not the same

2011-07-13 Thread riku . voipio
-by: Wesley W. Terpstra terps...@debian.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 45 ++--- linux-user/syscall_defs.h | 34 ++ 2 files changed, 76 insertions(+), 3 deletions(-) diff

[Qemu-devel] [PATCH 05/15] linux-user: Add syscall numbers from kernel 2.6.39.2

2011-07-13 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org Add syscall numbers for new syscall numbers; this brings us into line with Linux 2.6.39.2. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/alpha/syscall_nr.h | 23

[Qemu-devel] [PATCH 11/15] mips: rlimit incorrectly converts values

2011-07-13 Thread riku . voipio
allocation fails (too big) and child process dies Signed-off-by: Wesley W. Terpstra terps...@debian.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 22 +- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/linux-user/syscall.c b

Re: [Qemu-devel] qemu-user[armel/mips] and debian-rootfs

2011-07-11 Thread riku voipio
On 07/02/2011 02:52 AM, Lisandro Damián Nicanor Pérez Meyer wrote: I have clearly not been verbose enough, so I'll better try to solve that :-) The problem is the following: once I create a chroot, I copy /usr/bin/qemu- mips-static to $CHROOT/usr/bin and then chroot $CHROOT. Now if I do run

[Qemu-devel] [PATCH 1/7] arm-semi: Provide access to CLI arguments passed through the -append option

2011-07-11 Thread riku . voipio
Cc: Riku Voipio riku.voi...@iki.fi Signed-off-by: Riku Voipio riku.voi...@linaro.org --- arm-semi.c | 113 +++ 1 files changed, 67 insertions(+), 46 deletions(-) diff --git a/arm-semi.c b/arm-semi.c index 5a62d03..873518a 100644 --- a/arm

[Qemu-devel] [PATCH 2/7] linux-user: Add support for KD...LED ioctls

2011-07-11 Thread riku . voipio
)) setleds.host $(SETLEDS_INIT:setleds=$(SETLEDS_QEMU)) $(SETLEDS_TESTS:setleds=$(SETLEDS_QEMU)) setleds.target cmp setleds.host setleds.target Signed-off-by: Cédric VINCENT cedric.vinc...@st.com Cc: Riku Voipio riku.voi...@iki.fi Signed-off-by: Riku Voipio riku.voi...@linaro.org

[Qemu-devel] [PATCH 0/7] pending linux-user patches

2011-07-11 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Following linux-user patches have been submitted since the last round. Last chance to comment before I ask for pull. Patches also available in the git repository at: git://git.linaro.org/people/rikuvoipio/qemu.git linux-user-for-upstream Cédric

[Qemu-devel] [PATCH 4/7] linux-user: Add support for even more FB ioctls

2011-07-11 Thread riku . voipio
From: Cédric VINCENT cedric.vinc...@st.com This patch was validated with programs from DirectFB-1.0 and WebKit/DirectFB. Signed-off-by: Cédric VINCENT cedric.vinc...@st.com Cc: Riku Voipio riku.voi...@iki.fi Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/ioctls.h|5

[Qemu-devel] [PATCH 5/7] linux-user: Add syscall numbers from kernel 2.6.39.2

2011-07-11 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org Add syscall numbers for new syscall numbers; this brings us into line with Linux 2.6.39.2. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/alpha/syscall_nr.h | 23

[Qemu-devel] [PATCH 6/7] linux-user: Implement prlimit64 syscall

2011-07-11 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org Implement the prlimit64 syscall. Slightly modified to apply upstream -Riku Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 43

[Qemu-devel] [PATCH 7/7] linux-user/syscall.c: Enforce pselect6 sigset size restrictions

2011-07-11 Thread riku . voipio
-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e2f356b..90f6789 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5699,6 +5699,11 @@ abi_long

Re: [Qemu-devel] qemu-user[armel/mips] and debian-rootfs

2011-07-11 Thread Riku Voipio
On Mon, Jul 11, 2011 at 11:10:50AM -0300, Lisandro Damián Nicanor Pérez Meyer wrote: Thanks Riku! This bug has already been solved by Wesley Terpstra: http://lists.nongnu.org/archive/html/qemu-devel/2011-07/msg00313.html Ok, I missed these patches. Will adjust the linux-user patchset to

[Qemu-devel] [PATCH 3/7] linux-user: Add support for more VT ioctls

2011-07-11 Thread riku . voipio
From: Cédric VINCENT cedric.vinc...@st.com DirectFB-1.0 uses at least two of the four added ioctls, and the two others were added for completeness. This patch was validated with the program vlock -all/-new. Signed-off-by: Cédric VINCENT cedric.vinc...@st.com Cc: Riku Voipio riku.voi...@iki.fi

Re: [Qemu-devel] [PATCH] linux-user/syscall.c: Enforce pselect6 sigset size restrictions

2011-06-28 Thread Riku Voipio
On Tue, Jun 28, 2011 at 12:21:57PM +0100, Peter Maydell wrote: Enforce the same restriction on the size of the sigset passed to pselect6 as the Linux kernel does. This is both correct and silences a gcc 4.6 warning about a write-only variable. Odd but true, after all the trouble of passing the

[Qemu-devel] [PULL] pending linux-user patches

2011-06-25 Thread riku . voipio
of do_brk() linux-user: Bump do_syscall() up to 8 syscall arguments linux-user/signal.c: Remove only-ever-set variable fpu_save_addr linux-user/signal.c: Remove unused fenab Riku Voipio (1): linux-user: Fix sync_file_range on 32bit mips arm-semi.c |5 +- linux

Re: [Qemu-devel] [PATCH 07/18] linux-user: Fix the computation of the requested heap size

2011-06-21 Thread Riku Voipio
On Tue, Jun 21, 2011 at 09:11:00AM +0200, cedric.vinc...@st.com wrote: On Mon, Jun 20, 2011 at 06:20:12PM +0200, riku.voi...@iki.fi wrote: linux-user/syscall.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) This is not the latest version of the patch (that one

[Qemu-devel] [PATCH 01/18] Don't translate pointer when in restore_sigcontext

2011-06-20 Thread riku . voipio
From: Mike McCormack mj.mccorm...@samsung.com Fixes crash in i386 when user emulation base address is non-zero. 21797 rt_sigreturn(8,1082124603,1,0,1082126048,1082126248)Exit reason and status: signal 11 Signed-off-by: Mike McCormack mj.mccorm...@samsung.com Signed-off-by: Riku Voipio riku.voi

[Qemu-devel] [PATCH 06/18] m68k-semi.c: Use correct check for failure of do_brk()

2011-06-20 Thread riku . voipio
-by: Riku Voipio riku.voi...@iki.fi --- m68k-semi.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/m68k-semi.c b/m68k-semi.c index 0371089..7fde10e 100644 --- a/m68k-semi.c +++ b/m68k-semi.c @@ -370,7 +370,7 @@ void do_m68k_semihosting(CPUM68KState *env, int nr

[Qemu-devel] [PATCH 00/18] pending linux-user patches

2011-06-20 Thread riku . voipio
From: Riku Voipio riku.voi...@iki.fi Hi, All included patches except mine have already been on the list. These patches should be ready for pull, but giving last minute chance for people to object. The following changes since commit eb47d7c5d96060040931c42773ee07e61e547af9 hw/9118.c

[Qemu-devel] [PATCH 02/18] linux-user: Fix the load of ELF files that have no useful symbol

2011-06-20 Thread riku . voipio
#1, r3 trapa #40 // syscall(__NR_exit) nop The bug appears when the log (option -d) is enabled. Signed-off-by: Cédric VINCENT cedric.vinc...@st.com Signed-off-by: Yves JANIN yves.ja...@st.com Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/elfload.c | 34

[Qemu-devel] [PATCH 05/18] arm-semi.c: Use correct check for failure of do_brk()

2011-06-20 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org In the ARM semihosting implementation of SYS_HEAPINFO, use the correct check for whether do_brk() has failed -- it does not return -1 but the previous value of the break limit. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku

[Qemu-devel] [PATCH 12/18] linux-user: syscall should use sanitized arg1

2011-06-20 Thread riku . voipio
-by: Riku Voipio riku.voi...@iki.fi --- linux-user/syscall.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 57d9233..1c0503f 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -7181,7 +7181,7 @@ abi_long

[Qemu-devel] [PATCH 07/18] linux-user: Fix the computation of the requested heap size

2011-06-20 Thread riku . voipio
(HOST_PAGE_SIZE); if (!failure) { printf(success\n); exit(EXIT_SUCCESS); } else { exit(EXIT_FAILURE); } } Signed-off-by: Cédric VINCENT cedric.vinc...@st.com Reviewed-by: Christophe Guillon christophe.guil...@st.com Signed-off-by: Riku

[Qemu-devel] [PATCH 13/18] flatload: end_code was only used in a debug message

2011-06-20 Thread riku . voipio
-by: Riku Voipio riku.voi...@iki.fi --- linux-user/flatload.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/linux-user/flatload.c b/linux-user/flatload.c index cd7af7c..6fb78f5 100644 --- a/linux-user/flatload.c +++ b/linux-user/flatload.c @@ -384,7 +384,7 @@ static int

[Qemu-devel] [PATCH 04/18] linux-user: Don't use MAP_FIXED in do_brk()

2011-06-20 Thread riku . voipio
and handle mapped but at different address as an error case instead. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/syscall.c | 29 - 1 files changed, 20 insertions(+), 9 deletions(-) diff --git a/linux

[Qemu-devel] [PATCH 08/18] linux-user: add pselect6 syscall support

2011-06-20 Thread riku . voipio
From: Mike Frysinger vap...@gentoo.org Some architectures (like Blackfin) only implement pselect6 (and skip select/newselect). So add support for it. Signed-off-by: Mike Frysinger vap...@gentoo.org Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/syscall.c | 149

[Qemu-devel] [PATCH 11/18] syscall: really return ret code

2011-06-20 Thread riku . voipio
From: Juan Quintela quint...@redhat.com We assign ret with the error code, but then return 0 unconditionally. Signed-off-by: Juan Quintela quint...@redhat.com Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/syscall.c |8

[Qemu-devel] [PATCH 03/18] linux-user: Handle images where lowest vaddr is not page aligned

2011-06-20 Thread riku . voipio
. This bug was noticed with a binary created by the Google Go toolchain for ARM. We fix the bug by refactoring the probe for guest base code out into its own self-contained function. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user

[Qemu-devel] [PATCH 10/18] linuxload: id_change was a write only variable

2011-06-20 Thread riku . voipio
From: Juan Quintela quint...@redhat.com Signed-off-by: Juan Quintela quint...@redhat.com Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/linuxload.c | 25 + 1 files changed, 1 insertions(+), 24 deletions

[Qemu-devel] [PATCH 15/18] linux-user: Bump do_syscall() up to 8 syscall arguments

2011-06-20 Thread riku . voipio
about arg7 and arg8 variables being set and never used. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/main.c| 37 - linux-user/qemu.h|3 ++- linux-user/syscall.c |8

[Qemu-devel] [PATCH 09/18] linux-user: Define AT_RANDOM to support target stack protection mechanism.

2011-06-20 Thread riku . voipio
Signed-off-by: Laurent ALFONSI laurent.alfo...@st.com Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/elfload.c | 21 - 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index a13eb7b..b2746f2 100644

[Qemu-devel] [PATCH 18/18] linux-user: Fix sync_file_range on 32bit mips

2011-06-20 Thread riku . voipio
From: Riku Voipio riku.voi...@iki.fi As noticed while looking at Bump do_syscall() up to 8 syscall arguments patch, sync_file_range uses a pad argument on 32bit mips. Deal with it by reading the correct arguments when on mips. Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user

[Qemu-devel] [PATCH 17/18] linux-user/signal.c: Remove unused fenab

2011-06-20 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org Remove fenab as it is only written, never used. Add a FIXME comment about the discrepancy between our behaviour and that of the Linux kernel for this routine. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi

[Qemu-devel] [PATCH 14/18] flatload: memp was a write-only variable

2011-06-20 Thread riku . voipio
From: Juan Quintela quint...@redhat.com Signed-off-by: Juan Quintela quint...@redhat.com Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/flatload.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/linux

[Qemu-devel] [PATCH 16/18] linux-user/signal.c: Remove only-ever-set variable fpu_save_addr

2011-06-20 Thread riku . voipio
() can never fail.) Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/signal.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index cb7138f..4edd974 100644

Re: [Qemu-devel] [PATCH] linux-user: add pselect6 syscall support

2011-06-03 Thread riku voipio
On 05/18/2011 03:14 AM, Mike Frysinger wrote: Some architectures (like Blackfin) only implement pselect6 (and skip select/newselect). So add support for it using existing newselect code. There is a blackfin qemu? Anyways, with this patch pselect01 ltp testcase starts failing. Looks like (at

[Qemu-devel] [PATCH 0/3] [PULL] linux-user fixes

2011-05-02 Thread riku . voipio
From: Riku Voipio riku.voi...@iki.fi The following changes since commit 08ab2ccb08372a52ee1c597acf640cadb9089a3a: Merge branch 'patches' of git://qemu.weilnetz.de/git/qemu (2011-04-29 20:01:51 +) are available in the git repository at: git://gitorious.org/qemu-maemo/qemu.git linux

[Qemu-devel] [PATCH 1/3] linux-user: Fix compilation for old linux versions

2011-05-02 Thread riku . voipio
From: Stefan Weil w...@mail.berlios.de Debian Lenny and other installations with older linux versions failed to compile linux-user because some CLONE_xxx macros are undefined. Signed-off-by: Stefan Weil w...@mail.berlios.de Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/strace.c

[Qemu-devel] [PATCH 3/3] Don't zero out buffer in sched_getaffinity

2011-05-02 Thread riku . voipio
From: Mike McCormack mj.mccorm...@samsung.com The kernel doesn't fill the buffer provided to sched_getaffinity with zero bytes, so neither should QEMU. Signed-off-by: Mike McCormack mj.mccorm...@samsung.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Signed-off-by: Riku Voipio

[Qemu-devel] [PATCH 2/3] Fix buffer overrun in sched_getaffinity

2011-05-02 Thread riku . voipio
...@linux.vnet.ibm.com Acked-by: Mike Frysinger vap...@gentoo.org Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/syscall.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e969d1b..5b7b8e2 100644 --- a/linux-user

[Qemu-devel] [PULL] linux-user pending patches

2011-04-26 Thread Riku Voipio
to llseek list Laurent Vivier (3): linux-user: improve traces linux-user: convert ioctl(SIOCGIFCONF, ...) result. linux-user: add ioctl(SIOCGIWNAME, ...) support. Riku Voipio (2): [v2] linux-user: bigger default stack linux-user: untie syscalls from UID16 linux-user/alpha

Re: [Qemu-devel] [PATCH/RFC] Port Wine preloader to QEMU

2011-04-19 Thread Riku Voipio
On Tue, Apr 19, 2011 at 06:19:49PM +0900, Mike McCormack wrote: * modifying do_brk to not use MAP_FIXED - causes an out of memory failure rather than a crash Have you tried the patch posted by Peter Maydell yesterday: http://www.mail-archive.com/qemu-devel@nongnu.org/msg61733.html Riku

Re: [Qemu-devel] [PATCH 02/17] s390x: s390x-linux-user support

2011-04-18 Thread Riku Voipio
Hi, The patch looks OK, but I'd like to have a try with some s390x static binaries. Such binaries are also useful for me to test that new patches for linxu-user don't break targets I don't usually use. Riku On Fri, Apr 15, 2011 at 05:32:43PM +0200, Alexander Graf wrote: From: Ulrich Hecht

Re: [Qemu-devel] [PATCH 02/17] s390x: s390x-linux-user support

2011-04-18 Thread Riku Voipio
On Mon, Apr 18, 2011 at 02:06:02PM +0200, Alexander Graf wrote: The patch looks OK, but I'd like to have a try with some s390x static binaries. Such binaries are also useful for me to test that new patches for linxu-user don't break targets I don't usually use. Sure - what exactly would

Re: [Qemu-devel] [PATCH 03/17] linux-user: define a couple of syscalls for non-uid16 targets

2011-04-18 Thread Riku Voipio
On Fri, Apr 15, 2011 at 05:32:44PM +0200, Alexander Graf wrote: From: Ulrich Hecht u...@suse.de Quite a number of syscalls are only defined on systems with USE_UID16 defined; this patch defines them on other systems as well. Fixes a large number of uid/gid-related testcases on the s390x

[Qemu-devel] [PATCH 0/6] linux-user: pending patches

2011-04-18 Thread Riku Voipio
to some other location. Alexander Graf (1): linux-user: add s390x to llseek list Laurent Vivier (3): linux-user: improve traces linux-user: convert ioctl(SIOCGIFCONF, ...) result. linux-user: add ioctl(SIOCGIWNAME, ...) support. Riku Voipio (2): [v2] linux-user: bigger default stack

[Qemu-devel] [PATCH 2/6] linux-user: improve traces

2011-04-18 Thread Riku Voipio
From: Laurent Vivier laur...@vivier.eu Add trace details for getpid(), kill(), _llseek(), rt_sigaction(), rt_sigprocmask(), clone(). Signed-off-by: Laurent Vivier laur...@vivier.eu Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/strace.c| 161

[Qemu-devel] [PATCH 1/6] [v2] linux-user: bigger default stack

2011-04-18 Thread Riku Voipio
From: Riku Voipio riku.voi...@nokia.com PTHREAD_STACK_MIN (16KB) is somewhat inadequate for a new stack for new QEMU threads. Set new limit to 256K which should be enough, yet doesn't increase memory pressure significantly. Signed-off-by: Riku Voipio riku.voi...@nokia.com Reviewed-by: Nathan

[Qemu-devel] [PATCH 4/6] linux-user: add ioctl(SIOCGIWNAME, ...) support.

2011-04-18 Thread Riku Voipio
); return 0; } $ ./wifi eth0 No wireless extension $ ./wifi wlan0 wlan0 IEEE 802.11bg Signed-off-by: Laurent Vivier laur...@vivier.eu Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/ioctls.h |1 + linux-user/syscall.c |2 +- linux-user/syscall_defs.h |3 +++ 3

[Qemu-devel] [PATCH 5/6] linux-user: add s390x to llseek list

2011-04-18 Thread Riku Voipio
From: Alexander Graf ag...@suse.de We keep a list of host architectures that do llseek with the same syscall as lseek. S390x is one of them, so let's add it to the list. Original-patch-by: Ulrich Hecht u...@suse.de Signed-off-by: Alexander Graf ag...@suse.de Signed-off-by: Riku Voipio riku.voi

[Qemu-devel] [PATCH 3/6] linux-user: convert ioctl(SIOCGIFCONF, ...) result.

2011-04-18 Thread Riku Voipio
ifc.ifc_len / sizeof(struct ifreq) ; i ++) { struct sockaddr_in *s; s = (struct sockaddr_in*)ifc.ifc_req[i].ifr_addr; printf(%s\n, ifc.ifc_req[i].ifr_name); printf(%s\n, inet_ntoa(s-sin_addr)); } } Signed-off-by: Laurent Vivier laur...@vivier.eu Signed-off-by: Riku

[Qemu-devel] [PATCH 6/6] linux-user: untie syscalls from UID16

2011-04-18 Thread Riku Voipio
selected UID16 syscalls. MIPS and PowerPC were also defined as UID16, to get uid/gid syscalls available, drop this error as well. Change QEMU to reflect this. Cc: Ulrich Hecht u...@suse.de Cc: Richard Henderson r...@twiddle.net Cc: Alexander Graf ag...@suse.de Signed-off-by: Riku Voipio riku.voi

Re: [Qemu-devel] MIPS64 user mode emulation Patch

2011-03-29 Thread Riku Voipio
Hi, First, do you have some instructions on howto build Octeon usermode 64bit binaries. Second, I think we would prefer that the patch was split to smaller patches. At least the target-mips changes should be a separate patch. Some more comments included inline between the code. On Sat, Mar 26,

[Qemu-devel] re: PRoot: A Step Forward for QEMU User-Mode

2011-03-21 Thread Riku Voipio
Hi, First, thanks for the report! On Mon, Mar 21, 2011 at 12:09:10PM +, Peter Maydell wrote: == Talk 11: PRoot: A Step Forward for QEMU User-Mode == STMicroelectronics again, presenting an alternative to the usual chroot plus binfmt_misc approach for running target binaries seamlessly

Re: [Qemu-devel] [PATCH] linux-user: bigger default stack

2011-03-04 Thread Riku Voipio
On Thu, Mar 03, 2011 at 08:46:40AM -0800, Nathan Froyd wrote: On Thu, Mar 03, 2011 at 06:15:49PM +0200, Riku Voipio wrote: QEMU linux-user calls glibc functions which, while usually very conservative with memory usage, are not guaranteed not take less than 10KB (at do_syscall we are already

<    7   8   9   10   11   12   13   14   >