[Qemu-devel] [PULL 08/21] linux-user: Enable NPTL for m68k

2013-07-23 Thread riku . voipio
Maydell Reviewed-by: Laurent Vivier Signed-off-by: Riku Voipio --- configure| 1 - linux-user/m68k/target_cpu.h | 6 +- linux-user/qemu.h| 1 + linux-user/syscall.c | 12 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a

[Qemu-devel] [PULL 17/21] linux-user: fix segmentation fault passing with h2g(x) != x

2013-07-23 Thread riku . voipio
java running in arm-linux-user for me. Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- include/exec/cpu-all.h | 8 ++-- user-exec.c| 4 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h index 508

[Qemu-devel] [PULL 06/21] linux-user: Enable NPTL for OpenRISC

2013-07-23 Thread riku . voipio
with NPTL enabled. Signed-off-by: Peter Maydell Reviewed-by: Jia Liu Signed-off-by: Riku Voipio --- configure| 1 - linux-user/openrisc/target_cpu.h | 9 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 0b19408..bfad34e

[Qemu-devel] [PULL 03/21] configure: Enable threading on all ppc and mips linux-user targets

2013-07-23 Thread riku . voipio
ydell Reviewed-by: Richard Henderson Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio --- configure | 4 1 file changed, 4 deletions(-) diff --git a/configure b/configure index 3792607..9b7101c 100755 --- a/configure +++ b/configure @@ -4225,13 +4225,11 @@ case "$targe

[Qemu-devel] [PULL 00/21] Linux-user updates

2013-07-23 Thread riku . voipio
From: Riku Voipio The linux-user patches that have been sent to the list during the last few weeks that do not break in any of my my tests. The following changes since commit 549c272b3c7c2aac69155be2e158c970828b2844: Merge remote-tracking branch 'pmaydell/tags/pull-arm-devs-20130722&

[Qemu-devel] [PULL 12/21] linux-user: Enable NPTL for x86-64

2013-07-23 Thread riku . voipio
From: Peter Maydell Add x86-64 implementation of cpu_set_tls() (like the kernel, we just have to call do_arch_prctl() to set FS); this allows us to enable NPTL. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- configure| 1 - linux-user/i386/target_cpu.h | 7

[Qemu-devel] [PULL 11/21] linux-user: Add i386 TLS setter

2013-07-23 Thread riku . voipio
From: Alexander Graf We can easily set the TLS on i386. Add code to do so. Signed-off-by: Alexander Graf [PMM: also remove "target_nptl=no" line from configure, for consistency with other patches in this series] Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio ---

[Qemu-devel] [PULL 15/21] linux-user: Fix target_stat and target_stat64 for OpenRISC

2013-07-23 Thread riku . voipio
omitted the target_stat64 definition. Fix target_stat, provide target_stat64, and add a comment noting that these are the asm-generic versions for the benefit of future ports. Reviewed-by: Jia Liu Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall_defs.h | 49

[Qemu-devel] [PULL 16/21] linux-user: Fix pipe syscall return for SPARC

2013-07-23 Thread riku . voipio
From: Peter Maydell SPARC is one of the CPUs which has a funny syscall ABI for the pipe syscall; add it to the set of special cases in do_pipe(). Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user

[Qemu-devel] [PULL 13/21] configure: Make NPTL non-optional

2013-07-23 Thread riku . voipio
s bsd-user would never have been compiled with CONFIG_USE_NPTL defined, and it still is not. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio --- configure | 25 +++-- include/exec/gdbstub.h | 2 +- linux-user/main.c

[Qemu-devel] [PULL 18/21] linux-user: Fix epoll on ARM hosts

2013-07-23 Thread riku . voipio
e the padding mandatory for ARM targets. This fixes i386-on-ARM epoll emulation for me. Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- linux-user/syscall_defs.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_d

[Qemu-devel] [PULL 07/21] linux-user: Enable NPTL for SPARC targets

2013-07-23 Thread riku . voipio
From: Peter Maydell Provide the missing cpu_set_tls(), and resolve the FIXME in cpu_clone_regs() by clearing the carry flag for the child. This allows us to turn on building with NPTL for SPARC. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio

