[Qemu-devel] [PULL v3 19/22] linux-user: clock_nanosleep errno Handling on PPC

2014-08-22 Thread riku . voipio
generic handling to do this for syscalls with standard return values. Add special case code for clock_nanosleep to handle CR0 properly. Signed-off-by: Tom Musta Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 8 1 file changed, 8 insertions(+) diff --git a

[Qemu-devel] [PULL v3 21/22] linux-user: writev Partial Writes

2014-08-22 Thread riku . voipio
. Signed-off-by: Tom Musta Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 1da216e..ebdc70e 100644 --- a/linux-user/syscall.c

[Qemu-devel] [PULL v3 13/22] linux-user: Conditionally Pass Attribute Pointer to mq_open()

2014-08-22 Thread riku . voipio
the code to properly handle the case when NULL is passed in the arg4 position. Signed-off-by: Tom Musta Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/linux-user/syscall.c b/linux-user

[Qemu-devel] [PULL v3 12/22] linux-user: Make ipc syscall's third argument an abi_long

2014-08-22 Thread riku . voipio
declared as abit_long. In fact, it makes more sense for all of the arguments to be declaried as abi_long (except call). Signed-off-by: Tom Musta Signed-off-by: Riku Voipio --- linux-user/syscall.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/linux-user/syscall.c b

[Qemu-devel] [PULL v3 20/22] linux-user: Support target-to-host translation of mlockall argument

2014-08-22 Thread riku . voipio
Intel platforms (0x1 and 0x2, respectively) Signed-off-by: Tom Musta Signed-off-by: Riku Voipio --- linux-user/aarch64/syscall.h| 2 ++ linux-user/alpha/syscall.h | 2 ++ linux-user/arm/syscall.h| 2 ++ linux-user/cris/syscall.h | 2 ++ linux-user/i386/syscall.h | 2

[Qemu-devel] [PULL v3 15/22] linux-user: Handle NULL sched_param argument to sched_*

2014-08-22 Thread riku . voipio
From: Tom Musta The sched_getparam, sched_setparam and sched_setscheduler system calls take a pointer argument to a sched_param structure. When this pointer is null, errno should be set to EINVAL. Signed-off-by: Tom Musta Signed-off-by: Riku Voipio --- linux-user/syscall.c | 10

[Qemu-devel] [PULL v3 11/22] linux-user: Properly Handle semun Structure In Cross-Endian Situations

2014-08-22 Thread riku . voipio
: Tom Musta Signed-off-by: Riku Voipio --- linux-user/syscall.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 08fdd94..39ab4c7 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -2652,9 +2652,18

[Qemu-devel] [PULL v3 22/22] linux-user: check return value of malloc()

2014-08-22 Thread riku . voipio
From: zhanghailiang Signed-off-by: zhanghailiang Acked-by: Riku Voipio Signed-off-by: Riku Voipio --- linux-user/syscall.c | 4 1 file changed, 4 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index ebdc70e..7ff7c21 100644 --- a/linux-user/syscall.c +++ b/linux

[Qemu-devel] [PULL v3 14/22] linux-user: Detect Negative Message Sizes in msgsnd System Call

2014-08-22 Thread riku . voipio
From: Tom Musta The msgsnd system call takes an argument that describes the message size (msgsz) and is of type size_t. The system call should set errno to EINVAL in the event that a negative message size is passed. Signed-off-by: Tom Musta Reviewed-by: Peter Maydell Signed-off-by: Riku

[Qemu-devel] [PULL v3 17/22] linux-user: Move get_ppc64_abi

2014-08-22 Thread riku . voipio
Musta Signed-off-by: Riku Voipio --- linux-user/elfload.c| 9 - linux-user/ppc/target_cpu.h | 10 ++ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 60777fe..bea803b 100644 --- a/linux-user/elfload.c +++ b

[Qemu-devel] linux-user: enabling binfmt P flag

2014-08-25 Thread Riku Voipio
Hi, After weekend, I think the solution to using the P flag is to go back to Joakim's original patch: http://lists.gnu.org/archive/html/qemu-devel/2014-07/msg02269.html With this, we get: If you continue to use qemu-x-static in your binfmt_misc registration, nothing changes - both old and new q

Re: [Qemu-devel] linux-user: enabling binfmt P flag

