Re: [Qemu-devel] [PATCH] linux-user/uname: Return correct uname string for x86_64

2014-06-06 Thread Riku Voipio
On Thu, Jun 05, 2014 at 02:21:42PM +0100, Peter Maydell wrote: On 5 June 2014 14:11, Riku Voipio riku.voi...@iki.fi wrote: Hi, On Tue, Jun 03, 2014 at 03:07:59PM +0100, Peter Maydell wrote: Ping! Looks good, I'll collect this and other linux-user patches and submit linux-user

[Qemu-devel] [PATCH v2 04/13] signal/all: remove return value from setup_sigcontext

2014-06-06 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Make all implementations of setup_sigcontext void and remove checking it's return value from functions calling setup_sigcontext. Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/signal.c | 65

[Qemu-devel] [PATCH v2 10/13] signal/ppc/{save, restore}_user_regs remove __put/get error checks

2014-06-06 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org As __get_user and __put_user do not return errors, remove the if checks from around them. This allows making the save/restore functions void. Signed-off-by: Riku Voipio riku.voi...@linaro.org Cc: Alexander Graf ag...@suse.de --- linux-user/signal.c | 126

[Qemu-devel] [PATCH v2 08/13] signal/all/do_sigreturn - remove __get_user checks

2014-06-06 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Remove if(__get_user checks and their related error paths for all architecture's do_sigreturn. Remove the unlock_user_struct when the only way to end up there is from failed lock_user_struct. Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux

[Qemu-devel] [PATCH v2 05/13] signal/all: remove return value from restore_sigcontext

2014-06-06 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org make most implementations of restore_sigcontext void and remove checking it's return value from functions calling restore_sigcontext. The exception is the X86 version of the function that is too different from others to deal in this way. Signed-off

[Qemu-devel] [PATCH v2 01/13] signal/all: remove __get/__put_user return value reading

2014-06-06 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Remove all the simple cases of reading the return value of __get_user and __put_user. We set err = 0 in sparc versions of do_sigreturn and sparc64_set_context to avoid compile error, but else this patch is just general removal of err |= __get_user

[Qemu-devel] [PATCH v2 09/13] signal/all/setup_frame remove __put_user checks

2014-06-06 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Remove if(__put_user checks and their related error paths for all architecture's setup_frame, setup_rt_frame and similar. Remove the unlock_user_struct when the only way to end up there is from failed lock_user_struct. Remove err variable

[Qemu-devel] [PATCH v2 02/13] signal/x86/setup_frame: __put_user cleanup

2014-06-06 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Remove the remaining check for __put_user return value, and all the checks for err variable which isn't set anywhere anymore. No we can only end up in give_sigsegv due to failed lock_user_struct - thus we remove the unlock_user_struct to avoid unlocking

[Qemu-devel] [PATCH v2 13/13] linux-user: fix gcc-4.9 compiler error on __{get, put]}_user

2014-06-06 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org gcc-4.9 finds unused operand: linux-user/syscall.c: In function ‘host_to_target_stat64’: linux-user/qemu.h:301:19: error: right-hand operand of comma expression has no effect [-Werror=unused-value] ((hptr), (x)), 0) Just removing the rh operand

[Qemu-devel] [PATCH v2 03/13] signal/all: remove return value from copy_siginfo_to_user

2014-06-06 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Since copy_siginfo_to_user always returns 0, make it void and remove any checks for return value from calling functions. Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/signal.c | 28 +--- 1 file changed, 9

[Qemu-devel] [PATCH v2 06/13] signal/sparc/restore_fpu_state: remove

2014-06-06 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org A function never called from anywhere, obviously half-complete. Remove function and if someone wants to complete this, please check the old version out of git history. Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/signal.c | 37

[Qemu-devel] [PATCH v2 00/13] linux-user: __{get, put}_user return value cleanup

2014-06-06 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org This series is a cleanup and gcc-4.9 buildfix: linux-user/syscall.c: In function ‘host_to_target_stat64’: linux-user/qemu.h:301:19: error: right-hand operand of comma expression has no effect [-Werror=unused-value] ((hptr), (x)), 0) removing

[Qemu-devel] [PATCH v2 07/13] signal/all/do_sigaltstack remove __get_user value check

2014-06-06 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Access is already checked in the lock_user_struct call before. Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/signal.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/linux-user/signal.c b/linux-user

[Qemu-devel] [PATCH v2 12/13] signal/ppc/do_setcontext remove __get_user return check