[Qemu-devel] [PULL 21/21] linux-user: Handle compressed ISA encodings when processing MIPS exceptions

2013-07-23 Thread riku . voipio
From: Kwok Cheung Yeung Decode trap instructions during the handling of an EXCP_BREAK or EXCP_TRAP according to the current ISA mode. Signed-off-by: Kwok Cheung Yeung Signed-off-by: Riku Voipio --- linux-user/main.c | 46 +++--- 1 file changed, 43

[Qemu-devel] [PULL 10/21] linux-user: Clean up handling of clone() argument order

2013-07-23 Thread riku . voipio
rs to be broken in the mainline kernel in that it tries to use arg3 for both parent_tidptr and newtls simultaneously -- we don't attempt to emulate this bug...) Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/arm/syscall.h| 2 ++ linux-user/cris/syscall.h

[Qemu-devel] [PULL 14/21] linux-user: Avoid conditional cpu_reset()

2013-07-23 Thread riku . voipio
the #ifdef. Suggested-by: Peter Maydell Signed-off-by: Andreas Färber Cc: Eduardo Habkost Signed-off-by: Riku Voipio --- linux-user/main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 5537967..547884c 100644 --- a/linux-user/main.c +++ b/linux-u

[Qemu-devel] [PULL 19/21] linux-user: Reset copied CPUs in cpu_copy() always

2013-07-23 Thread riku . voipio
. Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- exec.c | 4 linux-user/syscall.c | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/exec.c b/exec.c index c8658c6..2426bf7 100644 --- a/exec.c +++ b/exec.c @@ -642,6 +642,10 @@ CPUArchState

[Qemu-devel] [PULL 01/21] configure: Flip default of target_nptl

2013-07-23 Thread riku . voipio
the "no" entries it adds will be taken out in later patches. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio --- configure | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/configure b/configure

[Qemu-devel] [PULL 20/21] linux-user: Unlock mmap_lock when resuming guest from page_unprotect