2014-08-25 Thread Riku Voipio
On Mon, Aug 25, 2014 at 11:14:58AM +0200, Alexander Graf wrote: > > > On 25.08.14 11:09, Riku Voipio wrote: > > Hi, > > > > After weekend, I think the solution to using the P flag is to > > go back to Joakim's original patch: > > > > ht

Re: [Qemu-devel] linux-user: enabling binfmt P flag

2014-08-25 Thread Riku Voipio
On Mon, Aug 25, 2014 at 02:46:21PM +0200, Alexander Graf wrote: > > > On 25.08.14 14:42, Riku Voipio wrote: > > On Mon, Aug 25, 2014 at 11:14:58AM +0200, Alexander Graf wrote: > >> > >> > >> On 25.08.14 11:09, Riku Voipio wrote: > >>> Hi, &g

Re: [Qemu-devel] linux-user: enabling binfmt P flag

2014-08-25 Thread Riku Voipio
Hi, On Mon, Aug 25, 2014 at 03:39:19PM +0200, Joakim Tjernlund wrote: > Then consider when you run a LXC without P flag. Please remember that your usecase of running Qemu in LXC is a new feature, never before supported. Adding new features is always nice. However, it must not happen with expense

Re: [Qemu-devel] linux-user: enabling binfmt P flag

2014-08-25 Thread Riku Voipio
On Mon, Aug 25, 2014 at 04:30:40PM +0200, Joakim Tjernlund wrote: > Riku Voipio wrote on 2014/08/25 15:55:55: > > > > Hi, > > > > On Mon, Aug 25, 2014 at 03:39:19PM +0200, Joakim Tjernlund wrote: > > > Then consider when you run a LXC without P flag. > &

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

2014-08-26 Thread Riku Voipio
Hi Paul, On Sun, Jun 15, 2014 at 05:18:29PM +0100, Paul Burton wrote: > Implement support for the name_to_handle_at and open_by_handle_at > syscalls, allowing their use by the target program. What was your testcase for these syscalls? I usually use LTP for testing syscalls, but there is no testc

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

2014-08-28 Thread Riku Voipio
Hi, On Tue, Aug 26, 2014 at 03:21:30PM +0100, Paul Burton wrote: > On Tue, Aug 26, 2014 at 03:30:41PM +0300, Riku Voipio wrote: > > On Sun, Jun 15, 2014 at 05:18:29PM +0100, Paul Burton wrote: > > > Implement support for the name_to_handle_at and open_by_handle_at > > &g

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 Acked-by: Riku Voipio > --- > linux-user/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) &g

Re: [Qemu-devel] [Bug 1317090] Re: qemu fails on ELF files with no section headers

2014-05-09 Thread Riku Voipio
Hi Craig, On Wed, May 07, 2014 at 03:53:38PM +0100, Peter Maydell wrote: > On 7 May 2014 15:48, Peter Maydell wrote: > > On 7 May 2014 15:34, Paul Jimenez <1317...@bugs.launchpad.net> wrote: > >> Bug description: > >> Using the latest version of qemu-user-static from trusty, 2.0.0+dfsg- > >>

Re: [Qemu-devel] [PATCH] linux-user: Return correct errno for unsupported netlink socket

2014-05-09 Thread Riku Voipio
Hi, On Mon, May 05, 2014 at 08:04:45PM -0700, Ed Swierk wrote: > 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). Thanks, looks good - applied to linux-user tree. > Signed-of

Re: [Qemu-devel] QEMU build broken

2014-05-09 Thread Riku Voipio
Hi, On 8 May 2014 17:54, Peter Maydell wrote: > On 8 May 2014 15:47, Brad Smith wrote: > > The following commit broke the build of QEMU.. > > > > linux-user: remove configure option for setting uname release > > > > > http://git.qemu.org/?p=qemu.git;a=commit;h=e586822a58b6609edb5ea929e8a4aa394d

Re: [Qemu-devel] [Bug 1317090] Re: qemu fails on ELF files with no section headers

2014-05-09 Thread Riku Voipio
On Fri, May 09, 2014 at 09:20:54AM +0100, Peter Maydell wrote: > On 9 May 2014 09:14, Riku Voipio wrote: > > Hi Craig, > > > > On Wed, May 07, 2014 at 03:53:38PM +0100, Peter Maydell wrote: > >> Original 2011 patch: > >> http://lists.gnu.org/archive/