2014-06-06 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org The last remaining check for return value of __get_user. Signed-off-by: Riku Voipio riku.voi...@linaro.org Cc: Alexander Graf ag...@suse.de --- linux-user/signal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linux-user/signal.c

[Qemu-devel] [PATCH v2 11/13] signal/sparc64_set_context: remove __get_user checks

2014-06-06 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Remove checks of __get_user and the err variable used to control flow with it. Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/signal.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/linux-user/signal.c

[Qemu-devel] [PATCH v3] signal/all: remove return value from restore_sigcontext

2014-06-09 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org make most implementations of restore_sigcontext void and remove checking it's return value from functions calling restore_sigcontext. The exception is the X86 version of the function that is too different from others to deal in this way, and arm version

[Qemu-devel] [PATCH v3] signal/all/do_sigreturn - remove __get_user checks

2014-06-09 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Remove if(__get_user checks and their related error paths for all architecture's do_sigreturn. Remove the unlock_user_struct when the only way to end up there is from failed lock_user_struct. v3: remove unneccesary sigsegv label as suggested by Peter

Re: [Qemu-devel] [PATCH v2 00/13] linux-user: __{get, put}_user return value cleanup

2014-06-09 Thread Riku Voipio
On 8 June 2014 00:40, Peter Maydell peter.mayd...@linaro.org wrote: On 6 June 2014 10:46, riku.voi...@linaro.org wrote: From: Riku Voipio riku.voi...@linaro.org This series is a cleanup and gcc-4.9 buildfix: linux-user/syscall.c: In function ‘host_to_target_stat64’: linux-user/qemu.h:301

[Qemu-devel] [PULL 13/18] linux-user: fix gcc-4.9 compiler error on __{get, put]}_user

2014-06-09 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org gcc-4.9 finds unused operand: linux-user/syscall.c: In function ‘host_to_target_stat64’: linux-user/qemu.h:301:19: error: right-hand operand of comma expression has no effect [-Werror=unused-value] ((hptr), (x)), 0) Just removing the rh operand

[Qemu-devel] [PULL 17/18] linux-user: Return correct errno for unsupported netlink socket

2014-06-09 Thread riku . voipio
From: Ed Swierk eswi...@skyportsystems.com This fixes Cannot open audit interface - aborting. when the EAFNOSUPPORT errno differs between the target and host architectures (e.g. mips target and x86_64 host). Signed-off-by: Ed Swierk eswi...@skyportsystems.com Signed-off-by: Riku Voipio riku.voi

[Qemu-devel] [PULL 02/18] signal/x86/setup_frame: __put_user cleanup

2014-06-09 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Remove the remaining check for __put_user return value, and all the checks for err variable which isn't set anywhere anymore. No we can only end up in give_sigsegv due to failed lock_user_struct - thus we remove the unlock_user_struct to avoid unlocking

[Qemu-devel] [PULL 10/18] signal/ppc/{save, restore}_user_regs remove __put/get error checks

2014-06-09 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org As __get_user and __put_user do not return errors, remove the if checks from around them. This allows making the save/restore functions void. Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Peter Maydell peter.mayd...@linaro.org Cc

[Qemu-devel] [PULL 00/18] linux-user fixes

2014-06-09 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Mostly fixes, but a bigger rework in signal.c to allow compiling with gcc-4.9 The following changes since commit 959e41473f2179850578482052fb73b913bc4e42: slirp/arp: do not special-case bogus IP addresses (2014-06-09 01:49:28 +0200) are available

[Qemu-devel] [PULL 18/18] User mode support for Linux ELF files with no section header

