[Qemu-devel] [PULL 10/16] linux-user: Forget about synchronous signal once it is delivered

2016-07-19 Thread riku . voipio
gnal struct when handling a synchronous signal. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/signal.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index 9d98045..9a4d894 100644 --- a/linux-user/sig

[Qemu-devel] [PULL 00/16] linux-user before 2.7 hardfreeze

2016-07-19 Thread riku . voipio
From: Riku Voipio he following changes since commit ad31cd4c6945d7e0f0546d92d29dcd12325b4e4a: Merge remote-tracking branch 'remotes/jnsnow/tags/ide-pull-request' into staging (2016-07-19 11:47:07 +0100) are available in the git repository at: git://git.linaro.org/people/r

[Qemu-devel] [PULL 03/16] linux-user: add fd_trans helper in do_recvfrom()

2016-07-19 Thread riku . voipio
From: Laurent Vivier Fix passwd using netlink audit. Signed-off-by: Laurent Vivier 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 index 491ab55..f9ce9d8 100644 --- a/linux-user/syscall.c

[Qemu-devel] [PULL 01/16] linux-user: fd_trans_*_data() returns the length

2016-07-19 Thread riku . voipio
From: Laurent Vivier fd_trans_target_to_host_data() and fd_trans_host_to_target_data() must return the length of processed data. Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/syscall.c | 36 1 file changed, 32 insertions(+), 4

Re: [Qemu-devel] [PATCH] linux-user: Handle short lengths in host_to_target_sockaddr()

2016-07-07 Thread Riku Voipio
On Thu, Jul 07, 2016 at 03:44:43PM +0100, Peter Maydell wrote: > If userspace specifies a short buffer for a target sockaddr, > the kernel will only copy in as much as it has space for > (or none at all if the length is zero) -- see the kernel > move_addr_to_user() function. Mimic this in QEMU's >

Re: [Qemu-devel] [PATCH] linux-user: fix signal() syscall on x86_64

2016-07-07 Thread Riku Voipio
On Sat, Jul 02, 2016 at 09:12:09PM +0100, Peter Maydell wrote: > On 2 July 2016 at 17:41, Laurent Vivier wrote: > > Sadly, this can't work: > > > > sparc/sparc64/cris use sys_select for NR_select AND NR_newselect. > > > Not sure all is correct, but it's what I've found: > > > > | __NR

Re: [Qemu-devel] [PATCH 1/3] linux-user: fd_trans_*_data() returns the length

2016-06-30 Thread Riku Voipio
Hi, I've merged the netlink patches the que[1]. I'm waiting to see if we'll get some fixup patches to the fairly substantial changes linux-user has seen in this cycle. Riku [1] https://git.linaro.org/people/riku.voipio/qemu.git/shortlog/refs/heads/linux-user-for-upstream On Tue, Jun 28, 2016 a

[Qemu-devel] [PULL v2 23/24] linux-user: Provide safe_syscall for s390x

2016-06-28 Thread riku . voipio
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/host/s390x/hostdep.h | 23 linux-user/host/s390x/safe-syscall.inc.S | 90 2 files changed, 113 insertions(+) create mode 100644 linux-user

[Qemu-devel] [PULL v2 16/24] linux-user: add missing return in netlink switch statement

2016-06-28 Thread riku . voipio
From: Laurent Vivier Reported-by: Peter Maydell Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell --- linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index b8a0738..33409c0 100644 --- a

[Qemu-devel] [PULL v2 18/24] linux-user: don't swap NLMSG_DATA() fields

2016-06-28 Thread riku . voipio
From: Laurent Vivier If the structure pointed by NLMSG_DATA() is bigger than the size of NLMSG_DATA(), don't swap its fields to avoid memory corruption. Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell --- linux-user/syscall.c

[Qemu-devel] [PULL v2 19/24] linux-user: fix x86_64 safe_syscall

2016-06-28 Thread riku . voipio
From: Richard Henderson Do what the comment says, test for signal_pending non-zero, rather than the current code which tests for bit 0 non-zero. Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell --- linux-user/host/x86_64/safe-syscall.inc.S | 6 +++--- 1

[Qemu-devel] [PULL v2 12/24] linux-user: add socketcall() strace