Re: [Qemu-devel] [PATCH v5] linux-user: Let user specify random seed

2014-10-23 Thread Riku Voipio
On Wed, Oct 22, 2014 at 03:17:33PM +0200, Magnus Reftel wrote: > On Tue, Oct 14, 2014 at 5:18 PM, Magnus Reftel wrote: > > linux-user uses the rand function for generating the value of the AT_RANDOM > > elf > > aux vector entry, and explicitly seeds the random number generator with the > > curren

[Qemu-devel] [PATCH] linux-user: Fix fault address truncation AArch64

2014-10-23 Thread riku . voipio
From: Riku Voipio On AArch64 the si_addr field of siginfo_t is truncated to 32 bits because the fault address passes through an uint32_t variable. This is fixed by changing the variable to uint64_t. v2 by Riku - follow Peters suggestion and drop the addr variable since its only used once in the

[Qemu-devel] [PULL 3/3] elf: take phdr offset into account when calculating the program load address

2014-11-03 Thread riku . voipio
From: Jonas Maebe The first program header does not necessarily start at offset 0. This change corresponds to what the Linux kernel does in load_elf_binary(). Signed-off-by: Jonas Maebe Signed-off-by: Riku Voipio --- linux-user/elfload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[Qemu-devel] [PULL 0/3] linux-user changes for 2.2

2014-11-03 Thread riku . voipio
From: Riku Voipio The following changes since commit 0a2923f8488498000eec54871456aa64a4391da4: tcg/mips: fix store softmmu slow path (2014-11-02 13:30:00 +0100) are available in the git repository at: git://git.linaro.org/people/riku.voipio/qemu.git tags/pull-linux-user-20141101 for you

[Qemu-devel] [PULL 2/3] linux-user: Fix fault address truncation AArch64

2014-11-03 Thread riku . voipio
From: Riku Voipio On AArch64 the si_addr field of siginfo_t is truncated to 32 bits because the fault address passes through an uint32_t variable. Follow Peters suggestion and drop the uint32_t variable since its only used once in the Aarch64 loop. Reported-by: Amanieu d'Antras Review

[Qemu-devel] [PULL 1/3] linux-user: Let user specify random seed

2014-11-03 Thread riku . voipio
From: Magnus Reftel This patch introduces the -seed command line option and the QEMU_RAND_SEED environment variable for setting the random seed, which is used for the AT_RANDOM ELF aux entry. Signed-off-by: Magnus Reftel Reviewed-by: Eric Blake Signed-off-by: Riku Voipio --- linux-user

Re: [Qemu-devel] linux-user: enabling binfmt P flag