2014-06-09 Thread riku . voipio
() allows ELF binaries with no section headers to be run properly in user mode: Signed-off-by: Craig Heffner cheff...@tacnetsol.com Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/elfload.c | 1 - 1 file changed, 1 deletion(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c

[Qemu-devel] [PULL 12/18] signal/ppc/do_setcontext remove __get_user return check

2014-06-09 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org The last remaining check for return value of __get_user. Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Peter Maydell peter.mayd...@linaro.org Cc: Alexander Graf ag...@suse.de --- linux-user/signal.c | 3 +-- 1 file changed, 1 insertion

[Qemu-devel] [PULL 05/18] signal/all: remove return value from restore_sigcontext

2014-06-09 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org make most implementations of restore_sigcontext void and remove checking it's return value from functions calling restore_sigcontext. The exception is the X86 version of the function that is too different from others to deal in this way, and arm version

[Qemu-devel] [PULL 06/18] signal/sparc/restore_fpu_state: remove

2014-06-09 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org A function never called from anywhere, obviously half-complete. Remove function and if someone wants to complete this, please check the old version out of git history. Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Peter Maydell peter.mayd

[Qemu-devel] [PULL 08/18] signal/all/do_sigreturn - remove __get_user checks

2014-06-09 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Remove if(__get_user checks and their related error paths for all architecture's do_sigreturn. Remove the unlock_user_struct when the only way to end up there is from failed lock_user_struct. v3: remove unneccesary sigsegv label as suggested by Peter

[Qemu-devel] [PULL 15/18] linux-user: Don't overrun guest buffer in sched_getaffinity

2014-06-09 Thread riku . voipio
a buffer whose size is a multiple of 8 regardless of guest architecture. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 16 1 file changed, 16 insertions(+) diff --git a/linux-user/syscall.c b/linux

[Qemu-devel] [PULL 03/18] signal/all: remove return value from copy_siginfo_to_user

2014-06-09 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Since copy_siginfo_to_user always returns 0, make it void and remove any checks for return value from calling functions. Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- linux-user/signal.c | 28

[Qemu-devel] [PULL 04/18] signal/all: remove return value from setup_sigcontext

2014-06-09 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Make all implementations of setup_sigcontext void and remove checking it's return value from functions calling setup_sigcontext. Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- linux-user/signal.c

[Qemu-devel] [PULL 14/18] linux-user/uname: Return correct uname string for x86_64

2014-06-09 Thread riku . voipio
for only those architectures which need to vary the string based on runtime CPU features. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/uname.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/linux-user

[Qemu-devel] [PULL 16/18] linux-user: Tell guest about big host page sizes

2014-06-09 Thread riku . voipio
...@suse.de Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/elfload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 995f999..03a8719 100644 --- a/linux-user

[Qemu-devel] [PULL 09/18] signal/all/setup_frame remove __put_user checks

2014-06-09 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Remove if(__put_user checks and their related error paths for all architecture's setup_frame, setup_rt_frame and similar. Remove the unlock_user_struct when the only way to end up there is from failed lock_user_struct. Remove err variable

[Qemu-devel] [PULL 01/18] signal/all: remove __get/__put_user return value reading

2014-06-09 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Remove all the simple cases of reading the return value of __get_user and __put_user. We set err = 0 in sparc versions of do_sigreturn and sparc64_set_context to avoid compile error, but else this patch is just general removal of err |= __get_user

[Qemu-devel] [PULL 11/18] signal/sparc64_set_context: remove __get_user checks

2014-06-09 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Remove checks of __get_user and the err variable used to control flow with it. Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- linux-user/signal.c | 12 +++- 1 file changed, 3 insertions

[Qemu-devel] [PULL 07/18] signal/all/do_sigaltstack remove __get_user value check

2014-06-09 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Access is already checked in the lock_user_struct call before. Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- linux-user/signal.c | 9 + 1 file changed, 5 insertions(+), 4 deletions

Re: [Qemu-devel] [PULL 00/18] linux-user fixes

2014-06-09 Thread Riku Voipio
On 9 June 2014 16:37, Peter Maydell peter.mayd...@linaro.org wrote: On 9 June 2014 13:46, riku.voi...@linaro.org wrote: From: Riku Voipio riku.voi...@linaro.org Mostly fixes, but a bigger rework in signal.c to allow compiling with gcc-4.9 The following changes since commit

[Qemu-devel] [PATCH v3 02/13] signal/x86/setup_frame: __put_user cleanup

2014-06-10 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Remove the remaining check for __put_user return value, and all the checks for err variable which isn't set anywhere anymore. No we can only end up in give_sigsegv due to failed lock_user_struct - thus we remove the unlock_user_struct to avoid unlocking

[Qemu-devel] [PATCH v3 03/13] signal/all: remove return value from copy_siginfo_to_user

2014-06-10 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Since copy_siginfo_to_user always returns 0, make it void and remove any checks for return value from calling functions. Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- linux-user/signal.c | 28

[Qemu-devel] [PATCH v3 13/13] linux-user: fix gcc-4.9 compiler error on __{get, put]}_user

2014-06-10 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org gcc-4.9 finds unused operand: linux-user/syscall.c: In function ‘host_to_target_stat64’: linux-user/qemu.h:301:19: error: right-hand operand of comma expression has no effect [-Werror=unused-value] ((hptr), (x)), 0) Just removing the rh operand

[Qemu-devel] [PATCH v3 04/13] signal/all: remove return value from setup_sigcontext

2014-06-10 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Make all implementations of setup_sigcontext void and remove checking it's return value from functions calling setup_sigcontext. Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- linux-user/signal.c

[Qemu-devel] [PATCH v3 07/13] signal/all/do_sigaltstack remove __get_user value check

2014-06-10 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Access is already checked in the lock_user_struct call before. Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- linux-user/signal.c | 9 + 1 file changed, 5 insertions(+), 4 deletions

[Qemu-devel] [PATCH v3 12/13] signal/ppc/do_setcontext remove __get_user return check

2014-06-10 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org The last remaining check for return value of __get_user. Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Peter Maydell peter.mayd...@linaro.org Cc: Alexander Graf ag...@suse.de --- linux-user/signal.c | 3 +-- 1 file changed, 1 insertion

[Qemu-devel] [PATCH v3 08/13] signal/all/do_sigreturn - remove __get_user checks

2014-06-10 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Remove if(__get_user checks and their related error paths for all architecture's do_sigreturn. Remove the unlock_user_struct when the only way to end up there is from failed lock_user_struct. v3: remove unneccesary sigsegv label as suggested by Peter

[Qemu-devel] [PATCH v3 11/13] signal/sparc64_set_context: remove __get_user checks

2014-06-10 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Remove checks of __get_user and the err variable used to control flow with it. Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- linux-user/signal.c | 12 +++- 1 file changed, 3 insertions

[Qemu-devel] [PATCH v3 10/13] signal/ppc/{save, restore}_user_regs remove __put/get error checks

2014-06-10 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org As __get_user and __put_user do not return errors, remove the if checks from around them. This allows making the save/restore functions void. Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Peter Maydell peter.mayd...@linaro.org Cc

[Qemu-devel] [PATCH v3 05/13] signal/all: remove return value from restore_sigcontext

2014-06-10 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org make most implementations of restore_sigcontext void and remove checking it's return value from functions calling restore_sigcontext. The exception is the X86 version of the function that is too different from others to deal in this way, and arm version

[Qemu-devel] [PATCH v3 09/13] signal/all/setup_frame remove __put_user checks

2014-06-10 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Remove if(__put_user checks and their related error paths for all architecture's setup_frame, setup_rt_frame and similar. Remove the unlock_user_struct when the only way to end up there is from failed lock_user_struct. Remove err variable

[Qemu-devel] [PATCH v3 06/13] signal/sparc/restore_fpu_state: remove

2014-06-10 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org A function never called from anywhere, obviously half-complete. Remove function and if someone wants to complete this, please check the old version out of git history. Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Peter Maydell peter.mayd

[Qemu-devel] [PATCH v3 01/13] signal/all: remove __get/__put_user return value reading

2014-06-10 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Remove all the simple cases of reading the return value of __get_user and __put_user. We set err = 0 in sparc versions of do_sigreturn and sparc64_set_context to avoid compile error, but else this patch is just general removal of err |= __get_user

[Qemu-devel] [PATCH v3 00/13] linux-user: __{get, put}_user return value cleanup

2014-06-10 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org This series is a cleanup and gcc-4.9 buildfix: linux-user/syscall.c: In function ‘host_to_target_stat64’: linux-user/qemu.h:301:19: error: right-hand operand of comma expression has no effect [-Werror=unused-value] ((hptr), (x)), 0) removing

Re: [Qemu-devel] [PATCH 3/4] linux-user: set minimum kernel version to2.6.322

2014-03-06 Thread Riku Voipio
On 4 March 2014 13:41, Peter Maydell peter.mayd...@linaro.org wrote: On 4 March 2014 11:32, Alex Bennée alex.ben...@linaro.org wrote: Is the effect of this to report system uname or minimum whichever is higher? That's what this patch does. The old configure stuff which this patchset removed

Re: [Qemu-devel] [PATCH 3/4] linux-user: set minimum kernel version to2.6.322

2014-03-10 Thread Riku Voipio
On 7 March 2014 10:45, Peter Maydell peter.mayd...@linaro.org wrote: On 7 March 2014 02:19, Riku Voipio riku.voi...@linaro.org wrote: So you agree these patches are the way to go? I haven't actually reviewed them but I think the idea is right, yes. With the hard freeze getting close

[Qemu-devel] [PATCH 3/8] linux-user: Don't use UID16 on AArch64

2014-03-10 Thread riku . voipio
From: Andreas Schwab sch...@suse.de The AArch64 kernel defines its __kernel_uid_t type as 32 bits, unlike 32 bit ARM, so don't enable our 16-bit UID wrapper handling. Signed-off-by: Andreas Schwab sch...@suse.de Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio

[Qemu-devel] [PATCH 2/8] linux-user: AArch64: Implement SA_RESTORER for signal handlers

2014-03-10 Thread riku . voipio
From: Michael Matz m...@suse.de Implement support for signal handlers with the SA_RESTORER flag set. Signed-off-by: Michael Matz m...@suse.de [PMM: minor tweaks to make patch apply to current master] Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi

[Qemu-devel] [PATCH 1/8] linux-user/signal.c: Fix AArch64 big-endian FP register restore

2014-03-10 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org Fix the loop restoring the FP registers from the signal frame to match the one used when setting up the signal frame, so that it handles TARGET_WORDS_BIGENDIAN being set. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio

[Qemu-devel] [PATCH 6/8] linux-user: translate signal number on return from sigtimedwait

2014-03-10 Thread riku . voipio
...@imgtec.com Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- linux-user/syscall.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 1f64867..e2c10cc

[Qemu-devel] [PATCH 4/8] linux-user: Fix getresuid, getresgid if !USE_UID16

2014-03-10 Thread riku . voipio
. Reported-by: Michael Matz m...@suse.de Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Andreas Färber afaer...@suse.de Reviewed-by: Richard Henderson r...@twiddle.net --- linux-user/syscall.c | 18 -- 1 file changed

[Qemu-devel] [PATCH 8/8] linux-user: set minimum kernel version to 2.6.32

2014-03-10 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Popular glibc based distributions[1] require minimum 2.6.32 as kernel version. For some targets 2.6.18 would be enough, but dropping so low would mean some suboptimal system calls could get used. Set the minimum kernel advertized to 2.6.32 for all

[Qemu-devel] [PATCH 7/8] linux-user: correct handling of break exception for MIPS

2014-03-10 Thread riku . voipio
From: Petar Jovanovic petar.jovano...@imgtec.com Exception with break instruction has not been correctly propagated as SIGTRAP. This resolves crash issues with examples that use break instruction on MIPS. Signed-off-by: Petar Jovanovic petar.jovano...@imgtec.com Signed-off-by: Riku Voipio

[Qemu-devel] [PATCH 5/8] linux-user: Implement sendmmsg syscall

2014-03-10 Thread riku . voipio
support for non-blocking operations); cap the vector length as the kernel implementation does; don't lock guest memory twice; support MSG_WAITFORONE flag] Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org Reviewed-by: Richard Henderson r

[Qemu-devel] [PULL 0/8] linux-user update for 2.0

2014-03-10 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org The following changes since commit d844a7b6569fb2b5252773444b18841426e5b906: modules: Fix building with --enable-modules (2014-02-28 12:30:13 +) are available in the git repository at: git://git.linaro.org/people/riku.voipio/qemu.git linux-user

Re: [Qemu-devel] [PATCH] linux-user: Don't reserve space for commpage for AArch64

2014-03-12 Thread Riku Voipio
On Mon, Mar 10, 2014 at 12:59:17PM +, Peter Maydell wrote: AArch64 Linux, unlike AArch32, doesn't use a commpage. This means we should not be reserving room in the guest address space for one. Fixes LP:1287195. Looks good, Reviewed-by: Riku Voipio riku.voi...@linaro.org Reported

Re: [Qemu-devel] [ANNOUNCE] QEMU 2.0.0-rc0 is now available

2014-03-14 Thread Riku Voipio
On Thu, Mar 13, 2014 at 08:19:48PM -0700, Anthony Liguori wrote: Please add entries to the ChangeLog for the 2.0 release below: http://wiki.qemu.org/ChangeLog/Next I could do some updates for linux-user - but how does one get an account to edit on wiki.l.o ? Riku

Re: [Qemu-devel] [PATCH] linux-user: Implement capget, capset

2014-03-17 Thread Riku Voipio
On Fri, Mar 14, 2014 at 06:10:50PM +, Peter Maydell wrote: Implement the capget and capset syscalls. This is useful because simple programs like 'ls' try to use it in AArch64 I'm not seing this with ubuntu trusty, wookeys debian or my static busybox. Where is your ls from? Also, runnning

[Qemu-devel] [PATCH] linux-user: don't warn on missing capget/capset

2014-03-17 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org some people get numerous unimplemented capget/capset warnings. Since qemu linux-user is not secure to begin with, just skip the system call warning for now. Proper capset/capget to be added in Qemu 2.1 Signed-off-by: Riku Voipio riku.voi...@linaro.org

Re: [Qemu-devel] [PATCH v2] linux-user: Implement capget, capset

2014-03-17 Thread Riku Voipio
On Mon, Mar 17, 2014 at 12:15:35PM +, Peter Maydell wrote: Implement the capget and capset syscalls. This is useful because simple programs like 'ls' try to use it in AArch64, and otherwise we emit a lot of noise about it being unimplemented. Signed-off-by: Peter Maydell

Re: [Qemu-devel] [PATCH] linux-user: don't warn on missing capget/capset

2014-03-18 Thread Riku Voipio
On 17 March 2014 22:17, Andreas Färber afaer...@suse.de wrote: Am 17.03.2014 12:55, schrieb riku.voi...@linaro.org: From: Riku Voipio riku.voi...@linaro.org some people get numerous unimplemented capget/capset warnings. Since qemu linux-user is not secure to begin with, just skip

[Qemu-devel] [PULL for-2.0 5/7] signal: added a wrapper for sigprocmask function

2014-03-19 Thread riku . voipio
handlers, since these also are guest-provided signal masks.] Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/qemu.h| 1 + linux-user/signal.c | 58 ++-- linux-user/syscall.c | 14