2016-06-28 Thread riku . voipio
From: Laurent Vivier Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell --- linux-user/strace.c | 549 ++ linux-user/strace.list| 2 +- linux-user/syscall_defs.h | 22 +- 3 files changed, 568 insertions

[Qemu-devel] [PULL v2 24/24] linux-user: Provide safe_syscall for ppc64

2016-06-28 Thread riku . voipio
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/host/ppc64/hostdep.h | 23 linux-user/host/ppc64/safe-syscall.inc.S | 92 2 files changed, 115 insertions(+) create mode 100644 linux-user

[Qemu-devel] [PULL v2 17/24] linux-user: fd_trans_host_to_target_data() must process only received data

2016-06-28 Thread riku . voipio
From: Laurent Vivier if we process the whole buffer, the netlink helpers can try to swap invalid data. Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user

[Qemu-devel] [PULL v2 20/24] linux-user: Provide safe_syscall for i386

2016-06-28 Thread riku . voipio
From: Richard Henderson Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/host/i386/hostdep.h | 23 +++ linux-user/host/i386/safe-syscall.inc.S | 112 2 files changed, 135 insertions(+) create

[Qemu-devel] [PULL v2 14/24] linux-user: fix clone() strace

2016-06-28 Thread riku . voipio
From: Laurent Vivier Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell --- linux-user/strace.c | 42 -- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index

[Qemu-devel] [PULL v2 22/24] linux-user: Provide safe_syscall for aarch64

2016-06-28 Thread riku . voipio
From: Richard Henderson Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio [RV] Updated syscall argument comment to match code --- linux-user/host/aarch64/hostdep.h | 23 + linux-user/host/aarch64/safe-syscall.inc.S | 75

[Qemu-devel] [PULL v2 15/24] linux-user: update get_thread_area/set_thread_area strace

2016-06-28 Thread riku . voipio
From: Laurent Vivier int get_thread_area(struct user_desc *u_info); int set_thread_area(struct user_desc *u_info); Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell --- linux-user/strace.list | 6 -- 1 file changed, 4 insertions(+), 2

[Qemu-devel] [PULL v2 21/24] linux-user: Provide safe_syscall for arm

2016-06-28 Thread riku . voipio
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/host/arm/hostdep.h | 23 + linux-user/host/arm/safe-syscall.inc.S | 90 ++ 2 files changed, 113 insertions(+) create

[Qemu-devel] [PULL v2 11/24] linux-user: Support F_GETPIPE_SZ and F_SETPIPE_SZ fcntls

2016-06-28 Thread riku . voipio
From: Peter Maydell Support the F_GETPIPE_SZ and F_SETPIPE_SZ fcntl operations. Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/strace.c | 7 +++ linux-user/syscall.c | 6 ++ linux-user/syscall_defs.h | 2 ++ 3 files

[Qemu-devel] [PULL v2 10/24] linux-user: Fix wrong type used for argument to rt_sigqueueinfo

2016-06-28 Thread riku . voipio
: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/syscall.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 5166ff9..8163ae8 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -7876,8 +7876,11 @@ abi_long

[Qemu-devel] [PULL v2 08/24] user-exec: Remove unused code for OSX hosts

2016-06-28 Thread riku . voipio
From: Peter Maydell Since we dropped darwin-user support many years ago, the code in user-exec to support hosts which define __APPLE__ is unused; delete it. Reviewed-by: Laurent Vivier Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio Signed-off-by: Peter Maydell --- user-exec.c

[Qemu-devel] [PULL v2 13/24] linux-user: add socket() strace

2016-06-28 Thread riku . voipio
From: Laurent Vivier Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell --- linux-user/strace.c| 23 +++ linux-user/strace.list | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/linux-user/strace.c b/linux-user

[Qemu-devel] [PULL v2 09/24] linux-user: Create a hostdep.h for each host architecture

2016-06-28 Thread riku . voipio
l rebuild the object file, and regenerate the dependencies in the process. So moving between trees prior to this commit and trees after this commit works without requiring a 'make clean'. Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Reviewed-by: Richard Hend

[Qemu-devel] [PULL v2 06/24] configure: Don't allow user-only targets for unknown CPU architectures

2016-06-28 Thread riku . voipio
g from was broken (will include any guest program using signals) * HPPA TCG backend support was dropped two and a half years ago with no complaints Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio --- configure | 7 +