2014-09-01 Thread Riku Voipio
On Mon, Sep 01, 2014 at 10:12:18AM +0100, Peter Maydell wrote: > On 1 September 2014 09:51, Paolo Bonzini wrote: > > Il 29/08/2014 20:01, Peter Maydell ha scritto: > >> [cc'ing MJT for more distro opinion since I think fundamentally > >> the choice we ought to make upstream is "what's not going to

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 figu

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 > --- > > However, this does not fix my dhcp problem: > > jocke-ppc ~ # busybox udhcpc -v > Adapter index 24 > MAC fe:22:

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 > --- > linux-user/syscall.c | 6 +++--- > 1 file

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 Thanks, applied to linux-user tree, Riku > --- > linux-user/syscall.c | 19 +++ > 1 file changed, 19 insertions(+) > > diff --git a/linux-user/syscall.c b/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 > --- > linux-user/syscall.c | 7 +++ > linux-user/sysca

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 > Signed-off-by: Alex Bennée > > --- > > v2: > - remove unused cpsr > - the direct flag setting seems a

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

2014-07-15 Thread Riku Voipio
t; fiddling. For the linux-user part, Acked-by: Riku Voipio > Signed-off-by: Alex Bennée > > -- > > v2 > - include xpsr_read conversions > - checkpatch fixes > > diff --git a/linux-user/elfload.c b/linux-user/elfload.c > index 60777fe..577e1d3 100644 > --- a

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

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 > Signed-off-by: Alex Bennée > > diff --git a/linux-user/signal.c b/linux-user/signal.c > inde

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

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

2014-07-15 Thread riku . voipio
From: Riku Voipio 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/people/r

[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 Implement conversion of the AF_PACKET sockaddr subtype in target_to_host_sockaddr. Signed-off-by: Joakim Tjernlund Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 7 +++ linux-user/syscall_defs.h | 10 ++ 2 files

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

2014-07-15 Thread riku . voipio
From: Joakim Tjernlund Wrong type was used in ioctl definition. Signed-off-by: Joakim Tjernlund Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/ioctls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index

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

2014-07-15 Thread riku . voipio
From: Joakim Tjernlund 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 Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 6 +++--- 1 file changed, 3 insertions(+), 3

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

2014-07-15 Thread riku . voipio
From: Joakim Tjernlund Signed-off-by: Joakim Tjernlund Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 5a272d3..dcf1323 100644 --- a/linux

[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 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 Reported-by: Laurent

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

2014-07-15 Thread Riku Voipio
On Tue, Jul 15, 2014 at 05:11:48PM +0200, Joakim Tjernlund wrote: > Riku Voipio wrote on 2014/07/15 16:12:26: > > On Mon, Jul 14, 2014 at 05:38:49PM +0200, Joakim Tjernlund wrote: > > > Alexander Graf wrote on 2014/07/14 17:21:33: > > > > On 14.07.14 16:38, Joakim

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 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 wrote: > > >> On 12.07.14 10:58, Peter Maydell wrote: > > >>> On 12 July 2014 01:39, Alexan

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

Re: [Qemu-devel] [PATCH] /proc/self/maps content is not correct for a guest

2014-08-05 Thread Riku Voipio
Hi, The patch in patchwork doesn't apply, even with a bit of editing. You need to send the patch to list with git send-email instead of including the patch inline. We have docs at: http://wiki.qemu.org/Contribute/SubmitAPatch Also, please include the description of the patch in the commit messag

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

2014-08-05 Thread Riku Voipio
Hi Paul, On Fri, Jun 27, 2014 at 04:30:34PM +0300, Riku Voipio wrote: > On Sat, Jun 21, 2014 at 11:52:55PM +0100, Paul Burton wrote: > > From: Paul Burton > > > > This series fixes a number of bugs in QEMUs linux-user support, some > > specific to targetting the M

Re: [Qemu-devel] [PATCH] linux-user: /proc/self/maps content

2014-08-05 Thread Riku Voipio
Hi, On Tue, Aug 05, 2014 at 03:10:07PM +0400, Mikhail Ilyin wrote: > Build /proc/self/maps doing a match against guest memory translation table. > Output only that map records which are valid for guest memory layout. This is clear improvement, for most archs. But seems aarch64, openrisc still lea

Re: [Qemu-devel] [PATCH] linux-user: Add missing unlock_user_struct to timer_create.

2014-08-06 Thread Riku Voipio
On Sun, Aug 03, 2014 at 09:45:38AM +1000, Erik de Castro Lopo wrote: > Signed-off-by: Erik de Castro Lopo Thanks, applied to linux-user tree. > --- > linux-user/syscall.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/linux-user/syscall.c b/linux-user/syscall.c > index a50229d..5f22

[Qemu-devel] [PATCH] linux-user: redirect openat calls

2014-08-06 Thread riku . voipio
From: Riku Voipio While Mikhail fixed /proc/self/maps, it was noticed openat calls are not redirected currently. Some archs don't have open at all, so openat needs to be redirected. Fix this by consolidating open/openat code to do_openat - open is implemented using openat(AT_FDCWD, ... ),

Re: [Qemu-devel] [PATCH] linux-user: /proc/self/maps content

2014-08-06 Thread Riku Voipio
arg4)); > > I believe OpenRISC case looks the same. Thanks for looking into it. I just sent a patch that adds preprocessing to openat, and seems to clear the issue for both aarch64 and OpenRISC. Riku > > On 05.08.2014 15:47, Riku Voipio wrote: > >Hi, > > > &g

Re: [Qemu-devel] [PATCH 0/2] linux-user: Support prctl PR_GET/SET_NAME

2012-03-21 Thread Riku Voipio
Hi, looks like I'll be busy for the rest of the of the month :/ Riku On Tue, Mar 20, 2012 at 11:47:01AM +, Peter Maydell wrote: > Ping^3 (past the six-week mark now...) > > -- PMM > > On 8 March 2012 14:20, Peter Maydell wrote: > > Ping^2 ? > > > > -- PMM > > > > On 22 February 2012 22:55

Re: [Qemu-devel] [PATCH v1 1/1] syscall: #ifdef newer RLIMIT_* codes

2012-03-27 Thread Riku Voipio
Hi, Do we really need this? 2.6.12 came out in 2005, even oldest supported RHEL (5) is minimum 2.6.18 these days. Riku On Tue, Mar 27, 2012 at 10:08:03AM -0500, Meador Inge wrote: > Ping. > > On 02/20/2012 01:38 PM, Andreas Färber wrote: > > Am 20.02.2012 19:26, schrieb Meador Inge: > >> Commit

Re: [Qemu-devel] [PATCH] linux-user: add pselect6 syscall support

2011-06-03 Thread riku voipio
On 05/18/2011 03:14 AM, Mike Frysinger wrote: Some architectures (like Blackfin) only implement pselect6 (and skip select/newselect). So add support for it using existing newselect code. There is a blackfin qemu? Anyways, with this patch pselect01 ltp testcase starts failing. Looks like (at l

Re: [Qemu-devel] [PATCH] target-arm: Move VLD/VST multiple into helper functions

2011-06-06 Thread riku voipio
On 06/03/2011 11:47 PM, Aurelien Jarno wrote: On Mon, May 02, 2011 at 05:01:24PM +0100, Peter Maydell wrote: On 20 April 2011 15:52, Peter Maydell wrote: Move VLD/VST multiple into helper functions, as some cases can generate more TCG ops than the maximum per-instruction limit and certainly mo

[Qemu-devel] [PATCH 01/18] Don't translate pointer when in restore_sigcontext

2011-06-20 Thread riku . voipio
From: Mike McCormack Fixes crash in i386 when user emulation base address is non-zero. 21797 rt_sigreturn(8,1082124603,1,0,1082126048,1082126248)Exit reason and status: signal 11 Signed-off-by: Mike McCormack Signed-off-by: Riku Voipio --- linux-user/signal.c |4 ++-- 1 files changed

[Qemu-devel] [PATCH 06/18] m68k-semi.c: Use correct check for failure of do_brk()

2011-06-20 Thread riku . voipio
From: Peter Maydell In the m68k semihosting implementation of HOSTED_INIT_SIM, use the correct check for whether do_brk() has failed -- it does not return -1 but the previous value of the break limit. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- m68k-semi.c |5 +++-- 1

[Qemu-devel] [PATCH 00/18] pending linux-user patches

2011-06-20 Thread riku . voipio
From: Riku Voipio Hi, All included patches except mine have already been on the list. These patches should be ready for pull, but giving last minute chance for people to object. The following changes since commit eb47d7c5d96060040931c42773ee07e61e547af9 hw/9118.c: Implement active-low

[Qemu-devel] [PATCH 02/18] linux-user: Fix the load of ELF files that have no "useful" symbol

2011-06-20 Thread riku . voipio
start _start: mov #1, r3 trapa #40 // syscall(__NR_exit) nop The bug appears when the log (option "-d") is enabled. Signed-off-by: Cédric VINCENT Signed-off-by: Yves JANIN Signed-off-by: Riku Voipio --- linux-user/elfload.c | 34 +++

[Qemu-devel] [PATCH 05/18] arm-semi.c: Use correct check for failure of do_brk()

2011-06-20 Thread riku . voipio
From: Peter Maydell In the ARM semihosting implementation of SYS_HEAPINFO, use the correct check for whether do_brk() has failed -- it does not return -1 but the previous value of the break limit. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- arm-semi.c |5 +++-- 1 files

[Qemu-devel] [PATCH 12/18] linux-user: syscall should use sanitized arg1

2011-06-20 Thread riku . voipio
From: Juan Quintela Looking at the other architectures, we should be using "how" not "arg1". Signed-off-by: Juan Quintela [peter.mayd...@linaro.org: remove unnecessary initialisation of how] Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/sysc

[Qemu-devel] [PATCH 07/18] linux-user: Fix the computation of the requested heap size

2011-06-20 Thread riku . voipio
{ printf("success\n"); exit(EXIT_SUCCESS); } else { exit(EXIT_FAILURE); } } Signed-off-by: Cédric VINCENT Reviewed-by: Christophe Guillon Signed-off-by: Riku Voipio --- linux-user/syscall.c | 11 ++- 1 fil

[Qemu-devel] [PATCH 13/18] flatload: end_code was only used in a debug message

2011-06-20 Thread riku . voipio
From: Juan Quintela Just unfold its definition in only use. Signed-off-by: Juan Quintela [peter.mayd...@linaro.org: fixed typo in the debug code, added parentheses to fix precedence issue] Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/flatload.c |5 ++--- 1

[Qemu-devel] [PATCH 04/18] linux-user: Don't use MAP_FIXED in do_brk()

2011-06-20 Thread riku . voipio
ped but at different address" as an error case instead. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 29 - 1 files changed, 20 insertions(+), 9 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 5

[Qemu-devel] [PATCH 08/18] linux-user: add pselect6 syscall support

2011-06-20 Thread riku . voipio
From: Mike Frysinger Some architectures (like Blackfin) only implement pselect6 (and skip select/newselect). So add support for it. Signed-off-by: Mike Frysinger Signed-off-by: Riku Voipio --- linux-user/syscall.c | 149 +++-- 1 files changed

[Qemu-devel] [PATCH 11/18] syscall: really return ret code

2011-06-20 Thread riku . voipio
From: Juan Quintela We assign ret with the error code, but then return 0 unconditionally. Signed-off-by: Juan Quintela Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/linux-user

[Qemu-devel] [PATCH 03/18] linux-user: Handle images where lowest vaddr is not page aligned

2011-06-20 Thread riku . voipio
ced with a binary created by the Google Go toolchain for ARM. We fix the bug by refactoring the "probe for guest base" code out into its own self-contained function. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/elfload.c | 130 -

[Qemu-devel] [PATCH 10/18] linuxload: id_change was a write only variable

2011-06-20 Thread riku . voipio
From: Juan Quintela Signed-off-by: Juan Quintela Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/linuxload.c | 25 + 1 files changed, 1 insertions(+), 24 deletions(-) diff --git a/linux-user/linuxload.c b/linux-user/linuxload.c index ac8c486

[Qemu-devel] [PATCH 15/18] linux-user: Bump do_syscall() up to 8 syscall arguments

2011-06-20 Thread riku . voipio
variables being set and never used. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/main.c| 37 - linux-user/qemu.h|3 ++- linux-user/syscall.c |8 +--- 3 files changed, 31 insertions(+), 17 deletions(-) diff --git a

[Qemu-devel] [PATCH 09/18] linux-user: Define AT_RANDOM to support target stack protection mechanism.

2011-06-20 Thread riku . voipio
user stack. * Add a small test program. Signed-off-by: Cédric VINCENT Signed-off-by: Laurent ALFONSI Signed-off-by: Riku Voipio --- linux-user/elfload.c | 21 - 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/linux-user/elfload.c b/linux-user/elflo

[Qemu-devel] [PATCH 18/18] linux-user: Fix sync_file_range on 32bit mips

2011-06-20 Thread riku . voipio
From: Riku Voipio As noticed while looking at "Bump do_syscall() up to 8 syscall arguments" patch, sync_file_range uses a pad argument on 32bit mips. Deal with it by reading the correct arguments when on mips. Signed-off-by: Riku Voipio --- linux-user/syscall.c |5 + 1 fil

[Qemu-devel] [PATCH 17/18] linux-user/signal.c: Remove unused fenab

2011-06-20 Thread riku . voipio
From: Peter Maydell Remove fenab as it is only written, never used. Add a FIXME comment about the discrepancy between our behaviour and that of the Linux kernel for this routine. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/signal.c |7 +-- 1 files changed

[Qemu-devel] [PATCH 14/18] flatload: memp was a write-only variable

2011-06-20 Thread riku . voipio
From: Juan Quintela Signed-off-by: Juan Quintela Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/flatload.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/linux-user/flatload.c b/linux-user/flatload.c index 6fb78f5..1062da3 100644 --- a

[Qemu-devel] [PATCH 16/18] linux-user/signal.c: Remove only-ever-set variable fpu_save_addr

2011-06-20 Thread riku . voipio
can never fail.) Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/signal.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index cb7138f..4edd974 100644 --- a/linux-user/signal.c +++ b/linux