[Qemu-devel] [PULL for-2.0 0/7] linux-user patches

2014-03-19 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org The following changes since commit 6fffa26244737f8fd8641a21fee29bd6aa9fdff5: Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-2014-03-15' into staging (2014-03-15 18:22:11 +) are available in the git repository at: git

[Qemu-devel] [PULL for-2.0 4/7] linux-user: Don't reserve space for commpage for AArch64

2014-03-19 Thread riku . voipio
...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/elfload.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 6bc7999..99a2c58 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -352,6 +352,9

[Qemu-devel] [PULL for-2.0 6/7] linux-user: Don't allow guest to block SIGSEGV

2014-03-19 Thread riku . voipio
delivery. This patch is based on an idea by Alex Barcelo, but rather than simply lying to the guest about the SIGSEGV state we track it. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reported-by: Alex Barcelo abarc...@ac.upc.edu Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux

[Qemu-devel] [PULL for-2.0 7/7] linux-user: Implement capget, capset

2014-03-19 Thread riku . voipio
-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 75 +-- linux-user/syscall_defs.h | 11 +++ 2 files changed, 84 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e404a32..366b695 100644

[Qemu-devel] [PULL for-2.0 1/7] linux-user/signal.c: Correct error path for AArch64 do_rt_sigreturn

2014-03-19 Thread riku . voipio
is permitted and does nothing). Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index 24c91f3..209855e 100644