[Qemu-devel] [PULL v2 07/24] user-exec: Delete now-unused hppa and m68k cpu_signal_handler() code

2016-06-28 Thread riku . voipio
From: Peter Maydell Now that configure blocks attempts to build user-mode code on hppa and m68k hosts, we can delete the cpu_signal_handler() implementations for those architectures. Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Reviewed-by: Richard Henderson Signed-off-by: Riku

[Qemu-devel] [PULL v2 02/24] linux-user: Use __get_user() and __put_user() to handle structs in do_fcntl()

2016-06-28 Thread riku . voipio
Reviewed-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/syscall.c | 298 --- 1 file changed, 166 insertions(+), 132 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 1c17b74..5c0d111 100644 --- a/linux-user/

[Qemu-devel] [PULL v2 05/24] configure: Don't override ARCH=unknown if enabling TCI

2016-06-28 Thread riku . voipio
;. Remove the line setting ARCH, so we leave it as "unknown", which is what the actual situation is. Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio --- configure | 1 - 1 file changed, 1 deletion(-) diff --git a/configu

[Qemu-devel] [PULL v2 03/24] linux-user: Use safe_syscall wrapper for fcntl

2016-06-28 Thread riku . voipio
ff-by: Peter Maydell Reviewed-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/syscall.c | 34 +++--- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 5c0d111..3dfaea9 100644 --- a/linux-user/s

[Qemu-devel] [PULL v2 04/24] linux-user: Don't use sigfillset() on uc->uc_sigmask

2016-06-28 Thread riku . voipio
time on an i386 host when a signal was taken. Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/qemu.h| 5 + linux-user/signal.c | 10 +- linux-user/syscall.c | 5 - 3 files changed, 14 insertions(+), 6 deletions(-) diff --g

[Qemu-devel] [PULL v2 01/24] linux-user: Avoid possible misalignment in host_to_target_siginfo()

2016-06-28 Thread riku . voipio
From: Peter Maydell host_to_target_siginfo() is implemented by a combination of host_to_target_siginfo_noswap() followed by tswap_siginfo(). The first of these two functions assumes that the target_siginfo_t it is writing to is correctly aligned, but the pointer passed into host_to_target_siginfo

[Qemu-devel] [PULL v2 00/24] linux-user changes for v2.7

2016-06-28 Thread riku . voipio
From: Riku Voipio The following changes since commit c7288767523f6510cf557707d3eb5e78e519b90d: Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.7-20160623' into staging (2016-06-23 11:53:14 +0100) are available in the git repository at: git://git.linaro.org/people/r

Re: [Qemu-devel] [PULL 00/24] linux-user changes

2016-06-26 Thread Riku Voipio
On 24 June 2016 at 16:36, Peter Maydell wrote: > On 24 June 2016 at 10:52, wrote: >> From: Riku Voipio >> >> The following changes since commit c7288767523f6510cf557707d3eb5e78e519b90d: >> >> Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2

[Qemu-devel] [PULL 23/24] linux-user: Provide safe_syscall for s390x

2016-06-24 Thread riku . voipio
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/host/s390x/hostdep.h | 23 linux-user/host/s390x/safe-syscall.inc.S | 90 2 files changed, 113 insertions(+) create mode 100644 linux-user

[Qemu-devel] [PULL 24/24] linux-user: Provide safe_syscall for ppc64

2016-06-24 Thread riku . voipio
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/host/ppc64/hostdep.h | 23 linux-user/host/ppc64/safe-syscall.inc.S | 92 2 files changed, 115 insertions(+) create mode 100644 linux-user

[Qemu-devel] [PULL 21/24] linux-user: Provide safe_syscall for arm

2016-06-24 Thread riku . voipio
From: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/host/arm/hostdep.h | 23 + linux-user/host/arm/safe-syscall.inc.S | 90 ++ 2 files changed, 113 insertions(+) create

[Qemu-devel] [PULL 20/24] linux-user: Provide safe_syscall for i386

2016-06-24 Thread riku . voipio
From: Richard Henderson Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/host/i386/hostdep.h | 23 +++ linux-user/host/i386/safe-syscall.inc.S | 112 2 files changed, 135 insertions(+) create

[Qemu-devel] [PULL 22/24] linux-user: Provide safe_syscall for aarch64

