Re: [Qemu-devel] [PATCH v2] linux-user: Support the accept4 socketcall

2014-01-08 Thread Riku Voipio
Hi, On Mon, Jan 06, 2014 at 05:15:50PM +0100, André Hentschel wrote: From: André Hentschel n...@dawncrow.de Cc: Riku Voipio riku.voi...@iki.fi Signed-off-by: André Hentschel n...@dawncrow.de --- See https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux

[Qemu-devel] [PATCH 2/5] linux-user: Implement handling of 5 POSIX timer syscalls.

2013-11-29 Thread riku . voipio
From: Erik de Castro Lopo er...@mega-nerd.com Implement timer_create, timer_settime, timer_gettime, timer_getoverrun and timer_delete. Signed-off-by: Erik de Castro Lopo er...@mega-nerd.com Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 176

[Qemu-devel] [PATCH 1/5] linux-user: Add target struct defs needed for POSIX timer syscalls.

2013-11-29 Thread riku . voipio
From: Erik de Castro Lopo er...@mega-nerd.com Signed-off-by: Erik de Castro Lopo er...@mega-nerd.com Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall_defs.h | 25 + 1 file changed, 25 insertions(+) diff --git a/linux-user/syscall_defs.h b/linux

[Qemu-devel] [PATCH 4/5] linux-user: create target_structs header to place ipc_perm and shmid_ds

2013-11-29 Thread riku . voipio
...@imgtec.com Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/aarch64/target_structs.h| 58 ++ linux-user/alpha/target_structs.h | 48 + linux-user/arm/target_structs.h| 52 +++ linux-user/cris

[Qemu-devel] [PULL 0/5] linux-user patches

2013-11-29 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org The following changes since commit 7dc65c02fe3fb8f3146ce0b9ff5fec5945329f0e: Open 2.0 development tree (2013-11-27 14:02:45 -0800) are available in the git repository at: git://git.linaro.org/people/rikuvoipio/qemu.git linux-user-for-upstream

[Qemu-devel] [PATCH 3/5] flatload: fix non-GOT relocations

2013-11-29 Thread riku . voipio
From: Corey J. Boyle co...@kansanian.com Use target address rather than host address when performing non-GOT relocations Signed-off-by: Corey J. Boyle co...@kansanian.com Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/flatload.c | 2 +- 1 file changed, 1 insertion(+), 1

[Qemu-devel] [PATCH 5/5] linux-user: pass correct parameter to do_shmctl()

2013-11-29 Thread riku . voipio
From: Petar Jovanovic petar.jovano...@imgtec.com Fix shmctl issue by passing correct parameter buf to do_shmctl(). Signed-off-by: Petar Jovanovic petar.jovano...@imgtec.com Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1

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

2013-09-27 Thread riku . voipio
From: Laurent Vivier laur...@vivier.eu Signed-off-by: Laurent Vivier laur...@vivier.eu Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/ioctls.h | 1 + 1 file changed, 1 insertion(+) diff --git 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
we need in 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 r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/alpha/syscall_nr.h | 4

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

2013-09-27 Thread riku . voipio
From: Laurent Vivier laur...@vivier.eu This is needed to be able to run dhclient. Signed-off-by: Laurent Vivier laur...@vivier.eu Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 44

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

2013-09-27 Thread riku . voipio
From: Richard Henderson r...@twiddle.net 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 r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user

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

2013-09-27 Thread riku . voipio
laur...@vivier.eu Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 58 +++- 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/linux-user/syscall.c b/linux-user

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

2013-09-27 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org 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-devel] [PATCH 08/11] linux-user: correct how SOL_SOCKET is converted from target to host and back

2013-09-27 Thread riku . voipio
...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 7a093ba..aebe36d 100644 --- a/linux-user/syscall.c +++ b/linux-user

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

2013-09-27 Thread riku . voipio
-by: Riku Voipio riku.voi...@linaro.org --- linux-user/linuxload.c | 8 ++-- linux-user/main.c | 32 +++- linux-user/qemu.h | 2 +- 3 files changed, 34 insertions(+), 8 deletions(-) diff --git a/linux-user/linuxload.c b/linux-user/linuxload.c index 5cd6d91

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