[Qemu-devel] [PULL for-2.0 3/7] linux-user: implement F_[GS]ETOWN_EX

2014-03-19 Thread riku . voipio
From: Andreas Schwab sch...@suse.de F_GETOWN is replaced by F_GETOWN_EX inside the glibc fcntl wrapper Signed-off-by: Andreas Schwab sch...@suse.de Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 36 linux-user

[Qemu-devel] [PULL for-2.0 2/7] linux-user: Don't return uninitialized value for atomic_barrier syscall

2014-03-19 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org QEMU's implementation of the m68k atomic_barrier syscall, like the kernel's, is just a no-op. However we still need to return a result code from it. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi

Re: [Qemu-devel] [PATCH 5/6] linux-user: remove duplicate statement

2014-03-24 Thread Riku Voipio
On Sun, Mar 23, 2014 at 02:58:42PM +0530, Prasad Joshi wrote: Signed-off-by: Prasad Joshi prasadjoshi.li...@gmail.coma Acked-by: Riku Voipio riku.voi...@linaro.org --- linux-user/signal.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index

Re: [Qemu-devel] [PATCH v2] linux-user: make binfmt flag O require P

2014-07-15 Thread Riku Voipio
On Mon, Jul 14, 2014 at 11:37:02PM +0200, Joakim Tjernlund wrote: Joakim Tjernlund/Transmode wrote on 2014/07/14 23:04:51: Why do we need to modify argv[] here when we are building a target_argv[] further down anyway? Because parse_opts() will not do it for me and I cannot figure out