2016-06-24 Thread riku . voipio
From: Richard Henderson Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio [RV] Updated syscall argument comment to match code --- linux-user/host/aarch64/hostdep.h | 23 + linux-user/host/aarch64/safe-syscall.inc.S | 75

[Qemu-devel] [PULL 19/24] linux-user: fix x86_64 safe_syscall

2016-06-24 Thread riku . voipio
From: Richard Henderson Do what the comment says, test for signal_pending non-zero, rather than the current code which tests for bit 0 non-zero. Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell --- linux-user/host/x86_64/safe-syscall.inc.S | 6 +++--- 1

[Qemu-devel] [PULL 16/24] linux-user: add missing return in netlink switch statement

2016-06-24 Thread riku . voipio
From: Laurent Vivier Reported-by: Peter Maydell Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell --- linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index b1ed57c..ce9f020 100644 --- a

[Qemu-devel] [PULL 10/24] linux-user: Fix wrong type used for argument to rt_sigqueueinfo

2016-06-24 Thread riku . voipio
: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/syscall.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 95eafeb..686ebfb 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -7876,8 +7876,11 @@ abi_long

[Qemu-devel] [PULL 18/24] linux-user: don't swap NLMSG_DATA() fields

2016-06-24 Thread riku . voipio
From: Laurent Vivier If the structure pointed by NLMSG_DATA() is bigger than the size of NLMSG_DATA(), don't swap its fields to avoid memory corruption. Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell --- linux-user/syscall.c

[Qemu-devel] [PULL 09/24] linux-user: Create a hostdep.h for each host architecture

2016-06-24 Thread riku . voipio
l rebuild the object file, and regenerate the dependencies in the process. So moving between trees prior to this commit and trees after this commit works without requiring a 'make clean'. Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Reviewed-by: Richard Hend

[Qemu-devel] [PULL 17/24] linux-user: fd_trans_host_to_target_data() must process only received data

2016-06-24 Thread riku . voipio
From: Laurent Vivier if we process the whole buffer, the netlink helpers can try to swap invalid data. Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user

[Qemu-devel] [PULL 15/24] linux-user: update get_thread_area/set_thread_area strace

2016-06-24 Thread riku . voipio
From: Laurent Vivier int get_thread_area(struct user_desc *u_info); int set_thread_area(struct user_desc *u_info); Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell --- linux-user/strace.list | 6 -- 1 file changed, 4 insertions(+), 2

[Qemu-devel] [PULL 14/24] linux-user: fix clone() strace

2016-06-24 Thread riku . voipio
From: Laurent Vivier Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell --- linux-user/strace.c | 42 -- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index

[Qemu-devel] [PULL 07/24] user-exec: Delete now-unused hppa and m68k cpu_signal_handler() code

2016-06-24 Thread riku . voipio
From: Peter Maydell Now that configure blocks attempts to build user-mode code on hppa and m68k hosts, we can delete the cpu_signal_handler() implementations for those architectures. Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Reviewed-by: Richard Henderson Signed-off-by: Riku

[Qemu-devel] [PULL 06/24] configure: Don't allow user-only targets for unknown CPU architectures

2016-06-24 Thread riku . voipio
g from was broken (will include any guest program using signals) * HPPA TCG backend support was dropped two and a half years ago with no complaints Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio --- configure | 7 +

[Qemu-devel] [PULL 13/24] linux-user: add socket() strace

2016-06-24 Thread riku . voipio
From: Laurent Vivier Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell --- linux-user/strace.c| 23 +++ linux-user/strace.list | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/linux-user/strace.c b/linux-user

[Qemu-devel] [PULL 12/24] linux-user: add socketcall() strace

2016-06-24 Thread riku . voipio
From: Laurent Vivier Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell --- linux-user/strace.c | 549 ++ linux-user/strace.list| 2 +- linux-user/syscall_defs.h | 22 +- 3 files changed, 568 insertions

[Qemu-devel] [PULL 08/24] user-exec: Remove unused code for OSX hosts

2016-06-24 Thread riku . voipio
From: Peter Maydell Since we dropped darwin-user support many years ago, the code in user-exec to support hosts which define __APPLE__ is unused; delete it. Reviewed-by: Laurent Vivier Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio Signed-off-by: Peter Maydell --- user-exec.c

[Qemu-devel] [PULL 02/24] linux-user: Use __get_user() and __put_user() to handle structs in do_fcntl()