Re: [Qemu-devel] [PATCH] add QEMU_LD_PREFIX environment variable

2011-07-28 Thread Riku Voipio
On Sat, Jul 23, 2011 at 07:47:49AM +0200, josch wrote: > This could be avoided by setting the proposed environment variable > QEMU_LD_PREFIX to the just > created debian rootfs. As mentioned earlier, the usage of the -L option > is not possible in this scenario because qemu-user is only implicitly

Re: [Qemu-devel] mips-linux-user and POSIX IPC

2011-07-28 Thread Riku Voipio
On Tue, Jul 26, 2011 at 08:56:38AM +, Holger Freyther wrote: > For semctl qemu enters through the do_ipc method, it appears > to be that the 'variable' ptr is really a ptr (to the stack) and > needs to be dereferenced. The below snippet seems to fix that > issue for me. > My next problem is w

Re: [Qemu-devel] Bug#632192: [PATCH] add QEMU_LD_PREFIX environment variable

2011-07-30 Thread Riku Voipio
On Fri, Jul 29, 2011 at 05:21:59PM +0200, Johannes Schauer wrote: > So if we agree on using environment variables to pass options to > qemu-user we next need to agree on how to name the options. > The following commandline arguments exist (in order as they are checked > in linux-user/main.c) and

Re: [Qemu-devel] [PATCH 2/2] linux-user: Add -stracefile to log strace elsewhere than stderr