2013-09-27 Thread riku . voipio
been restructured for better clarity. Signed-off-by: Kwok Cheung Yeung k...@codesourcery.com Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/main.c | 56 ++- 1 file changed, 35 insertions(+), 21 deletions(-) diff --git a/linux

[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 edgar.igles...@gmail.com 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 edgar.igles...@gmail.com Signed-off-by: Riku Voipio riku.voi...@linaro.org

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

2013-09-27 Thread riku . voipio
From: Laurent Vivier laur...@vivier.eu Signed-off-by: Laurent Vivier laur...@vivier.eu Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 20 1 file changed, 20 insertions(+) diff --git a/linux

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

2013-09-27 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org 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

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 riku.voi...@iki.fi 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 choose Peter's approach

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 edgar.igles...@gmail.com 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

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 smoketest

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 pointed out on

Re: [Qemu-devel] [PATCH qom-cpu for-1.6] linux-user: Avoid redundant ENV_GET_CPU()

2013-07-26 Thread Riku Voipio
On Fri, Jul 26, 2013 at 05:44:14PM +0200, Andreas Färber wrote: This fixes a mismerge in 874ec3c5b3821bb964f9f37b2f930f2a9ce51652. Signed-off-by: Andreas Färber afaer...@suse.de Acked-by: Riku Voipio riku.voi...@iki.fi --- linux-user/main.c | 2 +- 1 file changed, 1 insertion(+), 1

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

2013-07-24 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org 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

Re: [Qemu-devel] [PATCH 4/9] linux-user: Clean up sendrecvmsg message parsing

2013-07-23 Thread Riku Voipio
On 6 July 2013 15:17, Alexander Graf ag...@suse.de wrote: The cmsg handling in the linux-user code is very hard to read as it tries to follow glibc's unreadable code closely. Let's clean it up, converting all helpers into static inline functions, so that QEMU developers have a chance to

[Qemu-devel] [PULL 02/21] configure: Don't say target_nptl=no if there is no linux-user target

2013-07-23 Thread riku . voipio
be a compile failure rather than a silent lack of support). Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- configure | 3 --- 1 file changed, 3 deletions(-) diff --git a/configure b/configure

[Qemu-devel] [PULL 05/21] linux-user: Move includes of target-specific headers to end of qemu.h

2013-07-23 Thread riku . voipio
...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/qemu.h | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 6569608..8c420da 100644 --- a/linux-user

[Qemu-devel] [PULL 04/21] configure: Enable threading for unicore32-linux-user

2013-07-23 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org unicore32-linux-user provides cpu_set_tls(), so the failure to enable target_nptl was presumably an oversight. Enable it. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio

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

2013-07-23 Thread riku . voipio
with NPTL. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Laurent Vivier laur...@vivier.eu Signed-off-by: Riku Voipio riku.voi...@linaro.org --- configure| 1 - linux-user/m68k/target_cpu.h | 6 +- linux-user/qemu.h| 1 + linux-user/syscall.c

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

2013-07-23 Thread riku . voipio
running in arm-linux-user for me. Signed-off-by: Alexander Graf ag...@suse.de Signed-off-by: Riku Voipio riku.voi...@linaro.org --- 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

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

2013-07-23 Thread riku . voipio
fixed, we can compile with NPTL enabled. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Jia Liu pro...@gmail.com Signed-off-by: Riku Voipio riku.voi...@linaro.org --- configure| 1 - linux-user/openrisc/target_cpu.h | 9 +++-- 2 files changed, 7

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

2013-07-23 Thread riku . voipio
. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- configure | 4 1 file changed, 4 deletions(-) diff --git a/configure b/configure index

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

2013-07-23 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org 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

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

2013-07-23 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org 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 peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org

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