2016-06-24 Thread riku . voipio
these were accidentally left over when the original simple "just shift by 1" arm<->x86 conversion of commit 43f238d was changed to the more general scheme of using target_to_host_bitmask() functions in 2ba7f73. Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Signed-off-by: Ri

[Qemu-devel] [PULL 11/24] linux-user: Support F_GETPIPE_SZ and F_SETPIPE_SZ fcntls

2016-06-24 Thread riku . voipio
From: Peter Maydell Support the F_GETPIPE_SZ and F_SETPIPE_SZ fcntl operations. Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/strace.c | 7 +++ linux-user/syscall.c | 6 ++ linux-user/syscall_defs.h | 2 ++ 3 files

[Qemu-devel] [PULL 01/24] linux-user: Avoid possible misalignment in host_to_target_siginfo()

2016-06-24 Thread riku . voipio
From: Peter Maydell host_to_target_siginfo() is implemented by a combination of host_to_target_siginfo_noswap() followed by tswap_siginfo(). The first of these two functions assumes that the target_siginfo_t it is writing to is correctly aligned, but the pointer passed into host_to_target_siginfo

[Qemu-devel] [PULL 03/24] linux-user: Use safe_syscall wrapper for fcntl

2016-06-24 Thread riku . voipio
ff-by: Peter Maydell Reviewed-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/syscall.c | 34 +++--- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index ee05405..8dc8c7a 100644 --- a/linux-user/s

[Qemu-devel] [PULL 04/24] linux-user: Don't use sigfillset() on uc->uc_sigmask

2016-06-24 Thread riku . voipio
time on an i386 host when a signal was taken. Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/qemu.h| 5 + linux-user/signal.c | 10 +- linux-user/syscall.c | 5 - 3 files changed, 14 insertions(+), 6 deletions(-) diff --g

[Qemu-devel] [PULL 05/24] configure: Don't override ARCH=unknown if enabling TCI

2016-06-24 Thread riku . voipio
;. Remove the line setting ARCH, so we leave it as "unknown", which is what the actual situation is. Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio --- configure | 1 - 1 file changed, 1 deletion(-) diff --git a/configu

[Qemu-devel] [PULL 00/24] linux-user changes

2016-06-24 Thread riku . voipio
From: Riku Voipio The following changes since commit c7288767523f6510cf557707d3eb5e78e519b90d: Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.7-20160623' into staging (2016-06-23 11:53:14 +0100) are available in the git repository at: git://git.linaro.org/people/r

Re: [Qemu-devel] [PATCH v2 0/5] linux-user: safe_syscall updates

2016-06-24 Thread Riku Voipio
On Thu, Jun 23, 2016 at 01:10:40PM +0100, Peter Maydell wrote: > On 22 June 2016 at 01:32, Richard Henderson wrote: > > Rebased on Riku's linux-user-for-upstream branch. > > Fixed some nits that Peter pointed out. > > Fixed the ppc64 version to properly return -errno. > > > > Retested all except s

Re: [Qemu-devel] [PATCH 1/6] linux-user: fix x86_64 safe_syscall

2016-06-21 Thread Riku Voipio
On Mon, Jun 13, 2016 at 02:45:21PM -0700, Richard Henderson wrote: > Do what the comment says, test for signal_pending non-zero, > rather than the current coe which tests for bit 0 non-zero. Applied to linux-user with the type fixed, Thanks > Signed-off-by: Richard Henderson > --- > linux-user/

Re: [Qemu-devel] [PATCH] linux-user, trivial: display "0x%x" instead of "0x%d"

2016-06-21 Thread Riku Voipio
On Mon, Jun 20, 2016 at 11:51:32AM +0200, Laurent Vivier wrote: > Display an exception number, generally defined as an hexadecimal > number (for instance, EXCP_HLT is 0x10001). Acked-by: Riku Voipio > Signed-off-by: Laurent Vivier > --- > Resent to fix qemu-trivial email addre

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

2016-06-21 Thread Riku Voipio
On Mon, Jun 13, 2016 at 11:09:17PM +0100, Peter Maydell wrote: > On 13 June 2016 at 22:53, Peter Maydell wrote: > > On 13 June 2016 at 22:45, Richard Henderson wrote: > >> Richard Henderson (6): > >> linux-user: fix x86_64 safe_syscall > >> linux-user: Provide safe_syscall for i386 > >> lin