2012-05-31 Thread Riku Voipio
On Fri, Jun 01, 2012 at 01:49:26AM +0100, Peter Maydell wrote: > On 31 May 2012 20:37, Richard Henderson wrote: > >  void gemu_log(const char *fmt, ...) > >  { > >     va_list ap; > > > >     va_start(ap, fmt); > > -    vfprintf(stderr, fmt, ap); > > +    vfprintf(strace_log_file, fmt, ap); > >  

[Qemu-devel] [PATCH 11/17] linux-user: reserve 4GB of vmem for 32-on-64

2012-04-06 Thread riku . voipio
fault value to also make use of it! Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- linux-user/main.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index aa95db3..23ad357 100644 --- a/linux-user/main.c +++ b/

[Qemu-devel] [PATCH 17/17] Userspace ARM BE8 support

2012-04-06 Thread riku . voipio
.c to satisfy checkpatch ] Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- disas.c| 18 +- linux-user/elfload.c |1 + linux-user/main.c | 34 +- linux-user/qemu.h |1 + target-arm/cpu.h |

[Qemu-devel] [PATCH 04/17] linux-user: add struct old_dev_t compat

2012-04-06 Thread riku . voipio
: Alexander Graf Signed-off-by: Riku Voipio --- linux-user/syscall_types.h |4 ++-- thunk.c| 28 thunk.h| 28 3 files changed, 58 insertions(+), 2 deletions(-) diff --git a/linux-user