Re: [Qemu-devel] [PATCH] SIOCGIFINDEX: fix typo

2014-07-15 Thread Riku Voipio
On Fri, Jul 11, 2014 at 03:02:02AM +0200, Joakim Tjernlund wrote: Wrong type was used in ioctl definition. Thanks, Applied to linux-user Signed-off-by: Joakim Tjernlund joakim.tjernl...@transmode.se --- However, this does not fix my dhcp problem: jocke-ppc ~ # busybox udhcpc -v Adapter

Re: [Qemu-devel] [PATCH 3/4] alloca one extra byte sockets

2014-07-15 Thread Riku Voipio
On Fri, Jul 11, 2014 at 05:18:03PM +0200, Joakim Tjernlund wrote: target_to_host_sockaddr() may increase the lenth with 1 byte for AF_UNIX sockets so allocate 1 extra byte. Thanks, applied to linux-user tree Signed-off-by: Joakim Tjernlund joakim.tjernl...@transmode.se ---

Re: [Qemu-devel] [PATCH 1/2 v3] qemu-user: Impl. setsockopt(SO_BINDTODEVICE)

2014-07-15 Thread Riku Voipio
On Sat, Jul 12, 2014 at 03:47:06PM +0200, Joakim Tjernlund wrote: Signed-off-by: Joakim Tjernlund joakim.tjernl...@transmode.se Thanks, applied to linux-user tree, Riku --- linux-user/syscall.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/linux-user/syscall.c