Re: [Qemu-devel] [PATCH v2 2/4] linux-user: pass environment arguments in execve

2016-06-20 Thread Riku Voipio
20.6.2016 22.51 Joel Holdsworth kirjoitti: > > On 15/06/16 20:59, Laurent Vivier wrote: > > > > Le 14/06/2016 `a 21:26, Joel Holdsworth a ecrit : > >> Previously, when emulating execve(2), qemu would execute a child > >> instance of the emulator with the environment variabl

Re: [Qemu-devel] [PATCH v2 0/3] Support building qemu-user powered docker test images

2016-06-13 Thread Riku Voipio
On 13 June 2016 at 15:30, Alex Bennée wrote: > > Riku Voipio writes: > >> On 13 June 2016 at 12:22, Alex Bennée wrote: >>> >>> Fam Zheng writes: >>> >>>> On Wed, 06/08 17:35, Alex Bennée wrote: >>>>> Hi, >>>>>

Re: [Qemu-devel] [PATCH v2 2/3] tests/docker/docker.py: support --include-executable

2016-06-13 Thread Riku Voipio
On 8 June 2016 at 19:35, Alex Bennée wrote: > When passed the path to a binary we copy it and any linked libraries > into the docker build context. These can then be included by a > dockerfile with the line: > > # Copy all of context into container > ADD . / > > This is mainly intended for set

Re: [Qemu-devel] [PATCH v2 0/3] Support building qemu-user powered docker test images

2016-06-13 Thread Riku Voipio
On 13 June 2016 at 12:22, Alex Bennée wrote: > > Fam Zheng writes: > >> On Wed, 06/08 17:35, Alex Bennée wrote: >>> Hi, >>> >>> This is a re-spin of the previous series built on top of >>> fam/docker.next. I've made the changes suggested in the last review >>> and split the first patch apart to s

[Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static

2016-06-08 Thread Riku Voipio
A prebuilt package of qemu-user built statically at: http://repo.linaro.org/ubuntu/linaro-tools/pool/main/q/qemu/qemu-user- static_2.6.0+git931+g9bbbf64-1linarojessie1_amd64.deb -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https:/

[Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static

2016-06-08 Thread Riku Voipio
Please try the latest qemu git HEAD, Timothys and Peters fixes have been merged in. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/955379 Title: cmake hangs with qemu-arm-static Status in QEMU: C

[Qemu-devel] [PULL 35/44] linux-user: Use safe_syscall wrapper for sleep syscalls

2016-06-08 Thread riku . voipio
From: Peter Maydell Use the safe_syscall wrapper for the clock_nanosleep and nanosleep syscalls. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/linux-user/syscall.c b/linux

[Qemu-devel] [PULL 41/44] linux-user: Correct signedness of target_flock l_start and l_len fields

2016-06-08 Thread riku . voipio
f the fields anyway. RV: long long -> abi_llong as suggested by Laurent Vivier Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall_defs.h | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/linux-user/syscall_de

[Qemu-devel] [PULL 40/44] linux-user: Use safe_syscall wrapper for ioctl

2016-06-08 Thread riku . voipio
From: Peter Maydell Use the safe_syscall wrapper to implement the ioctl syscall. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 27 --- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/linux-user/syscall.c b/linux

[Qemu-devel] [PULL 37/44] linux-user: Use safe_syscall wrapper for epoll_wait syscalls

2016-06-08 Thread riku . voipio
orted the syscall since 2.6.19 so we can assume it's always there.) Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- configure| 21 ++--- linux-user/syscall.c | 18 ++ 2 files changed, 12 insertions(+), 27 deletions(-) diff --git a/c

[Qemu-devel] [PULL 34/44] linux-user: Use safe_syscall wrapper for rt_sigtimedwait syscall

2016-06-08 Thread riku . voipio
From: Peter Maydell Use the safe_syscall wrapper for the rt_sigtimedwait syscall. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 7d88009

[Qemu-devel] [PULL 27/44] linux-user: Fix error conversion in 64-bit fadvise syscall

2016-06-08 Thread riku . voipio
From: Peter Maydell Fix a missing host-to-target errno conversion in the 64-bit fadvise syscall emulation. Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[Qemu-devel] [PULL 31/44] linux-user: Use safe_syscall wrapper for msgsnd and msgrcv

2016-06-08 Thread riku . voipio
e_ipc() to handle this if needed. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 32 ++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index bcae62d..b41d269 100644 -

[Qemu-devel] [PULL 29/44] linux-user: Use safe_syscall wrapper for connect syscall

2016-06-08 Thread riku . voipio
From: Peter Maydell Use the safe_syscall wrapper for the connect syscall. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e0c49cc..b363944

[Qemu-devel] [PULL 42/44] linux-user: Make target_strerror() return 'const char *'

2016-06-08 Thread riku . voipio
From: Peter Maydell Make target_strerror() return 'const char *' rather than just 'char *'; this will allow us to return constant strings from it for some special cases. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio Reviewed-by: Laurent Vivier --- linu

[Qemu-devel] [PULL 21/44] linux-user: Restart fork() if signals pending

2016-06-08 Thread riku . voipio
...@members.leeds.ac.uk Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 5 + 1 file changed, 5 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index c0d086c..a2d591e 100644 --- a/linux-user/syscall.c +++ b/linux-user

[Qemu-devel] [PULL 43/44] linux-user: Special-case ERESTARTSYS in target_strerror()

2016-06-08 Thread riku . voipio
Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 262c645..bd8095c 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -632,6 +632,13 @@ static inline int is_error

[Qemu-devel] [PULL 30/44] linux-user: Use safe_syscall wrapper for send* and recv* syscalls

2016-06-08 Thread riku . voipio
From: Peter Maydell Use the safe_syscall wrapper for the send, sendto, sendmsg, recv, recvfrom and recvmsg syscalls. RV: adjusted to apply Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions

[Qemu-devel] [PULL 39/44] linux-user: Use safe_syscall wrapper for accept and accept4 syscalls

2016-06-08 Thread riku . voipio
From: Peter Maydell Use the safe_syscall wrapper for the accept and accept4 syscalls. accept4 has been in the kernel since 2.6.28 so we can assume it is always present. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 23 --- 1 file

[Qemu-devel] [PULL 25/44] linux-user: Fix handling of arm_fadvise64_64 syscall

2016-06-08 Thread riku . voipio
* len high half * len low half Stop trying to share code with the standard fadvise syscalls, and just implement the syscall with the correct argument order. Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/syscall.c | 22

[Qemu-devel] [PULL 23/44] linux-user: Avoid possible misalignment in target_to_host_siginfo()

2016-06-08 Thread riku . voipio
From: Peter Maydell Reimplement target_to_host_siginfo() to use __get_user(), which handles possibly misaligned source guest structures correctly. Reviewed-by: Laurent Vivier Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/signal.c | 19 --- 1 file

[Qemu-devel] [PULL 32/44] linux-user: Use safe_syscall wrapper for mq_timedsend and mq_timedreceive

2016-06-08 Thread riku . voipio
From: Peter Maydell Use the safe_syscall wrapper for mq_timedsend and mq_timedreceive syscalls. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/linux-user/syscall.c b

[Qemu-devel] [PULL 17/44] linux-user: Block signals during sigaction() handling

2016-06-08 Thread riku . voipio
Baldwin Message-id: 1441497448-32489-29-git-send-email-t.e.baldwi...@members.leeds.ac.uk [PMM: expanded commit message] Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/signal.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions

[Qemu-devel] [PULL 19/44] linux-user: Restart exit() if signal pending

2016-06-08 Thread riku . voipio
From: Timothy E Baldwin Without this a signal could vanish on thread exit. Signed-off-by: Timothy Edward Baldwin Message-id: 1441497448-32489-26-git-send-email-t.e.baldwi...@members.leeds.ac.uk Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux

[Qemu-devel] [PULL 36/44] linux-user: Use safe_syscall wrapper for poll and ppoll syscalls

2016-06-08 Thread riku . voipio
code structure already used in the implementation of epoll_wait and epoll_pwait, which uses a switch() to avoid interleaving #if and if (), and to stop using a variable with a leading '_' which is in the implementation's namespace. Signed-off-by: Peter Maydell Signed-off-

[Qemu-devel] [PULL 16/44] linux-user: Queue synchronous signals separately

2016-06-08 Thread riku . voipio
reful analysis of all guest CPUs to check it was possible in all cases). Signed-off-by: Timothy Edward Baldwin Message-id: 1441497448-32489-24-git-send-email-t.e.baldwi...@members.leeds.ac.uk [PMM: added a comment] Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell Signed-off-by: Riku V

[Qemu-devel] [PULL 15/44] linux-user: Remove real-time signal queuing

2016-06-08 Thread riku . voipio
host_signal_handler() pass an RT signal number.) Signed-off-by: Timothy Edward Baldwin Message-id: 1441497448-32489-23-git-send-email-t.e.baldwi...@members.leeds.ac.uk Reviewed-by: Peter Maydell [PMM: minor commit message tweak] Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user

[Qemu-devel] [PULL 18/44] linux-user: pause() should not pause if signal pending

2016-06-08 Thread riku . voipio
ldwin Message-id: 1441497448-32489-28-git-send-email-t.e.baldwi...@members.leeds.ac.uk [PMM: tweaked commit message] Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/

[Qemu-devel] [PULL 44/44] linux-user: In fork_end(), remove correct CPUs from CPU list

2016-06-08 Thread riku . voipio
start_exclusive() waiting for a sibling CPU which didn't exist. In particular this could cause hangs doing git submodule init operations, as reported in https://bugs.launchpad.net/qemu/+bug/955379 comment #47. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/main.c | 2

[Qemu-devel] [PULL 24/44] linux-user: provide frame information in x86-64 safe_syscall

2016-06-08 Thread riku . voipio
e for something else, and so gdb can't find the frame then without assistance.) Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/host/x86_64/safe-syscall.inc.S | 10 ++ 1 file changed, 10 insertions(+) di

[Qemu-devel] [PULL 22/44] linux-user: Use both si_code and si_signo when converting siginfo_t

2016-06-08 Thread riku . voipio
the target memory pointer is not sufficiently aligned for the host CPU's requirements. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/signal.c | 165 -- linux-user/syscall_defs.h | 15 + 2 files changed, 131 in

[Qemu-devel] [PULL 12/44] linux-user: Fix race between multiple signals

2016-06-08 Thread riku . voipio
commit message; fixed sigsuspend() hanging] Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/qemu.h| 50 +++- linux-user/signal.c | 163 +++ linux-user/syscall.c | 73 +++

[Qemu-devel] [PULL 38/44] linux-user: Use safe_syscall wrapper for semop

2016-06-08 Thread riku . voipio
From: Peter Maydell Use the safe_syscall wrapper for the semop syscall or IPC operation. (We implement via the semtimedop syscall to make it easier to implement the guest semtimedop syscall later.) Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 11

[Qemu-devel] [PULL 07/44] linux-user: Move handle_pending_signal() to avoid need for declaration

2016-06-08 Thread riku . voipio
From: Peter Maydell Move the handle_pending_signal() function above process_pending_signals() to avoid the need for a forward declaration. (Whitespace only change.) Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/signal.c | 44

[Qemu-devel] [PULL 14/44] linux-user: Remove redundant gdb_queuesig()

2016-06-08 Thread riku . voipio
From: Timothy E Baldwin Signed-off-by: Timothy Edward Baldwin Message-id: 1441497448-32489-22-git-send-email-t.e.baldwi...@members.leeds.ac.uk Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- gdbstub.c | 13 - include/exec

[Qemu-devel] [PULL 11/44] linux-user: Use safe_syscall for sigsuspend syscalls

2016-06-08 Thread riku . voipio
-off-by: Riku Voipio --- linux-user/syscall.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index d2749a6..5bdfe2a 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -716,6 +716,7 @@ safe_syscall6(int, pselect6, int

[Qemu-devel] [PULL 33/44] linux-user: Use safe_syscall wrapper for flock

2016-06-08 Thread riku . voipio
From: Peter Maydell Use the safe_syscall wrapper for the flock syscall. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- 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 294e5ee..7d88009

[Qemu-devel] [PULL 13/44] linux-user: Remove redundant default action check in queue_signal()

2016-06-08 Thread riku . voipio
: Timothy Edward Baldwin Message-id: 1441497448-32489-21-git-send-email-t.e.baldwi...@members.leeds.ac.uk Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/signal.c | 37 - 1 file changed, 37 deletions(-) diff --git

<    1   2   3   4   5   6   7   8   9   10   >