[Qemu-devel] [PATCH 14/17] linux-user/arm/syscall_nr.h: Add syscall number for ppoll

2012-04-06 Thread riku . voipio
isn't present.) Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/arm/syscall_nr.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-user/arm/syscall_nr.h b/linux-user/arm/syscall_nr.h index 7f05879..5356395 100644 --- a/linux-user/arm/sy

[Qemu-devel] [PATCH 13/17] linux-user: Add support for prctl PR_GET_NAME and PR_SET_NAME

2012-04-06 Thread riku . voipio
From: Peter Maydell Add support for the prctl options PR_GET_NAME and PR_SET_NAME, which take or return a name in a 16 byte buffer pointed to by arg2. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 24 1 files changed, 24

[Qemu-devel] [PATCH 09/17] linux-user: take RESERVED_VA into account for g2h_valid()

2012-04-06 Thread riku . voipio
hat aren't accessible from the guest process's point of view. Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- cpu-all.h |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index 9621c3c..4512518 100644 --- a/cpu-all.h ++

[Qemu-devel] [PATCH 07/17] linux-user: Add ioctl for BLKBSZGET

2012-04-06 Thread riku . voipio
From: Alexander Graf This patch adds the ioctl wrapper definition for BLKBSZGET. Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- linux-user/ioctls.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 5b70f92