Re: [Qemu-devel] [PATCH 2/2 v3] linux-user: handle AF_PACKET sockaddrs in target_to_host_sockaddr

2014-07-15 Thread Riku Voipio
On Sat, Jul 12, 2014 at 03:47:07PM +0200, Joakim Tjernlund wrote: Implement conversion of the AF_PACKET sockaddr subtype in target_to_host_sockaddr. Thanks, Applied to linux-user tree, Riku Signed-off-by: Joakim Tjernlund joakim.tjernl...@transmode.se --- linux-user/syscall.c | 7

Re: [Qemu-devel] [PATCH v2 06/10] linux-user/main.c: __kernel_cmpxchg set env-CF directly

2014-07-15 Thread Riku Voipio
On Thu, Jul 10, 2014 at 04:50:03PM +0100, Alex Bennée wrote: As we only need to manipulate the single flag do it directly though env. Acked-by: Riku Voipio riku.voi...@linaro.org Signed-off-by: Alex Bennée alex.ben...@linaro.org --- v2: - remove unused cpsr - the direct flag

Re: [Qemu-devel] [PATCH v2 04/10] target-arm: replace cpsr/xpsr/pstate_read calls

2014-07-15 Thread Riku Voipio
. For the linux-user part, Acked-by: Riku Voipio riku.voi...@linaro.org Signed-off-by: Alex Bennée alex.ben...@linaro.org -- v2 - include xpsr_read conversions - checkpatch fixes diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 60777fe..577e1d3 100644 --- a/linux-user/elfload.c

Re: [Qemu-devel] [PATCH v2 05/10] arm/nwfps: replace cpsr_write with set_condition_codes

2014-07-15 Thread Riku Voipio
On Thu, Jul 10, 2014 at 04:50:02PM +0100, Alex Bennée wrote: This is a pre-cursor to removing the cpsr_write function completely from the code base. set_condition_codes() only affects the integer condition flags. Acked-by: Riku Voipio riku.voi...@linaro.org Signed-off-by: Alex Bennée

Re: [Qemu-devel] [PATCH v2 07/10] target-arm: remove last users of cpsr_write

2014-07-15 Thread Riku Voipio
On Thu, Jul 10, 2014 at 04:50:04PM +0100, Alex Bennée wrote: And use the new machinery to to save and restore program state. The old cpsr_write function did some special handling for mode switches which has been moved into the helper function. Again for the linux-user part, Acked-by: Riku

Re: [Qemu-devel] [PATCH v2 08/10] target-arm: remove final users of pstate_write

2014-07-15 Thread Riku Voipio
On Thu, Jul 10, 2014 at 04:50:05PM +0100, Alex Bennée wrote: This converts all users of pstate_write to use the common state save/restore functionality. Acked-by: Riku Voipio riku.voi...@linaro.org Signed-off-by: Alex Bennée alex.ben...@linaro.org diff --git a/linux-user/signal.c b/linux

Re: [Qemu-devel] [PATCH] linux-user: Add binfmt wrapper

2014-07-15 Thread Riku Voipio
On Mon, Jul 14, 2014 at 05:38:49PM +0200, Joakim Tjernlund wrote: Alexander Graf ag...@suse.de wrote on 2014/07/14 17:21:33: On 14.07.14 16:38, Joakim Tjernlund wrote: The popular binfmt-wrapper patch adds an additional executable which mangle argv suitable for binfmt flag P. In a

[Qemu-devel] [PULL for-2.1 0/5] linux-user fixes for 2.1

2014-07-15 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org The following changes since commit 0a9934eef166836c8100fce72f7f837cb8b2ed2b: Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2014-07-14 17:01:45 +0100) are available in the git repository at: git://git.linaro.org

