[Qemu-devel] [PATCH 06/19] linux-user: fake /proc/self/auxv

2012-01-31 Thread riku . voipio
acked auxv tables via /proc/self/auxv as well. Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- linux-user/syscall.c | 30 ++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 5a5fdac..c6bfcd8 10

[Qemu-devel] [PATCH 13/19] linux-user/syscall.c: Implement f and l versions of set/get/removexattr

2012-01-31 Thread riku . voipio
From: Peter Maydell Implement the f and l versions (operate on fd, don't follow links) of the setxattr, getxattr and removexattr syscalls. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 79 -- 1

[Qemu-devel] [PATCH 12/19] linux-user: Allow NULL value pointer in setxattr and getxattr

2012-01-31 Thread riku . voipio
From: Peter Maydell It's valid to pass a NULL value pointer to setxattr, so don't fail this case EFAULT. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 24 ++-- 1 files changed, 18 insertions(+), 6 deletions(-) diff --g

[Qemu-devel] [PATCH 17/19] linux-user: Define TARGET_QEMU_ESIGRETURN for mipsn32

2012-01-31 Thread riku . voipio
From: Andreas Färber Copied from mips/syscall.h. Signed-off-by: Ulrich Hecht Signed-off-by: Andreas Färber Signed-off-by: Riku Voipio --- linux-user/mipsn32/syscall.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/linux-user/mipsn32/syscall.h b/linux-user/mipsn32

[Qemu-devel] [PATCH 14/19] linux-user: Implement *listxattr syscalls

2012-01-31 Thread riku . voipio
From: Peter Maydell Implement listxattr, flistxattr and llistxattr syscalls. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 36 +++- 1 files changed, 35 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall.c b

[Qemu-devel] [PATCH 11/19] linux-user: fix wait* syscall status returns

2012-01-31 Thread riku . voipio
est cases when building yast2-core in OBS for ARM. Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- 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 29d92c4..06b19e0 100644 --- a/l

[Qemu-devel] [PATCH 15/19] linux-user: Add default-configs for mipsn32[el]

2012-01-31 Thread riku . voipio
From: Andreas Färber Prepares for mipsn32[el]-linux-user targets. Signed-off-by: Ulricht Hecht Signed-off-by: Andreas Färber Signed-off-by: Riku Voipio --- default-configs/mipsn32-linux-user.mak |1 + default-configs/mipsn32el-linux-user.mak |1 + 2 files changed, 2 insertions

[Qemu-devel] [PATCH 01/19] linux-user: stack_base is now mandatory on all targets

2012-01-31 Thread riku . voipio
From: Riku Voipio --- linux-user/qemu.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 55ad9d8..30e2abd 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -123,10 +123,10 @@ typedef struct TaskState { #endif #if

[Qemu-devel] [PATCH 07/19] linux-user/main.c: Add option to user-mode emulation so that user can specify log file name

2012-01-31 Thread riku . voipio
en Wen-Ren Signed-off-by: Riku Voipio --- linux-user/main.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 64d2208..14bf5f0 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -2945,6 +2945,11 @@ static void handl

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

2012-01-31 Thread riku . voipio
From: Peter Maydell 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: Peter Maydell Signed-off-by: R

[Qemu-devel] [PATCH 08/19] linux-user: add SO_PEERCRED support for getsockopt

2012-01-31 Thread riku . voipio
From: Akos PASZTORY Signed-off-by: Akos PASZTORY Signed-off-by: Riku Voipio --- linux-user/syscall.c | 34 +- linux-user/syscall_defs.h |6 ++ 2 files changed, 39 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall.c b/linux-user

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

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 > th

[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 TARGET_RLIM_INF

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. > > > >

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

2011-10-27 Thread riku . voipio
eboot() emulation. Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- 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 --- a/linux-user/syscall.c +++ b/linux

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

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

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

2011-10-27 Thread riku . voipio
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio --- 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/syscall_nr.h index be503f2..f201f9f 100644 --- a

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

2011-10-27 Thread riku . voipio
From: Richard Henderson 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 Signed-off-by: Riku Voipio --- linux-user/elfload.c |8 ---

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

2011-10-27 Thread riku . voipio
From: Riku Voipio 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 linux-user: implement

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

2011-10-27 Thread riku . voipio
From: Matthias Braun Signed-off-by: Matthias Braun Signed-off-by: Riku Voipio --- 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 index 1bc54c7..5fd4c9c 100644 --- a/linux-user

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

2011-10-27 Thread riku . voipio
f the mode parameter, rendering permission passing of openat() to work with linux-user. Reported-by: Dirk Mueller Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- linux-user/syscall.c | 14 +- 1 files changed, 1 insertions(+), 13 deletions(-) diff --git a/linux-user/s

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

2011-10-27 Thread riku . voipio
From: Matthias Braun Signed-off-by: Matthias Braun Signed-off-by: Riku Voipio --- 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 index 15c44d4..1bc54c7 100644 --- a/linux-user

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

2011-10-27 Thread riku . voipio
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio --- 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..c36a8af 100644 --- a/linux-user/main.c +++ b/linux-user

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

2011-10-27 Thread riku . voipio
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio --- 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..2bc10ed 100644 --- a/linux-user/main.c +++ b/linux

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

2011-10-27 Thread riku . voipio
From: Richard Henderson Use target_ulong instead of hard-coded uint32_t. Remove the disabled printf's that are redundant with -strace. Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/main.c | 13 +++-- 1 files changed, 3 insertions(+), 10 dele

[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 Huan

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

2011-09-09 Thread riku . voipio
to guest offset to ensure it can map a page * Populate page with kernel helper version Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell Signed-off-by: Dr. David Alan Gilbert --- linux-user/elfload.c | 56 ++- linux-user/main.c| 89

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

2011-09-09 Thread riku . voipio
:621:1: internal compiler error: Segmentation fault Signed-off-by: Riku Voipio Signed-off-by: Laurent ALFONSI Signed-off-by: Cédric VINCENT --- linux-user/syscall.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c i

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

2011-09-09 Thread riku . voipio
From: An-Cheng Huang 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 Reviewed-by: Peter

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

2011-09-09 Thread riku . voipio
From: Johannes Schauer (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 checkpatch.pl, also have

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

2011-09-09 Thread riku . voipio
From: Riku Voipio 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 linux-user-for

[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 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 Signed-off-by: Peter Maydell --- linux

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

2011-09-09 Thread riku . voipio
From: An-Cheng Huang 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 Reviewed-by: Peter Maydell Signed-off-by: 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 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 Reviewed-by: Peter Maydell Signed-off-by: An-Cheng Huang --- linux-user/main.c |2 +- 1 files changed, 1

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 >>>

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

2011-09-01 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 > > sysca

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

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 w

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] [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 resolve

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] [PULL] v2: pending linux-user patches

2011-07-18 Thread Riku Voipio
ll numbers 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-

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

2011-07-13 Thread riku . voipio
ack allocation fails (too big) and child process dies Signed-off-by: Wesley W. Terpstra Signed-off-by: Riku Voipio --- linux-user/syscall.c | 22 +- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 90f6789..4b9e3b

[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 Add syscall numbers for new syscall numbers; this brings us into line with Linux 2.6.39.2. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/alpha/syscall_nr.h | 23 ++- linux-user/arm/syscall_nr.h| 13

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

2011-07-13 Thread riku . voipio
. Terpstra Signed-off-by: Riku Voipio --- linux-user/syscall.c | 45 ++--- linux-user/syscall_defs.h | 34 ++ 2 files changed, 76 insertions(+), 3 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

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

2011-07-13 Thread riku . voipio
From: Cédric VINCENT This patch was validated with programs from DirectFB-1.0 and WebKit/DirectFB. Signed-off-by: Cédric VINCENT Cc: Riku Voipio Signed-off-by: Riku Voipio --- linux-user/ioctls.h|5 + linux-user/syscall_defs.h |5 + linux-user/syscall_types.h | 13

[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 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). Cc: Wesley W

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

2011-07-13 Thread riku . voipio
From: Wesley W. Terpstra 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 Signed-off-by: Riku Voipio --- linux-user/main.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions

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

2011-07-13 Thread riku . voipio
s clash. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- 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 100644 --- a/linux-user/signal.c +++ b/l

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

2011-07-13 Thread riku . voipio
From: Cédric VINCENT 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 Cc: Riku Voipio Signed-off-by: Riku Voipio --- linux-use

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

2011-07-13 Thread riku . voipio
From: Riku Voipio 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 c

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

2011-07-13 Thread riku . voipio
From: Wesley W. Terpstra Return -TARGET_ENOSYS instead of -ENOSYS from linux-user/main.c * Caused strange 'Level 2 synchronization messages' instead of correctly reporting the syscall was missing. * Made glibc simply fail instead of using older syscalls Signed-off-by: Riku Voip

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

2011-07-13 Thread riku . voipio
From: Peter Maydell 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. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c |5

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

2011-07-13 Thread riku . voipio
From: Wesley W. Terpstra 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 Signed-off-by: Riku Voipio --- linux-user/main.c |2 +- 1

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

2011-07-13 Thread riku . voipio
From: Peter Maydell Implement the prlimit64 syscall. Slightly modified to apply upstream -Riku Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 43 +++ linux-user/syscall_defs.h |4 2 files changed, 47

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

2011-07-13 Thread riku . voipio
SETLEDS_HOST)) >> 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 Cc: Riku Voipio Signed-off-by: Riku Voipio --- linux-user/ioctls.h |

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

2011-07-13 Thread riku . voipio
From: Riku Voipio 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://git.linaro.

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

2011-07-13 Thread riku . voipio
quite well. I know renaming can be considered harmful but I do think in this case the semantic really matters to keep this code more understandable. Signed-off-by: Cédric VINCENT Reviewed-by: Christophe Lyon Cc: Peter Maydell Cc: Paul Brook Cc: Wolfgang

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

2011-07-11 Thread riku . voipio
From: Cédric VINCENT 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 Cc: Riku Voipio Signed-off-by: Riku Voipio --- linux-use

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: > Ok, I missed these patches. Will adjust the linux-user patchset to i

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

2011-07-11 Thread riku . voipio
From: Peter Maydell 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. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c |5

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

2011-07-11 Thread riku . voipio
From: Peter Maydell Implement the prlimit64 syscall. Slightly modified to apply upstream -Riku Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 43 +++ linux-user/syscall_defs.h |4 2 files changed, 47

[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 Add syscall numbers for new syscall numbers; this brings us into line with Linux 2.6.39.2. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/alpha/syscall_nr.h | 23 ++- linux-user/arm/syscall_nr.h| 13

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

2011-07-11 Thread riku . voipio
From: Cédric VINCENT This patch was validated with programs from DirectFB-1.0 and WebKit/DirectFB. Signed-off-by: Cédric VINCENT Cc: Riku Voipio Signed-off-by: Riku Voipio --- linux-user/ioctls.h|5 + linux-user/syscall_defs.h |5 + linux-user/syscall_types.h | 13

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

2011-07-11 Thread riku . voipio
From: Riku Voipio 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 VINCENT (4): arm-semi

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

2011-07-11 Thread riku . voipio
SETLEDS_HOST)) >> 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 Cc: Riku Voipio Signed-off-by: Riku Voipio --- linux-user/ioctls.h |

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

2011-07-11 Thread riku . voipio
quite well. I know renaming can be considered harmful but I do think in this case the semantic really matters to keep this code more understandable. Signed-off-by: Cédric VINCENT Reviewed-by: Christophe Lyon Cc: Peter Maydell Cc: Paul Brook Cc: Wolfgang

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 tou

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 t

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

2011-06-25 Thread riku . voipio
check for failure 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

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 in

[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 Signed-off-by: Riku Voipio --- 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 --- a/linux-user/signal.c +++ b/linux

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

2011-06-20 Thread riku . voipio
From: Juan Quintela Signed-off-by: Juan Quintela Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/flatload.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/linux-user/flatload.c b/linux-user/flatload.c index 6fb78f5..1062da3 100644 --- a

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

2011-06-20 Thread riku . voipio
From: Peter Maydell 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 Signed-off-by: Riku Voipio --- linux-user/signal.c |7 +-- 1 files changed

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

2011-06-20 Thread riku . voipio
From: Riku Voipio 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 --- linux-user/syscall.c |5 + 1 fil

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

2011-06-20 Thread riku . voipio
user stack. * Add a small test program. Signed-off-by: Cédric VINCENT Signed-off-by: Laurent ALFONSI Signed-off-by: Riku Voipio --- linux-user/elfload.c | 21 - 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/linux-user/elfload.c b/linux-user/elflo

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

2011-06-20 Thread riku . voipio
variables being set and never used. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/main.c| 37 - linux-user/qemu.h|3 ++- linux-user/syscall.c |8 +--- 3 files changed, 31 insertions(+), 17 deletions(-) diff --git a

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

2011-06-20 Thread riku . voipio
From: Juan Quintela Signed-off-by: Juan Quintela Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/linuxload.c | 25 + 1 files changed, 1 insertions(+), 24 deletions(-) diff --git a/linux-user/linuxload.c b/linux-user/linuxload.c index ac8c486

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

2011-06-20 Thread riku . voipio
ced 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 Signed-off-by: Riku Voipio --- linux-user/elfload.c | 130 -

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

2011-06-20 Thread riku . voipio
From: Juan Quintela We assign ret with the error code, but then return 0 unconditionally. Signed-off-by: Juan Quintela Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/linux-user

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

2011-06-20 Thread riku . voipio
From: Mike Frysinger Some architectures (like Blackfin) only implement pselect6 (and skip select/newselect). So add support for it. Signed-off-by: Mike Frysinger Signed-off-by: Riku Voipio --- linux-user/syscall.c | 149 +++-- 1 files changed

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

2011-06-20 Thread riku . voipio
ped but at different address" as an error case instead. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 29 - 1 files changed, 20 insertions(+), 9 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 5

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

2011-06-20 Thread riku . voipio
From: Juan Quintela Just unfold its definition in only use. Signed-off-by: Juan Quintela [peter.mayd...@linaro.org: fixed typo in the debug code, added parentheses to fix precedence issue] Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/flatload.c |5 ++--- 1

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

2011-06-20 Thread riku . voipio
{ printf("success\n"); exit(EXIT_SUCCESS); } else { exit(EXIT_FAILURE); } } Signed-off-by: Cédric VINCENT Reviewed-by: Christophe Guillon Signed-off-by: Riku Voipio --- linux-user/syscall.c | 11 ++- 1 fil

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

2011-06-20 Thread riku . voipio
From: Juan Quintela Looking at the other architectures, we should be using "how" not "arg1". Signed-off-by: Juan Quintela [peter.mayd...@linaro.org: remove unnecessary initialisation of how] Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/sysc

[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 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 Signed-off-by: Riku Voipio --- arm-semi.c |5 +++-- 1 files

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

2011-06-20 Thread riku . voipio
start _start: mov #1, r3 trapa #40 // syscall(__NR_exit) nop The bug appears when the log (option "-d") is enabled. Signed-off-by: Cédric VINCENT Signed-off-by: Yves JANIN Signed-off-by: Riku Voipio --- linux-user/elfload.c | 34 +++

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

2011-06-20 Thread riku . voipio
From: Riku Voipio 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: Implement active-low

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

2011-06-20 Thread riku . voipio
From: Peter Maydell In the m68k semihosting implementation of HOSTED_INIT_SIM, 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 Signed-off-by: Riku Voipio --- m68k-semi.c |5 +++-- 1

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

2011-06-20 Thread riku . voipio
From: Mike McCormack 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 Signed-off-by: Riku Voipio --- linux-user/signal.c |4 ++-- 1 files changed

Re: [Qemu-devel] [PATCH] target-arm: Move VLD/VST multiple into helper functions

2011-06-06 Thread riku voipio
On 06/03/2011 11:47 PM, Aurelien Jarno wrote: On Mon, May 02, 2011 at 05:01:24PM +0100, Peter Maydell wrote: On 20 April 2011 15:52, Peter Maydell wrote: Move VLD/VST multiple into helper functions, as some cases can generate more TCG ops than the maximum per-instruction limit and certainly mo

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 l

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

2011-05-02 Thread riku . voipio
From: Mike McCormack Zeroing of the cpu array should start from &cpus[kernel_ret] not &cpus[num_zeros_to_fill]. This fixes a crash in EFL's edje_cc running under qemu-arm. Signed-off-by: Mike McCormack Reviewed-by: Stefan Hajnoczi Acked-by: Mike Frysinger Signed-off-by

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

2011-05-02 Thread riku . voipio
From: Mike McCormack The kernel doesn't fill the buffer provided to sched_getaffinity with zero bytes, so neither should QEMU. Signed-off-by: Mike McCormack Reviewed-by: Stefan Hajnoczi Signed-off-by: Riku Voipio --- linux-user/syscall.c | 13 + 1 files changed, 1 inser

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

2011-05-02 Thread riku . voipio
From: Stefan Weil 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 Signed-off-by: Riku Voipio --- linux-user/strace.c | 12 1 files changed, 12 insertions(+), 0

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

2011-05-02 Thread riku . voipio
From: Riku Voipio 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-user-fo

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

2011-04-26 Thread Riku Voipio
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

[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 Cc: Richard Henderson Cc: Alexander Graf Signed-off-by: Riku Voipio --- linux-user/alpha/syscall_nr.h |7

<    7   8   9   10   11   12   13   14   >