2013-07-23 Thread riku . voipio
Signed-off-by: Riku Voipio riku.voi...@linaro.org --- configure| 1 - linux-user/i386/target_cpu.h | 12 ++-- linux-user/syscall.c | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/configure b/configure index f065edc..547297b 100755

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

2013-07-23 Thread riku . voipio
-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall_defs.h | 49 +++ 1 file changed, 37 insertions(+), 12 deletions(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 92c01a9..cb6341f 100644 --- a/linux-user

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

2013-07-23 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org 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 peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user

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

2013-07-23 Thread riku . voipio
linux/futex.h which means bsd-user would never have been compiled with CONFIG_USE_NPTL defined, and it still is not. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- configure

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

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

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

2013-07-23 Thread riku . voipio
Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- configure | 3 --- linux-user/sparc/target_cpu.h | 16 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/configure b/configure index bfad34e..ab3dc3c 100755

[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 k...@codesourcery.com 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 k...@codesourcery.com Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/main.c | 46

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

2013-07-23 Thread riku . voipio
of CONFIG_CLONE_BACKWARDS. (unicore32 appears 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 peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user

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

2013-07-23 Thread riku . voipio
the #ifdef. Suggested-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Andreas Färber afaer...@suse.de Cc: Eduardo Habkost ehabk...@redhat.com Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/linux-user/main.c b

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

2013-07-23 Thread riku . voipio
created thread. Signed-off-by: Alexander Graf ag...@suse.de Signed-off-by: Riku Voipio riku.voi...@linaro.org --- 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

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

2013-07-23 Thread riku . voipio
of the no entries it adds will be taken out in later patches. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- configure | 26 -- 1 file changed, 16 insertions(+), 10

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

2013-07-23 Thread riku . voipio
...@suse.de Signed-off-by: Riku Voipio riku.voi...@linaro.org --- 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

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

2013-07-23 Thread riku . voipio
r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 9619656..642d0a3 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8572,6 +8572,7

Re: [Qemu-devel] [PATCH 8/9] linux-user: Default to 64k guest base

2013-07-22 Thread Riku Voipio
On 6 July 2013 15:17, Alexander Graf ag...@suse.de wrote: Most kernels these days have protection code in place to forbid user space to access low memory. The barrier varies between architectures though. For this purpose we have the guest base option that allows us to offset guest visible

[Qemu-devel] [PATCH 5/7] user-exec.c: Set is_write correctly in the ARM cpu_signal_handler()

2013-07-10 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org In the ARM implementation of cpu_signal_handler(), set is_write correctly using the FSR value which the kernel passes us in the error_code field of uc_mcontext. Since the WnR bit of the FSR was only introduced in ARMv6, this means that v5 cores will

[Qemu-devel] [PATCH 2/7] linux-user: add SIOCADDRT/SIOCDELRT support

2013-07-10 Thread riku . voipio
From: Laurent Vivier laur...@vivier.eu This allows to pass the device name. You can test this with the route command. WITHOUT this patch: $ sudo route add -net default gw 10.0.3.1 eth0 SIOCADDRT: Bad address $ netstat -nr Kernel IP routing table Destination Gateway Genmask

[Qemu-devel] [PULL] linux-user fixes

2013-07-10 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org The following patchset has been gathered by Peter Maydell, Thanks! The following changes since commit ab8bf29078e0ab8347e2ff8b4e5542f7a0c751cf: Merge remote-tracking branch 'qemu-kvm/uq/master' into staging (2013-07-03 08:37:00 -0500) are available

[Qemu-devel] [PATCH 4/7] linux-user: Fix sys_utimensat (would not compile on old glibc)

2013-07-10 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org Commit c0d472b12e accidentally dropped the definition of __NR_SYS_utimensat even though its use is guarded by CONFIG_UTIMENSAT, not CONFIG_ATFILE. Some older glibc don't have utimensat() (even if they have the other *at() functions). Fix this by

[Qemu-devel] [PATCH 1/7] linux-user: handle /proc/$$ like /proc/self

2013-07-10 Thread riku . voipio
From: Andreas Schwab sch...@suse.de Some applications use /proc/$$/... (where $$ is the own pid) instead of /proc/self/... to refer to their own proc files. Extend the interception for open and readlink to handle this case. Also, do the same interception in readlinkat. Signed-off-by: Andreas

[Qemu-devel] [PATCH 3/7] linux-user: fix signal number range check

2013-07-10 Thread riku . voipio
From: Andreas Schwab sch...@linux-m68k.org When translating between host and target signal numbers keep negative numbers unchanged, avoiding access beyond array bounds. Signed-off-by: Andreas Schwab sch...@linux-m68k.org Reviewed-by: Peter Maydell peter.mayd...@linaro.org Message-id:

[Qemu-devel] [PATCH 7/7] linux-user: Do not ignore mmap failure from host

2013-07-10 Thread riku . voipio
From: Jürg Billeter j...@bitron.ch File mapping may fail with EACCES. Signed-off-by: Jürg Billeter j...@bitron.ch Message-id: 1372498892-23676-1-git-send-emai...@bitron.ch Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- linux-user/mmap.c | 4 1 file changed, 4 insertions(+) diff

[Qemu-devel] [PATCH 6/7] linux-user: improve target_to_host_sock_type conversion

2013-07-10 Thread riku . voipio
From: Petar Jovanovic petar.jovano...@imgtec.com Previous implementation has failed to take into account different value of SOCK_NONBLOCK on target and host, and existence of SOCK_CLOEXEC. The same conversion has to be applied both for do_socket and do_socketpair, so the code has been isolated in

Re: [Qemu-devel] [PATCH] exec.c: Pass correct pointer type to qemu_ram_ptr_length

2013-07-09 Thread Riku Voipio
into this warning when compiling QEMU on ARM host as well, this pax fixes it. Tested-by: Riku Voipio riku.voi...@linaro.org CCarm-softmmu/exec.o exec.c:2164:46: warning: incompatible pointer types passing 'hwaddr *' (aka 'unsigned long long *') to parameter of type 'ram_addr_t *' (aka 'unsigned

Re: [Qemu-devel] [PATCH v2] linux-user: improve target_to_host_sock_type conversion

2013-05-30 Thread Riku Voipio
Hi, On 27 May 2013 13:49, Petar Jovanovic petar.jovano...@imgtec.com wrote: Can anyone take a look at this and commit it if there are no other change requests? I thought Aurelian had an issue with this patch, but it seems you explained your position well. I'll get this included in my next

Re: [Qemu-devel] [PATCH] PPC: Fix dcbz for linux-user on 970

2013-04-26 Thread Riku Voipio
byte clears again. This fixes ppc64-linux-user for my smoke tests, thanks. Tested-By: riku.voi...@iki.fi Reported-by: Riku Voipio riku.voi...@iki.fi Signed-off-by: Alexander Graf ag...@suse.de --- target-ppc/mem_helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

Re: [Qemu-devel] Environment variables for user-mode QEMU

2013-04-25 Thread Riku Voipio
Bcc: Subject: Re: [Qemu-devel] Environment variables for user-mode QEMU Reply-To: In-Reply-To: 87txmwoyqc@schwinge.name X-message-flag: Warning: message not sent with a DRM-Certified client On Wed, Apr 24, 2013 at 03:16:27PM +0200, Thomas Schwinge wrote: We have a need to pass environment

[Qemu-devel] ppc64-linux-user broken since PPC: Unify dcbzl code path ?

2013-04-22 Thread Riku Voipio
Hi, While testing my linux-user smoke-testing setup, I noticed that with current qemu head: ./ppc64-linux-user/qemu-ppc64 ../../qemu-smoke/ppc64/busybox ls busybox: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) ((av)-bins[((1) - 1) * 2])) - __builtin_offsetof (struct

Re: [Qemu-devel] [PATCH] linux-user: fix compile error due to stray colon at end of #ifdef line

2013-04-22 Thread Riku Voipio
] Signed-off-by: Peter Maydell peter.mayd...@linaro.org Acked-By: Riku Voipio riku.voi...@linaro.org --- Obviously this is 1.5 material; don't care whether it goes through linux-user or qemu-trivial or direct commit. linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [Qemu-devel] [PATCH] linux-user: change do_semop to return target errno when unsuccessful

2013-04-19 Thread Riku Voipio
On 19 April 2013 12:42, Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, Mar 21, 2013 at 06:57:36PM +0100, Petar Jovanovic wrote: From: Petar Jovanovic petar.jovano...@imgtec.com do_semop() is called from two places, and one of these fails to convert return error to target errno when

[Qemu-devel] [PATCH 1/3] linux-user: change do_semop to return target errno when unsuccessful

2013-04-19 Thread riku . voipio
petar.jovano...@imgtec.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 1f07621..d6d2050

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

2013-04-19 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org The following changes since commit 09dada400328d75daf79e3eca1e48e024fec148d: configure: remove duplicate test (2013-04-18 14:12:31 +0200) are available in the git repository at: git://git.linaro.org/people/rikuvoipio/qemu.git linux-user-for-upstream

[Qemu-devel] [PATCH 2/3] linux-user: fix undefined shift in copy_to_user_fdset

2013-04-19 Thread riku . voipio
From: Andreas Schwab sch...@suse.de If TARGET_ABI_BITS is bigger than 32 we shift by more than the size of int. Signed-off-by: Andreas Schwab sch...@suse.de Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c |2

[Qemu-devel] [PATCH 3/3] linux-user: fix setgroups/getgroups for non-UID16 archs

2013-04-19 Thread riku . voipio
From: Andreas Schwab sch...@suse.de Don't assume target_id is a short. Signed-off-by: Andreas Schwab sch...@suse.de Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux-user/syscall.c b

Re: [Qemu-devel] [PATCH v3 00/13] TARGET_*_ALIGNMENT cleanup, and config-target.mak trimming

2013-04-18 Thread Riku Voipio
On Wed, Apr 17, 2013 at 04:26:34PM +0200, Paolo Bonzini wrote: This series expands on the one I sent yesterday, but also fixes some confusion between target (CPU) and ABI types in linux-user/elfload.c. I'm ok with the linux-user/ parts, you can send this set directly. target_short/int/llong

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

2013-03-11 Thread Riku Voipio
#if defined(TARGET_ARM) || defined(TARGET_M68K) || defined(TARGET_UNICORE32) /* Extra fields for semihosted binaries. */ -uint32_t stack_base; uint32_t heap_base; uint32_t heap_limit; #endif +uint32_t stack_base; Shouldn't this be abi_ulong instead of uint32_t?

Re: [Qemu-devel] [PATCH 0/7] linux-user updates

2013-03-11 Thread Riku Voipio
Hi Peter, On 9 March 2013 13:14, Peter Maydell peter.mayd...@linaro.org wrote: linux-user: Fix layout of usage table to account for option text http://patchwork.ozlabs.org/patch/220481/ linux-user: make bogus negative iovec lengths fail EINVAL http://patchwork.ozlabs.org/patch/219240/

[Qemu-devel] [PATCH 02/11] linux-user: improve print_fcntl()

2013-03-11 Thread riku . voipio
From: Laurent Vivier laur...@vivier.eu Signed-off-by: Laurent Vivier laur...@vivier.eu Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/strace.c | 97 +-- 1 file changed, 79 insertions(+), 18 deletions(-) diff --git a/linux-user

[Qemu-devel] [PATCH 04/11] linux-user: fix futex strace of FUTEX_CLOCK_REALTIME

2013-03-11 Thread riku . voipio
From: John Rigby john.ri...@linaro.org Handle same as existing FUTEX_PRIVATE_FLAG. Signed-off-by: John Rigby john.ri...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/strace.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/linux-user/strace.c b/linux

[Qemu-devel] [PATCH 10/11] linux-user: Implement accept4

2013-03-11 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org Implement the accept4 syscall (which is identical to accept but has an additional flags argument). Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org

[Qemu-devel] [PATCH 05/11] linux-user: Support setgroups syscall with no groups

2013-03-11 Thread riku . voipio
From: Dillon Amburgey dill...@dillona.com Signed-off-by: Dillon Amburgey dill...@dillona.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 22 -- 1 file changed, 12 insertions(+), 10

[Qemu-devel] [PULL] linux-user updates

2013-03-11 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Hi, This is my patch queue for linux-user. Please pull. The following changes since commit fa3889162ff724d09eb6b6bd06ba54769100a77f: Merge remote-tracking branch 'origin/master' into staging (2013-03-10 20:39:17 -0500) are available in the git

[Qemu-devel] [PATCH 03/11] linux-user/syscall.c: handle FUTEX_WAIT_BITSET in do_futex

2013-03-11 Thread riku . voipio
Rigby john.ri...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 19630ea..c7fcfc0 100644 --- a/linux-user/syscall.c +++ b/linux-user

[Qemu-devel] [PATCH 01/11] linux-user: Add Alpha socket constants

2013-03-11 Thread riku . voipio
From: Dillon Amburgey dill...@dillona.com Without these, some networking programs will not work Signed-off-by: Dillon Amburgey dill...@dillona.com Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/socket.h | 69

[Qemu-devel] [PATCH 07/11] linux-user: Fix layout of usage table to account for option text

2013-03-11 Thread riku . voipio
column text including a possible option argument, and adjusting its uses to match. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/main.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff

[Qemu-devel] [PATCH 09/11] linux-user: Implement sendfile and sendfile64

2013-03-11 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org Implement the sendfile and sendfile64 syscalls. This implementation passes all the LTP test cases for these syscalls. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio

[Qemu-devel] [PATCH 11/11] linux-user/syscall.c: Don't warn about unimplemented get_robust_list

2013-03-11 Thread riku . voipio
...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 6182a27..ee82a2d 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c

[Qemu-devel] [PATCH 06/11] linux-user: Add more sparc syscall numbers

2013-03-11 Thread riku . voipio
From: Dillon Amburgey dill...@dillona.com Signed-off-by: Dillon Amburgey dill...@dillona.com Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/sparc/syscall_nr.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-user/sparc/syscall_nr.h b/linux-user/sparc/syscall_nr.h

[Qemu-devel] [PATCH 08/11] linux-user: make bogus negative iovec lengths fail EINVAL

2013-03-11 Thread riku . voipio
-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 1729446..bab9ab5 100644 --- a/linux-user/syscall.c +++ b/linux

[Qemu-devel] [PATCH 0/7] linux-user updates

2013-03-07 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Hi, I did a dig through the archive for linux-user patches that have slipped through during my inactivity. The ones in this patchset appear good and pass smoketest. I will send these as pull request once I'm back from travel and can update my git

[Qemu-devel] [PATCH 1/7] linux-user: Add Alpha socket constants

2013-03-07 Thread riku . voipio
From: Dillon Amburgey dill...@dillona.com Without these, some networking programs will not work Signed-off-by: Dillon Amburgey dill...@dillona.com Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/socket.h | 69

[Qemu-devel] [PATCH 4/7] linux-user: fix futex strace of FUTEX_CLOCK_REALTIME

2013-03-07 Thread riku . voipio
From: John Rigby john.ri...@linaro.org Handle same as existing FUTEX_PRIVATE_FLAG. Signed-off-by: John Rigby john.ri...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/strace.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/linux-user/strace.c b/linux-user

[Qemu-devel] [PATCH 2/7] linux-user: improve print_fcntl()

2013-03-07 Thread riku . voipio
From: Laurent Vivier laur...@vivier.eu Signed-off-by: Laurent Vivier laur...@vivier.eu Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/strace.c | 97 +++-- 1 file changed, 79 insertions(+), 18 deletions(-) diff --git a/linux-user

[Qemu-devel] [PATCH 5/7] linux-user: correct semctl() and shmctl()

2013-03-07 Thread riku . voipio
-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 56 1 file changed, 35 insertions(+), 21 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index c7fcfc0..7f12563 100644 --- a/linux-user/syscall.c +++ b

[Qemu-devel] [PATCH 6/7] linux-user: Support setgroups syscall with no groups

2013-03-07 Thread riku . voipio
From: Dillon Amburgey dill...@dillona.com Signed-off-by: Dillon Amburgey dill...@dillona.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions

[Qemu-devel] [PATCH 3/7] linux-user/syscall.c: handle FUTEX_WAIT_BITSET in do_futex

2013-03-07 Thread riku . voipio
Rigby john.ri...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 19630ea..c7fcfc0 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c

[Qemu-devel] [PATCH 7/7] linux-user: Add more sparc syscall numbers

2013-03-07 Thread riku . voipio
From: Dillon Amburgey dill...@dillona.com Signed-off-by: Dillon Amburgey dill...@dillona.com Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/sparc/syscall_nr.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-user/sparc/syscall_nr.h b/linux-user/sparc/syscall_nr.h

Re: [Qemu-devel] [PATCH 07/12] linux-user: AArch64 requires at least 3.8.0

2013-03-05 Thread Riku Voipio
Hi, Cool work and thanks for early sharing. On Wed, Mar 06, 2013 at 03:01:15AM +0100, Alexander Graf wrote: Glibc 1.17 checks for the host kernel version on startup. Unfortunately, it also checks whether the host kernel version is recent enough for the target to run at all. Since AArch64

Re: [Qemu-devel] [PATCH][v2] linux-user: correct setsockopt()

2013-01-30 Thread Riku Voipio
Hi, On Sat, Jan 26, 2013 at 12:24:56PM +0100, Laurent Vivier wrote: Le dimanche 20 janvier 2013 à 00:32 +0100, Laurent Vivier a écrit : ping ? ping I'm really not managing to find time for qemu linux-user maintainance at the moment. I suggest you send the patches directly as pull request.

[Qemu-devel] [PATCH 04/11] linux-user: Implement gethostname

2012-10-18 Thread riku . voipio
From: Richard Henderson r...@twiddle.net Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 13 + 1 file changed, 13 insertions(+) diff --git a/linux

[Qemu-devel] [PATCH 01/11] linux-user: fix statfs

2012-10-18 Thread riku . voipio
confused about the return value of pathconf(/, _PC_REC_XFER_ALIGN) otherwise, as it some times gave old pointers as return value. Signed-off-by: Alexander Graf ag...@suse.de Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c |4 1 file changed, 4 insertions

[Qemu-devel] [PATCH 08/11] configure: Remove unnecessary host_guest_base code

2012-10-18 Thread riku . voipio
Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- configure | 31 ++- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/configure b/configure index c4a7837..a6bdf9a 100755 --- a/configure +++ b/configure

[Qemu-devel] [PATCH 11/11] linux-user: register align p{read, write}64

2012-10-18 Thread riku . voipio
...@ac.upc.edu Signed-off-by: Alexander Graf ag...@suse.de Tested-by: Alex Barcelo abarc...@ac.upc.edu Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c |8 1 file changed, 8 insertions(+) diff --git a/linux-user

[Qemu-devel] [PATCH 10/11] linux-user: ppc: mark as long long aligned

2012-10-18 Thread riku . voipio
that it is SysV ABI that requires long long aligned parameters - Riku Signed-off-by: Alexander Graf ag...@suse.de Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c

[Qemu-devel] [PATCH 03/11] linux-user: Perform more checks on iovec lists

2012-10-18 Thread riku . voipio
From: Richard Henderson r...@twiddle.net Validate count between 0 and IOV_MAX. Limit total length of operation in the same way the kernel does. Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 162

[Qemu-devel] [PATCH 06/11] linux-user: Fix siginfo handling

2012-10-18 Thread riku . voipio
From: Richard Henderson r...@twiddle.net Compare signal numbers in the proper domain. Convert all of the fields for SIGIO and SIGCHLD. Signed-off-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/qemu.h|3 +++ linux-user/signal.c

<    5   6   7   8   9   10   11   12   13   14   >