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

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

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

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

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

[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

[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

Re: [Qemu-devel] [PATCH] linux-user: remove unnecessary local from __get_user(), __put_user()

2010-11-15 Thread Riku Voipio
is trying to read/write. Looks fine, will push on my next patchset Acked-by: Riku Voipio riku.voi...@iki.fi Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- linux-user/qemu.h |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/linux-user/qemu.h b/linux-user

Re: [Qemu-devel] [PATCH, RFT] Speedup 'tb_find_slow' by using the same heuristic as during memory page lookup

2010-11-23 Thread Riku Voipio
Hi, tested and improves indeed startup speed. On Mon, Nov 22, 2010 at 10:42:10PM +0300, Kirill Batuzov wrote: Move the last found TB to the head of the list so it will be found more quickly next time it will be looked for. Signed-off-by: Kirill Batuzov batuz...@ispras.ru Signed-off-by:

Re: [Qemu-devel] [PATCH 0/2] ARM: fix commandline handling forsemihosted executables

2011-01-07 Thread riku voipio
please consider this for inclusion into 0.14? Thanks, - Wolfgang -Original Message- From: qemu-devel-bounces+wschi=dolby@nongnu.org [mailto:qemu-devel-bounces+wschi=dolby@nongnu.org] On Behalf Of Peter Maydell Sent: Monday, December 06, 2010 4:06 PM To: qemu-devel@nongnu.org Cc: Riku

Re: [Qemu-devel] [PATCH 0/2] ARM: fix commandline handling forsemihosted executables

2011-01-07 Thread riku voipio
On 01/07/2011 05:56 PM, Peter Maydell wrote: Or you can just test by hand: Got it. For anyone wondering into this thread, if you use ubuntu/linaro toolchains to compile the example below, you need a -marm flag for the compiler or you'll get a weird error on swi... Looks good, I'll add

[Qemu-devel] [PATCH 4/7] softfloat: Implement floatx80_is_any_nan() and float128_is_any_nan()

2011-01-07 Thread Riku Voipio
From: Peter Maydell peter.mayd...@linaro.org Implement versions of float*_is_any_nan() for the floatx80 and float128 types. Acked-by: Aurelien Jarno aurel...@aurel32.net Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@iki.fi --- fpu/softfloat.h

[Qemu-devel] [PATCH 2/7] linux-user: Support ioctls whose parameter size is not constant

2011-01-07 Thread Riku Voipio
the conversion itself. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/syscall.c | 18 +++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 1939a5f..970efe3

[Qemu-devel] [PATCH 0/7] linux-user fixes for pull

2011-01-07 Thread Riku Voipio
From: Riku Voipio riku.voi...@nokia.com The following changes since commit 2a704b137f1acfbd972aa6e9f031c5015c7e28cb: cris: Avoid useless tmp in t_gen_cc_jmp() (2011-01-07 12:50:38 +0100) are available in the git repository at: git://gitorious.org/qemu-maemo/qemu.git linux-user-for-upstream

[Qemu-devel] [PATCH 5/7] linux-user: Fix incorrect NaN detection in ARM nwfpe emulation

2011-01-07 Thread Riku Voipio
renaming of the NaN related functions. Acked-by: Aurelien Jarno aurel...@aurel32.net Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@iki.fi --- linux-user/arm/nwfpe/fpa11_cprt.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff

[Qemu-devel] [PATCH 3/7] linux-user: Implement FS_IOC_FIEMAP ioctl

2011-01-07 Thread Riku Voipio
From: Peter Maydell peter.mayd...@linaro.org Implement the FS_IOC_FIEMAP ioctl using the new support for custom handling of ioctls; this is needed because the struct that is passed includes a variable-length array. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio

[Qemu-devel] [PATCH 6/7] Fix commandline handling for ARM semihosted executables

2011-01-07 Thread Riku Voipio
program started. This fixes https://bugs.launchpad.net/qemu/+bug/673613 . Signed-off-by: Wolfgang Schildbach ws...@dolby.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@iki.fi --- arm-semi.c | 79

Re: [Qemu-devel] [PATCH] linux-user: fix for loopmount ioctl

2011-01-10 Thread Riku Voipio
On Mon, Jan 10, 2011 at 05:18:43PM +0100, Martin Mohring wrote: On 01/09/2011 12:25 AM, Martin Mohring wrote: Hi, I had fixed the loopmount ioctl for linux-user, working correctly for arm, mips, ppc32 and sh4. ping Aurelien, Riku, is that patch ok? Its only 2 lines of change to

[Qemu-devel] Re: [PATCH] linux-user/FLAT: allow targets to override FLAT reloc processing

2011-01-26 Thread riku voipio
On 01/24/2011 11:48 AM, Mike Frysinger wrote: This brings flatload.c more in line with the current Linux FLAT loader which allows targets to handle FLAT relocations in their own way. For the common behavior, the new functions get stubbed out. Do you have some instructions howto build flat

[Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)

2011-02-02 Thread Riku Voipio
On Wed, Feb 02, 2011 at 08:28:15PM +0100, Stefan Weil wrote: [PATCH] linux-user: Fix possible realloc memory leak (http://patchwork.ozlabs.org/patch/79217/) Looks ok for me. Riku

Re: [Qemu-devel] [PING 0.14] Missing patches (mostly fixes)

2011-02-05 Thread riku voipio
On 02/04/2011 02:30 PM, Anthony Liguori wrote: This need the following Acks: [PATCH] linux-user: Fix possible realloc memory leak (http://patchwork.ozlabs.org/patch/79217/) Riku I thought I gave an OK for this already. Acked-By: Riku Voipio riku.voi...@iki.fi

Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)

2011-02-05 Thread riku voipio
On 02/03/2011 12:16 PM, Laurent Vivier wrote: On Wed, Feb 02, 2011 at 08:28:15PM +0100, Stefan Weil wrote: [PATCH] linux-user: Fix possible realloc memory leak (http://patchwork.ozlabs.org/patch/79217/) Looks ok for me. And this one ? linux-user: correct core dump format

Re: [Qemu-devel] Re: [PATCH 2/7] Enable I/O thread and VNC threads by default

2011-02-08 Thread Riku Voipio
On Tue, Feb 08, 2011 at 12:05:31PM -0600, Anthony Liguori wrote: Aurelien, Have you actually run QEMU on Windows and tried to use it to do something useful? I'm not Aurelian, but we do use QEMU on win32 as part of Nokia Qt SDK. While it is second class in many ways compared to Linux QEMU

Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)

2011-02-08 Thread Riku Voipio
On Sat, Feb 05, 2011 at 10:49:51PM +0100, Laurent Vivier wrote: On 02/03/2011 12:16 PM, Laurent Vivier wrote: And this one ? linux-user: correct core dump format http://patchwork.ozlabs.org/patch/78464/ Actually that patch is not ok. The issues you fix on m68k appear on arm/eabi after

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

2011-02-09 Thread Riku Voipio
The following changes since commit c0c1dc992584b8ccbae0e8f8b09124b76662633b: cris, microblaze: use cpu_has_work (2011-02-08 20:37:39 +0100) are available in the git repository at: git://gitorious.org/qemu-maemo/qemu.git linux-user-for-upstream Martin Mohring (1): linux-user: fix for

Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)

2011-02-09 Thread Riku Voipio
Actually that patch is not ok. The issues you fix on m68k appear on arm/eabi after applying your patch. bswap part appears ok, but the padding is needed atleast on arm. How do you test this patch ? Do you use native gdb on ARM ? Because, for m68k, cross-compiled gdb does not work (it

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

2011-02-10 Thread Riku Voipio
The following changes since commit 343c1de916b1841cd5fd5f813add9c87590d72e8: x86: Fix MCA broadcast parameters for TCG case (2011-02-08 12:37:30 +0100) are available in the git repository at: git://gitorious.org/qemu-maemo/qemu.git linux-user-for-0.14 Martin Mohring (1): linux-user:

Re: [Qemu-devel] [PATCH 1/2] linux-user: add rmdir() strace

2011-02-16 Thread Riku Voipio
On Tue, Feb 15, 2011 at 09:10:43PM +0100, Laurent Vivier wrote: Signed-off-by: Laurent Vivier laur...@vivier.eu --- linux-user/strace.c| 12 linux-user/strace.list |3 +++ 2 files changed, 15 insertions(+), 0 deletions(-) Applied to que. diff --git

Re: [Qemu-devel] [PATCH 2/2] linux-user: in linux-user/strace.c, tswap() is useless

2011-02-16 Thread Riku Voipio
Hi, On Tue, Feb 15, 2011 at 09:10:44PM +0100, Laurent Vivier wrote: Syscall parameters are already swapped by the caller. This patch removes useless tswap() from strace.c Thanks. Added to next linux-user que. I modified your patch to have casts to the given printf format specifiers, so we

[Qemu-devel] Re: [PATCH 0/2][v4] correct core dump format

2011-02-16 Thread Riku Voipio
On Sun, Feb 13, 2011 at 11:37:33PM +0100, Laurent Vivier wrote: This is the v4 of my patch correcting the core dump format. (3 versions for patch 2, 3 versions for patch 1 starting at version 2 of patch 2...) Thanks, tested to work and added to que. v4 adds some long alignments for 64bit

Re: [Qemu-devel] [PATCH] linux-user: Support the epoll syscalls

2011-02-16 Thread Riku Voipio
On Wed, Feb 16, 2011 at 10:37:51AM +, Peter Maydell wrote: On 15 February 2011 18:35, Peter Maydell peter.mayd...@linaro.org wrote: Support the epoll family of syscalls: epoll_create(), epoll_create1(), epoll_ctl(), epoll_wait() and epoll_pwait(). Note that epoll_create1() and

[Qemu-devel] [PULL] linux-user patches for master

2011-02-17 Thread Riku Voipio
The following changes since commit 79f2b6fcdb7c06cdce6eccc796f5651f3efb843e: Merge remote branch 'kwolf/for-anthony' into staging (2011-02-16 08:47:13 -0600) are available in the git repository at: git://gitorious.org/qemu-maemo/qemu.git linux-user-for-upstream Laurent Vivier (4):

Re: [Qemu-devel] OMAP3/Beagle board status

2010-09-07 Thread Riku Voipio
On Tue, Sep 07, 2010 at 12:17:16PM +0200, Andrea Galeazzi wrote: it seems that also maemo developers give up the beagleboard emulation, so does anybody know anything about the progress status of the emulation of it? Is still anyone working on it or does the community aim to include it in

Re: [Qemu-devel] [PULL] Missing patches in qemu master

2010-09-28 Thread Riku Voipio
time enough to make a comment. Looks good, Acked-by: Riku Voipio riku.voi...@iki.fi I should more available from now again. The following changes since commit c973a36d178510790c148f88104b85016f59235a: fmopl: workaround for -Wempty-body (2010-09-24 04:09:01 +0400) are available

[Qemu-devel] Re: QEMU: current user mode breakage

2010-05-04 Thread Riku Voipio
On Fri, Apr 30, 2010 at 11:43:43AM +0200, Martin Mohring wrote: not sure how to handle the situation. But since the commit of the new memory allocator for QEMU user mode, my test suites show it is broken. The 0 sized write patch still isn't applied upstream. Is that the issue (eg visible by

[Qemu-devel] [PATCH] linux-user: do not warn for missing pselect6

2010-05-08 Thread Riku Voipio
Libc will fallback gracefully if pselect6 is not available. Thus put pselect6 to nowarn until the atomicity issues of the original pselect6 patch are dealt with. Signed-off-by: Riku Voipio riku.voi...@nokia.com Cc: Michael Casadevall mcasadev...@ubuntu.com --- linux-user/syscall.c |4 1

Re: [Qemu-devel] [PATCH] linux-user: adapt uname machine to emulated CPU

2010-01-04 Thread Riku Voipio
Hi, Works great, thanks. Acked-By: Riku Voipio riku.voi...@iki.fi On Tue, Dec 29, 2009 at 10:39:21PM +0100, Loïc Minier wrote: Hey there This patch for linux-user adapts the output of the emulated uname() syscall to match the configured CPU. Tested with x86, x86-64 and arm

Re: [Qemu-devel] [PATCH] linux-user: Align mmap memory to the target page size.

2010-01-25 Thread Riku Voipio
On Fri, Jan 15, 2010 at 07:43:48AM -0800, Richard Henderson wrote: This patch uses a more complex search algorithm that takes the result of the previous allocation into account. We normally search upward, but notice 2 consecutive results and start searching downward instead. I've failed to

[Qemu-devel] [PATCH 4/5] linux-user: Add access to TLS registers

2010-01-26 Thread Riku Voipio
From: Riku Voipio riku.voi...@nokia.com If you compile applications with gcc -mtp=cp15, __thread access's will generate an abort. Implement accessing allowed cp15.c13 registers on ARMv6K+ in linux-user. Signed-off-by: Riku Voipio riku.voi...@nokia.com --- target-arm/helper.c | 27

[Qemu-devel] [PATCH 0/5] linux-user for-usptream patches

2010-01-26 Thread Riku Voipio
From: Riku Voipio riku.voi...@nokia.com Some fixes to avoid hanging, make arm uname match selected cpu, and fixes to cp15.c13 registers for linux-user tls register access. Loïc Minier (1): linux-user: adapt uname machine to emulated CPU Riku Voipio (4): fix locking error with current_tb

[Qemu-devel] [PATCH 2/5] fix locking error with current_tb

2010-01-26 Thread Riku Voipio
From: Riku Voipio riku.voi...@nokia.com Signed-off-by: Riku Voipio riku.voi...@nokia.com --- exec.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exec.c b/exec.c index 1190591..71f655f 100644 --- a/exec.c +++ b/exec.c @@ -1537,15 +1537,15 @@ static void

[Qemu-devel] [PATCH 1/5] linux-user: adapt uname machine to emulated CPU

2010-01-26 Thread Riku Voipio
From: Loïc Minier l...@dooz.org This patch for linux-user adapts the output of the emulated uname() syscall to match the configured CPU. Tested with x86, x86-64 and arm emulation. Signed-off-by: Loïc Minier l...@dooz.org Signed-off-by: Riku Voipio riku.voi...@nokia.com --- Makefile.target

Re: [Qemu-devel] [PATCH 4/5] linux-user: Add access to TLS registers

2010-01-26 Thread Riku Voipio
On Tue, Jan 26, 2010 at 05:27:27PM +0100, Laurent Desnogues wrote: On Tue, Jan 26, 2010 at 5:00 PM, Riku Voipio riku.voi...@iki.fi wrote: From: Riku Voipio riku.voi...@nokia.com If you compile applications with gcc -mtp=cp15, __thread access's will generate an abort. Implement accessing

[Qemu-devel] [PATCH 4/4] target-arm: refactor cp15.c13 register access

2010-01-27 Thread Riku Voipio
From: Riku Voipio riku.voi...@nokia.com Access the cp15.c13 TLS registers directly with TCG ops instead of with a slow helper. If the the cp15 read/write was not TLS register access, fall back to the cp15 helper. This makes accessing __thread variables in linux-user when apps are compiled

[Qemu-devel] [PATCH 0/4] linux-user-for-upstream patches

2010-01-27 Thread Riku Voipio
From: Riku Voipio riku.voi...@nokia.com Some fixes to avoid hanging, make arm uname match selected cpu, and fix cp15.c13 register for linux-user tls register access. Loïc Minier (1): linux-user: adapt uname machine to emulated CPU Riku Voipio (3): fix locking error with current_tb linux

[Qemu-devel] [PATCH 1/4] linux-user: adapt uname machine to emulated CPU

2010-01-27 Thread Riku Voipio
From: Loïc Minier l...@dooz.org This patch for linux-user adapts the output of the emulated uname() syscall to match the configured CPU. Tested with x86, x86-64 and arm emulation. Signed-off-by: Riku Voipio riku.voi...@iki.fi Signed-off-by: Loïc Minier l...@dooz.org --- Makefile.target

[Qemu-devel] [PATCH 3/4] linux-user: remove signal handler before calling abort()

2010-01-27 Thread Riku Voipio
From: Riku Voipio riku.voi...@nokia.com Qemu may hang in host_signal_handler after qemu has done a seppuku with cpu_abort(). But at this stage we are not really interested in target process coredump anymore, so unregister host_signal_handler to die grafefully. Signed-off-by: Riku Voipio riku.voi

[Qemu-devel] [PATCH 2/4] fix locking error with current_tb

2010-01-27 Thread Riku Voipio
From: Riku Voipio riku.voi...@nokia.com Signed-off-by: Riku Voipio riku.voi...@nokia.com --- exec.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exec.c b/exec.c index 76831a1..431e104 100644 --- a/exec.c +++ b/exec.c @@ -1537,15 +1537,15 @@ static void

[Qemu-devel] [PULL] linux-user-for upstream

2010-02-05 Thread Riku Voipio
in the git repository at: http://git.gitorious.org/qemu-maemo/qemu-maemo.git linux-user-for-upstream Loïc Minier (1): linux-user: adapt uname machine to emulated CPU Riku Voipio (3): fix locking error with current_tb linux-user: remove signal handler before calling abort

  1   2   3   4   5   6   7   8   9   10   >