2013-07-23 Thread riku . voipio
ned-off-by: Riku Voipio --- translate-all.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/translate-all.c b/translate-all.c index e8683d2..3b5fc7c 100644 --- a/translate-all.c +++ b/translate-all.c @@ -1148,7 +1148,8 @@ void tb_invalidate_phys_page_fast(tb_page_ad

[Qemu-devel] [PULL 09/21] linux-user: Add missing 'break' in i386 get_thread_area syscall

2013-07-23 Thread riku . voipio
From: Peter Maydell The i386 code for the get_thread_area syscall was missing a 'break' which meant it would have fallen through into the implementation of the following syscall; add it. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio ---

[Qemu-devel] [RFC] [PATCH] linux-user: implement m68k atomic syscalls

2013-07-24 Thread riku . voipio
From: Riku Voipio With nptl enabled, atomic_cmpxchg_32 and atomic_barrier system calls are needed. This patch enabled really dummy versions of the system calls, modeled after the m68k kernel code. With this patch I am able to execute m68k binaries with qemu linux-user (busybox compiled for

[Qemu-devel] [PATCH 0/2] [PULL 1.1] linux-user fixes for 1.1

2012-05-03 Thread riku . voipio
From: Riku Voipio The following fixes since commit f05ae5379e40f81a6c8526d891693af8bf6e62da: Bail out if CONFIG_TCG_PASS_AREG0 is defined (2012-05-03 15:48:49 +0400) are available in the git repository at: git://git.linaro.org/people/rikuvoipio/qemu.git linux-user-for-upstream Please

[Qemu-devel] [PATCH 2/2] linux-user: fix emulation of /proc/self/maps

2012-05-03 Thread riku . voipio
n writable memory. (For an example see the bug reported in https://bugs.launchpad.net/qemu-linaro/+bug/947888 where gpg aborts.) Signed-off-by: Alexander Graf Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 42 +- 1 file c

[Qemu-devel] [PATCH 1/2] linux-user: Clean up interim solution for exit syscall

2012-05-03 Thread riku . voipio
From: Andreas Färber After all target CPUs have been QOM'ified, we no longer need an #ifdef to switch between object_delete() and g_free() in NPTL thread exit. Signed-off-by: Andreas Färber Signed-off-by: Riku Voipio --- linux-user/syscall.c |4 1 file changed, 4 deletions(-)

Re: [Qemu-devel] [PATCH 1.1] linux-user: Fix stale tbs after mmap

2012-05-16 Thread Riku Voipio
On Tue, May 15, 2012 at 04:32:51PM -0500, Anthony Liguori wrote: > Riku, > > Can you review/ack this patch? Acked-by: Riku Voipio Are there any other Linux-user patches to consider for 1.1 ? > > Regards, > > Anthony Liguori > > > On 05/15/2012 03:35 PM, Pete

Re: [Qemu-devel] [PATCH 1/2] alpha-linux-user: Fix umount syscall numbers

2013-09-09 Thread Riku Voipio
Hi, On Mon, Aug 26, 2013 at 01:26:11PM -0700, Richard Henderson wrote: > Ping. Sorry for the delay, adding it to the next pull request. Riku > On 08/16/2013 11:24 PM, Richard Henderson wrote: > > Ping. > > > > r~ > > > > > > On 07/24/2013 12:50 PM, Richard Henderson wrote: > >> It has been p

Re: [Qemu-devel] [PATCH] linux-user: Emulate SOCK_CLOEXEC/NONBLOCK if unavailable

2013-09-23 Thread Riku Voipio
Hi, On Mon, Sep 16, 2013 at 03:08:06PM +0200, edgar.igles...@gmail.com wrote: > From: "Edgar E. Iglesias" > > If the host lacks support for SOCK_CLOEXEC or SOCK_NONBLOCK, > try to emulate them with fcntl() FD_CLOEXEC and O_NONBLOCK. Last time emulating CLOEXEC with fcntl was discussed, the idea

Re: [Qemu-devel] [PATCH] linux-user: Fix wrong use of stat instead of stat64 for sparc64

2013-09-23 Thread Riku Voipio
On Thu, Sep 19, 2013 at 07:31:51PM +0200, Stefan Weil wrote: > Ping? Are there any more opinions how qemu-sparc64 should be fixed? > Should we choose Peter's approach (which is good, but with a > higher risk than my patch)? I've included it now in my qeu, since it fixes qemu-sparc64 in my smoketes

Re: [Qemu-devel] [PATCH] linux-user: Fix wrong use of stat instead of stat64 for sparc64

2013-09-24 Thread Riku Voipio
On Mon, Sep 23, 2013 at 09:05:03PM +0900, Peter Maydell wrote: > On 23 September 2013 20:57, Riku Voipio wrote: > > On Thu, Sep 19, 2013 at 07:31:51PM +0200, Stefan Weil wrote: > >> Ping? Are there any more opinions how qemu-sparc64 should be fixed? > >> Should we cho

[Qemu-devel] [PATCH 05/11] linux-user: allow use of TIOCGSID

2013-09-27 Thread riku . voipio
From: Laurent Vivier Signed-off-by: Laurent Vivier Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/ioctls.h | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 439c2a9..7381012 100644 --- a/linux-user/ioctls.h +++ b/linux

[Qemu-devel] [PATCH 01/11] alpha-linux-user: Fix umount syscall numbers

2013-09-27 Thread riku . voipio
QEMU, given that we control linux-user/*/syscall_nr.h. This is the last instance of TARGET_NR_oldumount, so delete that from the strace.list. Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/alpha/syscall_nr.h | 4 ++-- linux-user/strace.list| 3 --- linux

[Qemu-devel] [PATCH 04/11] linux-user: Add setsockopt(SO_ATTACH_FILTER)

2013-09-27 Thread riku . voipio
From: Laurent Vivier This is needed to be able to run dhclient. Signed-off-by: Laurent Vivier Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 44 linux-user/syscall_defs.h | 12 2 files changed

[Qemu-devel] [PATCH 02/11] mips-linux-user: Adjust names in mips_syscall_args

2013-09-27 Thread riku . voipio
From: Richard Henderson The name field of MIPS_SYS isn't actually used; it's just documentation. But adjust the umount entries to match mips/syscall_nr.h anyway. Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/main.c | 4 ++-- 1 file changed, 2 insert

[Qemu-devel] [PATCH 03/11] linux-user: convert /proc/net/route when endianess differs

2013-09-27 Thread riku . voipio
eviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 58 +++- 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 5c33e44..251c116 100644 --- a/linux-user/syscall.c +

[Qemu-devel] [PULL] [PATCH 00/11] Linux-user updates

2013-09-27 Thread riku . voipio
From: Riku Voipio The following changes since commit f828a4c8faa118e0ebab3e353ac6840f3b2a0318: Merge remote-tracking branch 'stefanha/tracing' into staging (2013-09-23 11:53:22 -0500) are available in the git repository at: git://git.linaro.org/people/rikuvoipio/qemu.git linu

[Qemu-devel] [PATCH 08/11] linux-user: correct how SOL_SOCKET is converted from target to host and back

2013-09-27 Thread riku . voipio
From: Petar Jovanovic Previous implementation does not take into account that SOL_SOCKET constant can be arch specific. This change fixes some issues with sendmsg/recvmsg. Signed-off-by: Petar Jovanovic Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 18

[Qemu-devel] [PATCH 07/11] linux-user: add support of binfmt_misc 'O' flag

2013-09-27 Thread riku . voipio
is enabled, bintfmt_misc opens the file for reading and pass the file descriptor to the interpreter. References: linux/Documentation/binfmt_misc.txt ['O' and 'C' description] linux/fs/binfmt_misc.c linux/fs/binfmt_elf.c [ AT_EXECFD usage ] Signed-off-by: Laurent V

[Qemu-devel] [PATCH 09/11] linux-user: Check type of microMIPS break instruction

2013-09-27 Thread riku . voipio
better clarity. Signed-off-by: Kwok Cheung Yeung Signed-off-by: Riku Voipio --- linux-user/main.c | 56 ++- 1 file changed, 35 insertions(+), 21 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 016e2e1..1561950 100644

[Qemu-devel] [PATCH 11/11] linux-user: Handle SOCK_CLOEXEC/NONBLOCK if unavailable on host

2013-09-27 Thread riku . voipio
From: "Edgar E. Iglesias" If the host lacks SOCK_CLOEXEC, bail out with -EINVAL. If the host lacks SOCK_ONONBLOCK, try to emulate it with fcntl() and O_NONBLOCK. Signed-off-by: Edgar E. Iglesias Signed-off-by: Riku Voipio --- linux-user/sysc

[Qemu-devel] [PATCH 06/11] linux-user: add some IPV6 commands in setsockop()

2013-09-27 Thread riku . voipio
From: Laurent Vivier Signed-off-by: Laurent Vivier Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 20 1 file changed, 20 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 505031b..7a093ba 100644 --- a/linux

[Qemu-devel] [PATCH 10/11] [v2] linux-user: implement m68k atomic syscalls

2013-09-27 Thread riku . voipio
From: Riku Voipio With nptl enabled, atomic_cmpxchg_32 and atomic_barrier system calls are needed. This patch enabled really dummy versions of the system calls, modeled after the m68k kernel code. With this patch I am able to execute m68k binaries with qemu linux-user (busybox compiled for

[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

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

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

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

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

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

2011-04-18 Thread Riku Voipio
From: Laurent Vivier Add trace details for getpid(), kill(), _llseek(), rt_sigaction(), rt_sigprocmask(), clone(). Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/strace.c| 161 linux-user/strace.list | 12

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

2011-04-18 Thread Riku Voipio
From: Riku Voipio 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 Reviewed-by: Nathan Froyd --- linux-user/syscall.c |

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

2011-04-18 Thread Riku Voipio
h0 No wireless extension $ ./wifi wlan0 wlan0 IEEE 802.11bg Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/ioctls.h |1 + linux-user/syscall.c |2 +- linux-user/syscall_defs.h |3 +++ 3 files changed, 5 insertions(+), 1 deletions(-) diff --git a/linu

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

2011-04-18 Thread Riku Voipio
From: Alexander Graf 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 Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- linux-user/syscall.c |3 ++- 1

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

2011-04-18 Thread Riku Voipio
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 Signed-off-by: Riku Voipio

[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

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

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

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/2] linux-user: Fix length handling in cmsg conversions

2015-06-06 Thread Riku Voipio
On Jun 5, 2015 6:03 PM, Peter Maydell wrote: > > Ping? I'll collect and review linux-user patches from the list on monday. Riku > > thanks > -- PMM > > On 26 May 2015 at 19:46, Peter Maydell wrote: > > This patchset fixes some problems in conversions of cmsg structures > > in target_to_ho

Re: [Qemu-devel] [PATCH] linux-user: Use abi_ulong for TARGET_ELF_PAGESTART

2015-06-12 Thread Riku Voipio
Hi, Applied to linux-user que, thanks Riku On Tuesday, June 2, 2015 12:12:21 PM EEST, Yongbok Kim wrote: ping! On 20/04/2015 16:15, Yongbok Kim wrote: TARGET_ELF_PAGESTART is required to use abi_ulong to correctly handle addresses for different target bits width. This patch fixes a problem w

Re: [Qemu-devel] [PATCH v2] linux-user: Allocate thunk size dynamically

2015-06-12 Thread Riku Voipio
On 7 May 2015 at 00:47, Alexander Graf wrote: > We store all struct types in an array of static size without ever > checking whether we overrun it. Of course some day someone (like me > in another, ancient ALSA enabling patch set) will run into the limit > without realizing it. > > So let's make t

Re: [Qemu-devel] [PATCH v2] linux-user: ioctl() command type is int

2015-06-12 Thread Riku Voipio
On Saturday, May 23, 2015 4:17:05 PM EEST, Laurent Vivier wrote: When executing a 64bit target chroot on 64bit host, the ioctl() command can mismatch. It seems the previous commit doesn't solve the problem in my case: 9c6bf9c7 linux-user: Fix ioctl cmd type mismatch on 64-bit targets F

Re: [Qemu-devel] [PATCH 0/2] sh4 linux-user cpu and hwcap

2015-06-12 Thread Riku Voipio
=shortlog;h=refs/heads/sh4-next A bit late, but I'm ok for merging these patches via sh4 tree. If you still going to edit branch, you can add my Acked-by: Riku Voipio Riku

Re: [Qemu-devel] [PATCH] linux-user: fix cmsg conversion in case of multiple headers

2015-09-21 Thread Riku Voipio
On Mon, Sep 21, 2015 at 06:13:57AM -0700, Peter Maydell wrote: > On 20 September 2015 at 22:34, Jonathan Neuschäfer > wrote: > > On Fri, Sep 04, 2015 at 01:48:39PM +0100, Peter Maydell wrote: > >> On 3 September 2015 at 06:27, Jonathan Neuschäfer > >> wrote: > >> > Currently, __target_cmsg_nxthd

Re: [Qemu-devel] [PATCH 00/19] multi-arch+linux-user: Cleanup ELF_MACHINE

2015-08-20 Thread Riku Voipio
| 6 ------ > target-tricore/cpu.h | 2 -- > target-unicore32/cpu.h | 2 -- > target-xtensa/cpu.h| 1 - > 47 files changed, 53 insertions(+), 99 deletions(-) Acked-By: Riku Voipio

Re: [Qemu-devel] [PATCH v2 12/16] linux-user: support {name_to, open_by}_handle_at syscalls

2014-06-27 Thread Riku Voipio
Hi, Comments inline: On Sat, Jun 21, 2014 at 11:53:07PM +0100, Paul Burton wrote: > Implement support for the name_to_handle_at and open_by_handle_at > syscalls, allowing their use by the target program. > > Signed-off-by: Paul Burton > --- > Changes in v2: > - None. > --- > linux-user/strac

Re: [Qemu-devel] [PATCH v2 00/16] linux-user fixes & improvements

2014-06-27 Thread Riku Voipio
On Sat, Jun 21, 2014 at 11:52:55PM +0100, Paul Burton wrote: > From: Paul Burton > > This series fixes a number of bugs in QEMUs linux-user support, some > specific to targetting the MIPS architecture but mostly generic. It also > adds support for some previously unsupported syscalls & {g,s}etsoc

[Qemu-devel] [PULL v2 00/13] linux-user changes for 2.1

2014-06-29 Thread riku . voipio
From: Riku Voipio The following changes since commit de6793e8c2a4d34e28e5ea385276249fc98109ec: Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20140627' into staging (2014-06-29 11:43:31 +0100) are available in the git repository at: git://git.linaro.org/people/r

[Qemu-devel] [PULL v2 01/13] Add support for MAP_NORESERVE mmap flag.

2014-06-29 Thread riku . voipio
From: Christophe Lyon mmap_flags_tbl contains a list of mmap flags, and how to map them to the target. This patch adds MAP_NORESERVE, which was missing to the list. Signed-off-by: Christophe Lyon Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 2 ++ 1 file

[Qemu-devel] [PULL v2 03/13] linux-user: translate the result of getsockopt SO_TYPE

2014-06-29 Thread riku . voipio
type helper function mirroring the existing target_to_host_sock_type, and call it to translate the value provided by getsockopt when called for the SO_TYPE option. Signed-off-by: Paul Burton Signed-off-by: Riku Voipio --- linux-user/syscall.c | 34 ++ 1 file changed

[Qemu-devel] [PULL v2 08/13] linux-user: support strace of epoll_create1

2014-06-29 Thread riku . voipio
From: Paul Burton Add the epoll_create1 syscall to strace.list in order to display that syscall when it occurs, rather than a message about the syscall being unknown despite QEMU already implementing support for it. Signed-off-by: Paul Burton Signed-off-by: Riku Voipio --- linux-user

[Qemu-devel] [PULL v2 04/13] linux-user: support SO_ACCEPTCONN getsockopt option

2014-06-29 Thread riku . voipio
From: Paul Burton Translate the SO_ACCEPTCONN option to the host value & execute the syscall as expected. Signed-off-by: Paul Burton Signed-off-by: Riku Voipio --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c i

[Qemu-devel] [PULL v2 10/13] linux-user: respect timezone for settimeofday

2014-06-29 Thread riku . voipio
provided. Although this argument is described by the settimeofday man page as obsolete, it is used by systemd as of version 213. Signed-off-by: Paul Burton Signed-off-by: Riku Voipio --- linux-user/syscall.c | 29 - linux-user/syscall_defs.h | 5 + 2 files cha

[Qemu-devel] [PULL v2 05/13] linux-user: support SO_{SND, RCV}BUFFORCE setsockopt options

2014-06-29 Thread riku . voipio
From: Paul Burton Translate the SO_SNDBUFFORCE & SO_RCVBUFFORCE options to setsockopt to the host values & perform the syscall as expected, allowing use of those options by target programs. Signed-off-by: Paul Burton Signed-off-by: Riku Voipio --- linux-user/syscall.c | 6 ++

[Qemu-devel] [PULL v2 06/13] linux-user: support SO_PASSSEC setsockopt option

2014-06-29 Thread riku . voipio
From: Paul Burton Translate the SO_PASSSEC option to setsockopt to the host value & perform the syscall as expected, allowing use of the option by target programs. Signed-off-by: Paul Burton Signed-off-by: Riku Voipio --- linux-user/socket.h | 5 + linux-user/syscall.c | 3 +++ 2 f

[Qemu-devel] [PULL v2 09/13] linux-user: fix struct target_epoll_event layout for MIPS

2014-06-29 Thread riku . voipio
From: Paul Burton MIPS requires the pad field to 64b-align the data field just as ARM does. Signed-off-by: Paul Burton Signed-off-by: Riku Voipio --- linux-user/syscall_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall_defs.h b/linux-user

[Qemu-devel] [PULL v2 12/13] linux-user: support the KDSIGACCEPT ioctl

2014-06-29 Thread riku . voipio
From: Paul Burton Add a definition of the KDSIGACCEPT ioctl & allow its use by target programs. Signed-off-by: Paul Burton Signed-off-by: Riku Voipio --- linux-user/ioctls.h | 1 + linux-user/syscall.c | 7 +++ linux-user/syscall_defs.h | 1 + 3 files changed, 9 insert

[Qemu-devel] [PULL v2 02/13] linux-user: added fake open() for /proc/self/cmdline

2014-06-29 Thread riku . voipio
From: Wim Vander Schelden Signed-off-by: Wim Vander Schelden Signed-off-by: Riku Voipio --- linux-user/syscall.c | 46 ++ 1 file changed, 46 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 007d59d..5c175ba 100644 --- a

[Qemu-devel] [PULL v2 07/13] linux-user: allow NULL arguments to mount

2014-06-29 Thread riku . voipio
NULL and already locked. Since the patch already touched most lines of the TARGET_NR_mount case, it fixes the indentation & coding style for good measure. Signed-off-by: Paul Burton Signed-off-by: Riku Voipio --- linux-user/syscall.c | 75 +---

[Qemu-devel] [PULL v2 11/13] linux-user: allow NULL tv argument for settimeofday

2014-06-29 Thread riku . voipio
f-by: Paul Burton Signed-off-by: Riku Voipio --- linux-user/syscall.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 0ce1a4e..8e2762b 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -6401,11 +640

[Qemu-devel] [PULL v2 13/13] linux-user: support the SIOCGIFINDEX ioctl

2014-06-29 Thread riku . voipio
From: Paul Burton Add a definition of the SIOCGIFINDEX ioctl, allowing its use by target programs. Signed-off-by: Paul Burton Signed-off-by: Riku Voipio --- linux-user/ioctls.h | 1 + linux-user/syscall_defs.h | 1 + 2 files changed, 2 insertions(+) diff --git a/linux-user/ioctls.h b

[Qemu-devel] [PULL 5/6] linux-user: use __get_user and __put_user in cmsg conversions

2015-06-15 Thread riku . voipio
using __put_user() rather than __get_user() for the SCM_CREDENTIALS conversion, which meant it wasn't getting the benefit of the misalignment handling.) Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 20 +++- 1 file changed, 11 insertions(

[Qemu-devel] [PULL 2/6] linux-user: Use abi_ulong for TARGET_ELF_PAGESTART

2015-06-15 Thread riku . voipio
-by: Riku Voipio --- linux-user/elfload.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index b71e866..1788368 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -1256,7 +1256,8 @@ struct exec /* Necessary parameters

[Qemu-devel] [PULL 6/6] linux-user: fix the breakpoint inheritance in spawned threads

2015-06-15 Thread riku . voipio
From: Thierry Bultel When a thread is spawned, cpu_copy re-initializes the bp & wp lists of current thread, instead of the ones of the new thread. The effect is that breakpoints are no longer hit. Signed-off-by: Thierry Bultel Signed-off-by: Riku Voipio --- linux-user/main.c | 4 ++-- 1

[Qemu-devel] [PULL 1/6] linux-user: Allocate thunk size dynamically

2015-06-15 Thread riku . voipio
ander Graf Signed-off-by: Riku Voipio --- include/exec/user/thunk.h | 4 +++- linux-user/syscall.c | 3 +++ thunk.c | 16 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/include/exec/user/thunk.h b/include/exec/user/thunk.h index 87025c

[Qemu-devel] [PULL 3/6] linux-user: ioctl() command type is int

2015-06-15 Thread riku . voipio
es int in the case of the target command type instead of abi_long (and for consistency, update IOCTLEntry). Signed-off-by: Laurent Vivier Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff

[Qemu-devel] [PULL 0/6] linux-user patches for 2.4 softfreeze

2015-06-15 Thread riku . voipio
From: Riku Voipio The following changes since commit 0a2df857a7038c75379cc575de5d4be4c0ac629e: Merge remote-tracking branch 'remotes/stefanha/tags/net-pull-request' into staging (2015-06-12 15:39:05 +0100) are available in the git repository at: git://git.linaro.org/people/r

[Qemu-devel] [PULL 4/6] linux-user: Fix length handling in host_to_target_cmsg

2015-06-15 Thread riku . voipio
to fix these issues, and add a comment in target_to_host_cmsg to explain why the overflow logging it does is a QEMU bug, not a guest issue. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 69 ++-- 1 file changed,

Re: [Qemu-devel] [PATCH v2] linux-user: ioctl() command type is int

2015-06-15 Thread Riku Voipio
On 16 June 2015 at 01:35, Laurent Vivier wrote: > When executing a 64bit target chroot on 64bit host, > the ioctl() command can mismatch. > > It seems the previous commit doesn't solve the problem in > my case: > > 9c6bf9c7 linux-user: Fix ioctl cmd type mismatch on 64-bit targets > > For

[Qemu-devel] [PULL v2 3/6] linux-user: Fix length handling in host_to_target_cmsg

2015-06-16 Thread riku . voipio
to fix these issues, and add a comment in target_to_host_cmsg to explain why the overflow logging it does is a QEMU bug, not a guest issue. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 69 ++-- 1 file changed,

[Qemu-devel] [PULL v2 2/6] linux-user: Use abi_ulong for TARGET_ELF_PAGESTART

2015-06-16 Thread riku . voipio
-by: Riku Voipio --- linux-user/elfload.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index b71e866..1788368 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -1256,7 +1256,8 @@ struct exec /* Necessary parameters

[Qemu-devel] [PULL v2 0/6] linux-user patches for 2.4 softfreeze

2015-06-16 Thread riku . voipio
From: Riku Voipio The following changes since commit 0a2df857a7038c75379cc575de5d4be4c0ac629e: Merge remote-tracking branch 'remotes/stefanha/tags/net-pull-request' into staging (2015-06-12 15:39:05 +0100) are available in the git repository at: git://git.linaro.org/people/r

[Qemu-devel] [PULL v2 1/6] linux-user: Allocate thunk size dynamically

2015-06-16 Thread riku . voipio
ander Graf Signed-off-by: Riku Voipio --- include/exec/user/thunk.h | 4 +++- linux-user/syscall.c | 3 +++ thunk.c | 16 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/include/exec/user/thunk.h b/include/exec/user/thunk.h index 87025c

[Qemu-devel] [PULL v2 4/6] linux-user: use __get_user and __put_user in cmsg conversions

2015-06-16 Thread riku . voipio
using __put_user() rather than __get_user() for the SCM_CREDENTIALS conversion, which meant it wasn't getting the benefit of the misalignment handling.) Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 20 +++- 1 file changed, 11 insertions(

[Qemu-devel] [PULL v2 5/6] linux-user: fix the breakpoint inheritance in spawned threads

2015-06-16 Thread riku . voipio
From: Thierry Bultel When a thread is spawned, cpu_copy re-initializes the bp & wp lists of current thread, instead of the ones of the new thread. The effect is that breakpoints are no longer hit. Signed-off-by: Thierry Bultel Signed-off-by: Riku Voipio --- linux-user/main.c | 4 ++-- 1

[Qemu-devel] [PULL v2 6/6] linux-user: ioctl() command type is int

2015-06-16 Thread riku . voipio
e case of the target command type instead of abi_long. Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/syscall.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 5cf265c..f62c698 100644 ---

[Qemu-devel] [PULL 00/38] linux-user update

2016-05-24 Thread riku . voipio
From: Riku Voipio The following changes since commit b0f6ef8915247f3230ffd9b71af9c3dadb6082c7: Merge remote-tracking branch 'remotes/amit-virtio-rng/tags/rng-2.7-1' into staging (2016-05-24 11:38:22 +0100) are available in the git repository at: git://git.linaro.org/people/r

[Qemu-devel] [PULL v2 3/8] linux-user: set ppc64/ppc64le default CPU to POWER8

2016-05-24 Thread riku . voipio
. Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813698 Signed-off-by: Laurent Vivier Reviewed-by: Alexander Graf Reviewed-by: Michael Tokarev Signed-off-by: Riku Voipio --- linux-user/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/main.c b/linux

[Qemu-devel] [PULL v2 5/8] linux-user: sync syscall numbers with kernel

2016-05-24 Thread riku . voipio
From: Riku Voipio Sync syscall numbers to match the linux v4.5-rc1 kernel. Reviewed-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/aarch64/syscall_nr.h| 2 +- linux-user/alpha/syscall_nr.h | 6 ++ linux-user/cris/syscall_nr.h | 24

[Qemu-devel] [PULL v2 2/8] build: [linux-user] Rename "syscall.h" to "target_syscall.h" in target directories

2016-05-24 Thread riku . voipio
From: Lluís Vilanova This fixes double-definitions in linux-user builds when using the UST tracing backend (which indirectly includes the system's "syscall.h"). Signed-off-by: Lluís Vilanova Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/aa

<    3   4   5   6   7   8   9   10   11   12   >