[Qemu-devel] [PATCH 06/17] linux-user: add BLKSSZGET ioctl wrapper

2012-04-06 Thread riku . voipio
From: Alexander Graf This patch adds an ioctl definition for BLKSSZGET. Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- linux-user/ioctls.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index fd8b7bb..5b70f92

[Qemu-devel] [PATCH 00/17] linux-user: pending patches

2012-04-06 Thread riku . voipio
From: Riku Voipio The following patches are to sent in the pull request for linux-user. As usual, the are also available in the git repository at: git://git.linaro.org/people/rikuvoipio/qemu.git linux-user-for-upstream Riku Alexander Graf (8): linux-user: implement device mapper ioctls

[Qemu-devel] [PATCH 01/17] linux-user: improve fake /proc/self/stat making `ps` not segfault.

2012-04-06 Thread riku . voipio
/proc mounted. Signed-off-by: Fabio Erculiani Acked-by: Alexander Graf Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- linux-user/syscall.c | 19 +++ 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[Qemu-devel] [PATCH 10/17] linux-user: resolve reserved_va vma downwards

2012-04-06 Thread riku . voipio
af [minor changes to get it to apply -- PMM] Signed-off-by: Riku Voipio --- linux-user/main.c |1 + linux-user/mmap.c | 35 --- linux-user/qemu.h |1 + 3 files changed, 26 insertions(+), 11 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c ind

[Qemu-devel] [PATCH 16/17] elf.h: Update EF_ARM_ constants to newer ABI versions

2012-04-06 Thread riku . voipio
Signed-off-by: Riku Voipio --- elf.h | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/elf.h b/elf.h index 36bcac4..e1422b8 100644 --- a/elf.h +++ b/elf.h @@ -538,6 +538,27 @@ typedef struct { #define EF_ALIGN8 0x40/* 8-bit

[Qemu-devel] [PATCH 12/17] linux-user/syscall.c: Fix indentation in prctl handling

2012-04-06 Thread riku . voipio
From: Peter Maydell Clean up the odd indentation of this switch statement before we double its size by adding new cases to it. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 29 +++-- 1 files changed, 15 insertions(+), 14

[Qemu-devel] [PATCH 08/17] linux-user: fix fallocate

2012-04-06 Thread riku . voipio
From: Alexander Graf Fallocate gets off_t parameters passed in, so we should also read them out accordingly. Signed-off-by: Alexander Graf --- v1 -> v2: - unbreak 64-bit guests Signed-off-by: Riku Voipio --- linux-user/syscall.c |5 + 1 files changed, 5 insertions(+)

[Qemu-devel] [PATCH 03/17] linux-user: implement device mapper ioctls

2012-04-06 Thread riku . voipio
From: Alexander Graf This patch implements all ioctls currently implemented by device mapper, enabling us to run dmsetup and kpartx inside of linux-user. Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- linux-user/ioctls.h| 32 ++ linux-user/syscall.c | 226

[Qemu-devel] [PATCH 05/17] linux-user: fix BLK ioctl arguments

2012-04-06 Thread riku . voipio
From: Alexander Graf Some BLK ioctls passed sizeof(x) into a macro that already did sizeof() on the passed in argument, rendering the size information inside the ioctl be the size of the host default integer type. Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- linux-user

[Qemu-devel] [PATCH 02/17] linux-user: target_argv is placed on ts->bprm->argv and can't be freed()

2012-04-06 Thread riku . voipio
Fabio Erculiani Acked-by: Alexander Graf Signed-off-by: Alexander Graf Signed-off-by: Riku Voipio --- linux-user/main.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 962677e..2570140 100644 --- a/linux-user/main.c +++ b/linu

[Qemu-devel] [PATCH 15/17] arm-linux-user: fix elfload.c's AT_HWCAP to reflect cpu features.

2012-04-06 Thread riku . voipio
From: Benoit Canet The cpu capabilities passed by the elf loader in AT_HWCAP where a constant. Make AT_HWCAP reflect the emulated cpu features in order to give correct clues to eglibc. Riku Voipio: fixed to apply to current head Fix : [Bug 887516] [NEW] VFP support reported for the PXA270

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