[Qemu-devel] [PULL for-2.1 3/5] linux-user: handle AF_PACKET sockaddrs in target_to_host_sockaddr

2014-07-15 Thread riku . voipio
From: Joakim Tjernlund joakim.tjernl...@transmode.se Implement conversion of the AF_PACKET sockaddr subtype in target_to_host_sockaddr. Signed-off-by: Joakim Tjernlund joakim.tjernl...@transmode.se Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi

[Qemu-devel] [PULL for-2.1 1/5] SIOCGIFINDEX: fix typo

2014-07-15 Thread riku . voipio
From: Joakim Tjernlund joakim.tjernl...@transmode.se Wrong type was used in ioctl definition. Signed-off-by: Joakim Tjernlund joakim.tjernl...@transmode.se Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/ioctls.h | 2 +- 1

[Qemu-devel] [PULL for-2.1 4/5] alloca one extra byte sockets

2014-07-15 Thread riku . voipio
From: Joakim Tjernlund joakim.tjernl...@transmode.se target_to_host_sockaddr() may increase the lenth with 1 byte for AF_UNIX sockets so allocate 1 extra byte. Signed-off-by: Joakim Tjernlund joakim.tjernl...@transmode.se Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku

[Qemu-devel] [PULL for-2.1 2/5] qemu-user: Impl. setsockopt(SO_BINDTODEVICE)

2014-07-15 Thread riku . voipio
From: Joakim Tjernlund joakim.tjernl...@transmode.se Signed-off-by: Joakim Tjernlund joakim.tjernl...@transmode.se Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 19 +++ 1 file changed, 19

[Qemu-devel] [PULL for-2.1 5/5] linux-user: use TARGET_SA_ONSTACK in get_sigframe

2014-07-15 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org As reported by Laurent, which should use TARGET_SA_ONSTACK on arm, microblaze and openrisc targets like we do on all others. Practical matter is minimal as for almost all archs SA_ONSTACK is 0x0800: http://lxr.free-electrons.com/ident?i=SA_ONSTACK

Re: [Qemu-devel] [PATCH] linux-user: Add binfmt wrapper

2014-07-16 Thread Riku Voipio
On Tue, Jul 15, 2014 at 05:11:48PM +0200, Joakim Tjernlund wrote: Riku Voipio riku.voi...@iki.fi wrote on 2014/07/15 16:12:26: On Mon, Jul 14, 2014 at 05:38:49PM +0200, Joakim Tjernlund wrote: Alexander Graf ag...@suse.de wrote on 2014/07/14 17:21:33: On 14.07.14 16:38, Joakim Tjernlund

Re: [Qemu-devel] [Qemu-ppc] [PATCH 4/4] ppc: remove excessive logging

2014-07-16 Thread Riku Voipio
On Sat, Jul 12, 2014 at 04:06:09PM +0200, Joakim Tjernlund wrote: Alexander Graf ag...@suse.de wrote on 2014/07/12 12:41:05: On 12.07.14 12:40, Peter Maydell wrote: On 12 July 2014 10:39, Alexander Graf ag...@suse.de wrote: On 12.07.14 10:58, Peter Maydell wrote: On 12 July 2014

Re: [Qemu-devel] [Bug 1344320] Re: qemu-aarch64 cannot execute glibc

2014-07-25 Thread Riku Voipio
On Tue, Jul 22, 2014 at 10:22:15PM -, Peter Maydell wrote: On 22 July 2014 20:46, Richard Henderson r...@twiddle.net wrote: On 07/21/2014 10:37 AM, Peter Maydell wrote: It's trying to measure clock cycles required to perform the startup relocations. That's a neat trick, given that

Re: [Qemu-devel] [PULL 00/24] Linux-user updates

2014-08-18 Thread Riku Voipio
On 15 August 2014 20:49, Peter Maydell peter.mayd...@linaro.org wrote: On 15 August 2014 12:01, riku.voi...@linaro.org wrote: A usual set of improvements and bugfixes. The binfmt flag addition is an ABI break so endusers need to update their binfmt registering scripts. Ugh, really? I didn't

Re: [Qemu-devel] [PULL 00/24] Linux-user updates

2014-08-18 Thread Riku Voipio
On 18 August 2014 15:59, Joakim Tjernlund joakim.tjernl...@transmode.se wrote: Peter Maydell peter.mayd...@linaro.org wrote on 2014/08/18 14:45:49: I'm sure there are cases which don't work; but we should try to find a way which allows us to make those work (with a recommended change to binfmt

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