[PATCH] MAINTAINERS: update linux-user maintainer

2020-07-02 Thread riku . voipio
From: Riku Voipio I haven't been active for a while. Pass the maintainer hat forward to Laurent, who has done a stellar job filling in. Signed-off-by: Riku Voipio --- MAINTAINERS | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git MAINTAINERS MAINTAINERS index dec25

Re: [Qemu-devel] [PATCH 0/2] linux-user: Fix race between threads in page_unprotect()

2018-01-19 Thread Riku Voipio
Hi Laurent, On Mon, Jan 15, 2018 at 01:52:32PM +0100, Laurent Vivier wrote: > Le 15/01/2018 à 13:48, Peter Maydell a écrit : > > On 28 November 2017 at 14:35, Peter Maydell > > wrote: > >> If multiple guest threads in user-mode emulation write to a > >> page which QEMU has marked read-only becau

[Qemu-devel] [PULL 11/15] linux-user/s390x: Mask si_addr for SIGSEGV

2017-11-20 Thread riku . voipio
https://bugs.launchpad.net/qemu/+bug/1705118 Reviewed-by: Laurent Vivier Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/main.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/linux-user/main.c b/linux-user

[Qemu-devel] [PULL 13/15] linux-user/sparc: Put address for data faults where linux-user expects it

2017-11-20 Thread riku . voipio
ginfo. Reviewed-by: Laurent Vivier Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- target/sparc/mmu_helper.c | 8 1 file changed, 8 insertions(+) diff --git a/target/sparc/mmu_helper.c b/target/sparc/mmu_helper.c index 126ea5e3ee..d5b6c1e48c 1

[Qemu-devel] [PULL 10/15] linux-user: return EINVAL from prctl(PR_*_SECCOMP)

2017-11-20 Thread riku . voipio
returning EINVAL from both seccomp prctl calls. This is the error returned by the kernel when seccomp support is disabled. Fixes: https://bugs.launchpad.net/qemu/+bug/1726394 Reviewed-by: Laurent Vivier Signed-off-by: James Cowgill Signed-off-by: Riku Voipio --- linux-user/syscall.c | 6 ++ 1

[Qemu-devel] [PULL 04/15] linux-user/hppa: Fix typo for TARGET_NR_epoll_wait

2017-11-20 Thread riku . voipio
From: Helge Deller Reviewed-by: Laurent Vivier Signed-off-by: Helge Deller Message-Id: <20170311100543.ga29...@ls3530.fritz.box> Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/hppa/syscall_nr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[Qemu-devel] [PULL 14/15] linux-user: Handle rt_sigaction correctly for SPARC

2017-11-20 Thread riku . voipio
hieu-Daudé Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 27 +++ 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index f31b853bb7..11c9116c4a 100644 --- a/linux-user/syscall.c +

[Qemu-devel] [PULL 03/15] linux-user/hppa: Fix cpu_clone_regs

2017-11-20 Thread riku . voipio
From: Richard Henderson By failing to return from the syscall in the child, the child issues another clone syscall and hilarity ensues. Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/hppa/target_cpu.h | 4 1 file changed, 4 insertions(+) diff --git a/linux

[Qemu-devel] [PULL 15/15] linux-user: Fix calculation of auxv length

2017-11-20 Thread riku . voipio
rather than merely having a comment saying we need to do that. Fixes: https://bugs.launchpad.net/qemu/+bug/1728116 Reviewed-by: Richard Henderson Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/elfload.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) d

[Qemu-devel] [PULL 06/15] linux-user/hppa: Fix TARGET_F_RDLCK, TARGET_F_WRLCK, TARGET_F_UNLCK

2017-11-20 Thread riku . voipio
From: Helge Deller Signed-off-by: Helge Deller Signed-off-by: Richard Henderson Message-ID: <20170311175019.ga7...@ls3530.fritz.box> Signed-off-by: Riku Voipio --- linux-user/syscall_defs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/syscall_defs.h b/linu

[Qemu-devel] [PULL 08/15] linux-user/syscall.c: Handle SH4's exceptional alignment for p{read, write}64

2017-11-20 Thread riku . voipio
From: James Clarke Fixes: https://bugs.launchpad.net/qemu/+bug/1716767 Reviewed-by: Laurent Vivier Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Tested-By: John Paul Adrian Glaubitz Signed-off-by: James Clarke Signed-off-by: Riku Voipio --- linux-user/syscall.c | 36

[Qemu-devel] [PULL 12/15] linux-user/ppc: Report correct fault address for data faults

2017-11-20 Thread riku . voipio
ult. This fixes the test case in https://bugs.launchpad.net/qemu/+bug/1077116 for ppc, ppc64 and ppc64le. Reviewed-by: Laurent Vivier Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/main.

[Qemu-devel] [PULL 05/15] linux-user/hppa: Fix TARGET_MAP_TYPE

2017-11-20 Thread riku . voipio
From: Helge Deller TARGET_MAP_TYPE needs to be 0x03 instead of 0x0f on the hppa architecture, otherwise it conflicts with MAP_FIXED which is 0x04. Signed-off-by: Helge Deller Signed-off-by: Richard Henderson Message-ID: <20170311175019.ga7...@ls3530.fritz.box> Signed-off-by: Riku

[Qemu-devel] [PULL 02/15] linux-user/hppa: Fix TARGET_SA_* defines

2017-11-20 Thread riku . voipio
From: Helge Deller Reviewed-by: Laurent Vivier Signed-off-by: Helge Deller Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/syscall_defs.h | 8 1 file changed, 8 insertions(+) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index

[Qemu-devel] [PULL 01/15] linux-user: Restrict usage of sa_restorer

2017-11-20 Thread riku . voipio
From: Richard Henderson Reading and writing to an sa_restorer member that isn't supposed to exist corrupts user memory. Introduce TARGET_ARCH_HAS_SA_RESTORER, similar to the kernel's __ARCH_HAS_SA_RESTORER. Reported-by: Helge Deller Signed-off-by: Richard Henderson Signed-off-by: R

[Qemu-devel] [PULL 07/15] linux-user: Handle TARGET_MAP_STACK and TARGET_MAP_HUGETLB

2017-11-20 Thread riku . voipio
: <20170311183016.ga20...@ls3530.fritz.box> [rth: Drop MAP_STACK instead of translating it, since it is ignored in the kernel anyway. Fix tabs to spaces.] Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/syscall.c | 31 --- linu

[Qemu-devel] [PULL 00/15] late linux-user fixes for 2.11

2017-11-20 Thread riku . voipio
From: Riku Voipio The following changes since commit b0fbe46ad82982b289a44ee2495b59b0bad8a842: Update version for v2.11.0-rc0 release (2017-11-07 16:05:28 +) are available in the git repository at: git://git.linaro.org/people/riku.voipio/qemu.git tags/pull-linux-user-20171120 for you

[Qemu-devel] [PULL 09/15] linux-user: fix 'finshed' typo in comment

2017-11-20 Thread riku . voipio
From: "Emilio G. Cota" Signed-off-by: Emilio G. Cota Signed-off-by: Riku Voipio --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 9268c3ef69..84e123b67b 100644 --- a/linux-user/syscall.c +

Re: [Qemu-devel] [PATCH v2] linux-user: fix is_proc_myself to check the paths via realpath

2017-11-07 Thread Riku Voipio
Hi, On Mon, Nov 06, 2017 at 08:17:44PM +, Zach Riggle wrote: > Ping! What needs to be done to move this forward? My current implementation > is compatible with musl. I'll have a look at it soon. Riku > On Thu, Nov 2, 2017 at 12:36 PM Peter Maydell > wrote: > > > On 28 October 2017 at 06:1

Re: [Qemu-devel] [PATCH 0/4] linux-user: fix various SIGSEGV delivery bugs

2017-11-07 Thread Riku Voipio
On Mon, Nov 06, 2017 at 06:33:22PM +, Peter Maydell wrote: > This patchset fixes most of the problems with delivering SIGSEGV > noted in https://bugs.launchpad.net/qemu/+bug/1705118: > * s390x is missing masking operations on the fault address >passed to the guest in si_addr > * ppc is pa

Re: [Qemu-devel] [PATCH v2] linux-user: return EINVAL from prctl(PR_*_SECCOMP)

2017-11-06 Thread Riku Voipio
On Mon, Nov 06, 2017 at 06:03:51PM +, James Cowgill wrote: > If an application tries to install a seccomp filter using > prctl(PR_SET_SECCOMP), the filter is likely for the target instead of the host > architecture. This will probably cause qemu to be immediately killed when it > executes anoth

Re: [Qemu-devel] [PATCH 2/4] linux-user: fix 'finshed' typo in comment

2017-11-06 Thread Riku Voipio
Applied to linux-user, thanks Riku On Wed, Oct 18, 2017 at 06:01:41PM -0400, Emilio G. Cota wrote: > Signed-off-by: Emilio G. Cota > --- > linux-user/syscall.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/linux-user/syscall.c b/linux-user/syscall.c > index 9d4cc4c..

Re: [Qemu-devel] [PATCH v3] linux-user/syscall.c: Handle SH4's exceptional alignment for p{read, write}64

2017-11-06 Thread Riku Voipio
On Wed, Oct 04, 2017 at 10:38:50AM +0200, John Paul Adrian Glaubitz wrote: > Hi! > > Any chance that this patch gets merged soon? > > Looks like it has been reviewed by at least Richard and Philippe. Sorry, slipped under radar. Applied to linux-user. > Adrian > > On 09/15/2017 09:33 PM, James

Re: [Qemu-devel] [PATCH 0/7] linux-user fixes, mostly for hppa

2017-11-06 Thread Riku Voipio
On Tue, Oct 31, 2017 at 01:53:51PM +0100, Richard Henderson wrote: > I believe these were last posted back in March. > I must claim responsibility for not pinging earlier. Thanks, applied to linux-user > > r~ > > > Helge Deller (5): > linux-user/hppa: Fix TARGET_SA_* defines > linux-user

Re: [Qemu-devel] [PATCH v2] linux-user: fix is_proc_myself to check the paths via realpath

2017-10-27 Thread Riku Voipio
On Thu, Oct 26, 2017 at 04:06:22PM -0500, Zach Riggle wrote: > Friendly ping :) > > I've updated the patch with v2 which addresses the style issue I'll have a look at it soon. > > *Zach Riggle* > > On Tue, Oct 24, 2017 at 10:34 PM, Zach Riggle wrote: > > > Previously, it was possible to get

[Qemu-devel] [PULL 08/10] linux-user: Fix target FS_IOC_GETFLAGS and FS_IOC_SETFLAGS numbers

2017-10-18 Thread riku . voipio
ctls don't work on 32-bit guests on 64-bit hosts (and makes the LTP test 'setxattr03' pass where it did not previously.) Reported-by: pgndev Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/syscall_defs.h | 4 ++-- 1 file ch

[Qemu-devel] [PULL 10/10] linux-user: Fix TARGET_MTIOCTOP/MTIOCGET/MTIOCPOS values

2017-10-18 Thread riku . voipio
Signed-off-by: Riku Voipio --- linux-user/syscall_defs.h | 31 --- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 447915cf80..e405d1d31d 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user

[Qemu-devel] [PULL 06/10] linux-user: Tidy and enforce reserved_va initialization

2017-10-18 Thread riku . voipio
e value in linux-user/arm/, and also document why the special case is required. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell Message-Id: <20170708025030.15845-3-...@twiddle.net> Signed-off-by: Riku Voipio --- linux-user/arm/target_cpu.h | 4 linux-user/main.

[Qemu-devel] [PULL 00/10] linux-user update for 2.11

2017-10-18 Thread riku . voipio
From: Riku Voipio The following changes since commit 40a1e8ac2e10155b5df13a2508ac080b00cd7e23: Merge remote-tracking branch 'remotes/elmarco/tags/vu-pull-request' into staging (2017-10-16 10:22:39 +0100) are available in the git repository at: git://git.linaro.org/people/r

[Qemu-devel] [PULL 07/10] linux-user/sh4: Reduce TARGET_VIRT_ADDR_SPACE_BITS to 31

2017-10-18 Thread riku . voipio
off-by: Riku Voipio --- target/sh4/cpu.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/sh4/cpu.h b/target/sh4/cpu.h index 79f85d3365..123f34783a 100644 --- a/target/sh4/cpu.h +++ b/target/sh4/cpu.h @@ -45,7 +45,11 @@ #define TARGET_PAGE_BITS 12/* 4k

[Qemu-devel] [PULL 05/10] tcg: Fix off-by-one in assert in page_set_flags

2017-10-18 Thread riku . voipio
5-2-...@twiddle.net> Signed-off-by: Riku Voipio --- accel/tcg/translate-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c index c5ce99d549..1b43deb0cd 100644 --- a/accel/tcg/translate-all.c +++ b/accel/tcg/translate-all.c @@ -

[Qemu-devel] [PULL 04/10] linux-user: Allow -R values up to 0xffff0000 for 32-bit ARM guests

2017-10-18 Thread riku . voipio
rmitting the guest space to butt right up against the commpage. Fix the comparison, so that -R values all the way up to 0x work correctly. Reviewed-by: Emilio G. Cota Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/elfload.c | 2 +- 1 file changed, 1 inserti

[Qemu-devel] [PULL 01/10] linux-user: fix O_TMPFILE handling

2017-10-18 Thread riku . voipio
From: Riku Voipio Since O_TMPFILE might differ between guest and host, add it to the bitmask_transtbl. While at it, fix the definitions of O_DIRECTORY etc which should arm32 according to kernel sources. This fixes open14 and openat03 ltp testcases. Fixes: https://bugs.launchpad.net/qemu/+bug

[Qemu-devel] [PULL 02/10] target/m68k, linux-user: manage FP registers in ucontext

2017-10-18 Thread riku . voipio
From: Laurent Vivier Signed-off-by: Laurent Vivier Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/signal.c | 43 +++ 1 file changed, 43 insertions(+) diff --git a/linux-user/signal.c b/linux-user/signal.c index cc0c3fcee9

[Qemu-devel] [PULL 03/10] linux-user: remove duplicate break in syscall

2017-10-18 Thread riku . voipio
From: Carlo Marcelo Arenas Belón likely introduced in 3532fa7402cda16f7b95261b0339c58630051f0b Signed-off-by: Carlo Marcelo Arenas Belón Reviewed-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/syscall.c | 1 - 1 file changed, 1 deletion(-) diff --git a/linux-user/syscall.c b

[Qemu-devel] [PULL 09/10] linux-user/main: support dfilter

2017-10-18 Thread riku . voipio
From: Alex Bennée This adds the -dfilter support to linux-user. There is a minor checkpatch complaint about formatting which I've ignored for aesthetic reasons. Signed-off-by: Alex Bennée Reviewed-by: Laurent Vivier Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio --- linux

Re: [Qemu-devel] [PATCH] linux-user/main: support dfilter

2017-10-17 Thread Riku Voipio
On Tue, Oct 17, 2017 at 11:35:14AM +0100, Alex Bennée wrote: > This adds the -dfilter support to linux-user. There is a minor > checkpatch complaint about formatting which I've ignored for aesthetic > reasons. Applied to linux-user, thanks > Signed-off-by: Alex Bennée > Reviewed-by: Laurent Viv

Re: [Qemu-devel] [PATCH 2/2] linux-user: Fix TARGET_MTIOCTOP/MTIOCGET/MTIOCPOS values

2017-10-16 Thread Riku Voipio
On Thu, Oct 12, 2017 at 07:08:55PM +0200, Laurent Vivier wrote: > Le 12/10/2017 à 18:53, Peter Maydell a écrit : > > On 12 October 2017 at 17:49, Laurent Vivier wrote: > >> Le 12/10/2017 à 17:30, Peter Maydell a écrit : > >>> +#if defined(TARGET_SPARC) || defined(TARGET_MIPS) > >>> +typedef abi_lo

Re: [Qemu-devel] [PATCH 1/2] linux-user: Fix target FS_IOC_GETFLAGS and FS_IOC_SETFLAGS numbers

2017-10-16 Thread Riku Voipio
On Thu, Oct 12, 2017 at 04:30:44PM +0100, Peter Maydell wrote: > We were defining TARGET_FS_IOC_GETFLAGS and TARGET_FS_IOC_SETFLAGS > using the host 'long' type in the size field, which meant that > they had the wrong values if the host and guest had different > sized longs. Switch to abi_long inst

Re: [Qemu-devel] [PATCH v2 0/4] linux-user fixes for va mapping

2017-10-16 Thread Riku Voipio
On Thu, Oct 05, 2017 at 10:35:57AM -0400, Richard Henderson wrote: > Version 1 was back in July, > > https://lists.gnu.org/archive/html/qemu-devel/2017-07/msg02033.html > > > At first I was simply going to add TARGET_SH to the existing > > set of defines that trigger a 31-bit address space.

Re: [Qemu-devel] [PATCH] linux-user: remove duplicate break in syscall

2017-10-16 Thread Riku Voipio
On Mon, Sep 25, 2017 at 09:14:20PM -0700, Carlo Marcelo Arenas Belón wrote: > likely introduced in 3532fa7402cda16f7b95261b0339c58630051f0b > > Signed-off-by: Carlo Marcelo Arenas Belón Applied to linux-user, thanks > --- > linux-user/syscall.c | 1 - > 1 file changed, 1 deletion(-) > > diff

Re: [Qemu-devel] linux-user: refactor socket.h into architecture specific sockbits

2017-10-16 Thread Riku Voipio
On Wed, Oct 11, 2017 at 12:10:04AM -0700, Carlo Arenas wrote: > ping Thanks for your patience > some of the patches already have a Reviewed-by as shown by : > > http://patchwork.ozlabs.org/patch/818378/ Can you send the series without the whitespace-only changes? > On Mon, Sep 25, 2017 at

Re: [Qemu-devel] [PATCH v4 1/1] target/m68k, linux-user: manage FP registers in ucontext

2017-10-16 Thread Riku Voipio
On Thu, Sep 14, 2017 at 06:35:05PM +0200, Laurent Vivier wrote: > Signed-off-by: Laurent Vivier > Reviewed-by: Richard Henderson Applied to linux-user que, thnanks > --- > linux-user/signal.c | 43 +++ > 1 file changed, 43 insertions(+) > > diff --git a

[Qemu-devel] [Bug 1709170] [PATCH] linux-user: fix O_TMPFILE handling

2017-08-08 Thread Riku Voipio
Since O_TMPFILE might differ between guest and host, add it to the bitmask_transtbl. While at it, fix the definitions of O_DIRECTORY etc on arm64, which are identical to arm32 according to kernel sources. This fixes open14 and openat03 ltp testcases. Fixes: https://bugs.launchpad.net/qemu/+bug/17

Re: [Qemu-devel] [Bug 1709170] [NEW] QEMU fails to honor O_TMPFILE

2017-08-08 Thread Riku Voipio
On Mon, Aug 07, 2017 at 08:18:04PM -, Thiago Macieira wrote: > Public bug reported: > > When making a call like > > open("/tmp", O_TMPFILE | O_RDWR); > > under QEMU, we ged -EISDIR. > > Under any kernel 3.11 or later, we are supposed to get an unnamed file > in /tmp. In case the filesyste

[Qemu-devel] [Bug 1709170] Re: QEMU fails to honor O_TMPFILE

2017-08-07 Thread Riku Voipio
Hi Thiago, What is the version of glibc on the targets you are building to? There was an O_TMPFILE bug in older glibc's: https://sourceware.org/bugzilla/show_bug.cgi?id=17912 ** Bug watch added: Sourceware.org Bugzilla #17912 https://sourceware.org/bugzilla/show_bug.cgi?id=17912 -- You rece

Re: [Qemu-devel] [PATCH v5 6/6] target-m68k, linux-user: manage FP registers in ucontext

2017-06-29 Thread Riku Voipio
On Wed, Jun 28, 2017 at 10:44:57PM +0200, Laurent Vivier wrote: > Riku, > > could you ACK this patch, so I will add it in my next pull request for m68k? Whatabout Richard's comment about using cpu_m68k_set_fpcr ? Riku > Thanks, > Laurent > > Le 20/06/2017 à 22:51, Laurent Vivier a écrit : > >

[Qemu-devel] [PULL 15/15] linux-user: add strace support for uinfo structure of rt_sigqueueinfo() and rt_tgsigqueueinfo()

2017-05-31 Thread riku . voipio
commit, it looks like this: 8307 rt_sigqueueinfo(8307,50,{si_signo=50, si_code=SI_QUEUE, si_pid=8307, si_uid=1000, si_sigval=17716762128}) = 0 Signed-off-by: Miloš Stojanović Signed-off-by: Riku Voipio --- linux-user/strace.c | 113 +++- 1 file

[Qemu-devel] [PULL 10/15] linux-user: fix mismatch of lock/unlock_user() invocations in rt_sigqueinfo() syscall

2017-05-31 Thread riku . voipio
From: Miloš Stojanović Change the unlock_user() argument from arg1 to arg3 to match with lock_user(), since arg3 contains the pointer to the siginfo_t structure. Signed-off-by: Miloš Stojanović Signed-off-by: Riku Voipio --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1

[Qemu-devel] [PULL 08/15] linux-user: add tkill(), tgkill() and rt_sigqueueinfo() strace

2017-05-31 Thread riku . voipio
Signed-off-by: Riku Voipio --- linux-user/strace.c| 41 + linux-user/strace.list | 6 +++--- 2 files changed, 44 insertions(+), 3 deletions(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index 8fb1b6e252..f6f76a5bd4 100644 --- a/linux-user

[Qemu-devel] [PULL 13/15] linux-user: add rt_tgsigqueueinfo() strace

2017-05-31 Thread riku . voipio
(7775,7775,50,0x76ffea5c) = 0 Signed-off-by: Miloš Stojanović Signed-off-by: Riku Voipio --- linux-user/strace.c| 15 +++ linux-user/strace.list | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index f6f76a5bd4..779cda1a5e 100644

[Qemu-devel] [PULL 11/15] linux-user: fix argument type declaration of rt_sigqueinfo() syscall

2017-05-31 Thread riku . voipio
Signed-off-by: Riku Voipio --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index de85bce167..3373853bb9 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -274,7 +274,7 @@ _syscall3(int, sys_getdents64

[Qemu-devel] [PULL 07/15] linux-user: add strace for getuid(), gettid(), getppid(), geteuid()

2017-05-31 Thread riku . voipio
ace output used to look like this: 20588 geteuid(64,0,0,4832615888,0,-9151031864016699136) = 1000 After this commit, it looks like this: 20588 geteuid() = 1000 Signed-off-by: Miloš Stojanović Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Riku Voipio --- linux-user/strace.list | 8

[Qemu-devel] [PULL 14/15] linux-user: fix inconsistent spaces in print_siginfo() output

2017-05-31 Thread riku . voipio
reference for this chage. Prior to this commit, typical strace output used to look like this: Signed-off-by: Riku Voipio --- linux-user/strace.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index 779cda1a5e..5fbe067fd5

[Qemu-devel] [PULL 06/15] linux-user: remove all traces of qemu from /proc/self/cmdline

2017-05-31 Thread riku . voipio
From: Andreas Schwab Instead of post-processing the real contents use the remembered target argv. That removes all traces of qemu, including command line options, and handles QEMU_ARGV0. Signed-off-by: Andreas Schwab Signed-off-by: Riku Voipio --- linux-user/syscall.c | 47

[Qemu-devel] [PULL 12/15] linux-user: add support for rt_tgsigqueueinfo() system call

2017-05-31 Thread riku . voipio
: linux-user/syscall.c Signed-off-by: Riku Voipio --- linux-user/syscall.c | 16 1 file changed, 16 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 3373853bb9..925ae11ea6 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -238,6

[Qemu-devel] [PULL 09/15] linux-user: fix ssetmask() system call

2017-05-31 Thread riku . voipio
orset() is also no longer needed. The problem was detected after running LTP test group syscalls for the MIPS EL 32 R2 architecture where the test ssetmask01 failed with exit code 1. The test passes now that the ssetmask() system call is fixed. Signed-off-by: Miloš Stojanović Signed-off-by: Riku V

[Qemu-devel] [PULL 03/15] linux-user: fix fadvise64_64() on ppc

2017-05-31 Thread riku . voipio
From: Laurent Vivier On ppc, advice is arg2, not arg6: long ppc_fadvise64_64(int fd, int advice, u32 offset_high, u32 offset_low, u32 len_high, u32 len_low) Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/syscall.c | 10 ++ 1 file

[Qemu-devel] [PULL 04/15] linux-user: fix inotify

2017-05-31 Thread riku . voipio
byte-swapped to the target endianness. Signed-off-by: Laurent Vivier Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Riku Voipio --- linux-user/syscall.c | 29 + 1 file changed, 29 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[Qemu-devel] [PULL 00/15] Misc linux-user updates

2017-05-31 Thread riku . voipio
From: Riku Voipio The following changes since commit 9964e96dccf7f7c936ee854a795415d19b60: Merge remote-tracking branch 'jasowang/tags/net-pull-request' into staging (2017-05-23 15:01:31 +0100) are available in the git repository at: git://git.linaro.org/people/riku.voipi

[Qemu-devel] [PULL 05/15] linux-user: allocate heap memory for execve arguments

2017-05-31 Thread riku . voipio
eviewed-by: Eric Blake Signed-off-by: Riku Voipio --- linux-user/syscall.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 32aba195c5..c8f6efc89c 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -7985

[Qemu-devel] [PULL 02/15] linux-user: fix eventfd

2017-05-31 Thread riku . voipio
From: Laurent Vivier When a fd is opened using eventfd(), a read provides a 64bit counter in the host byte order, and a write increase the internal counter by the provided 64bit value. Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/syscall.c | 26

[Qemu-devel] [PULL 01/15] linux-user: call fd_trans_target_to_host_data() for write()

2017-05-31 Thread riku . voipio
Signed-off-by: Riku Voipio --- linux-user/syscall.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index cec8428589..b2b563e388 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -7767,7 +7767,17

Re: [Qemu-devel] [PATCH] linux-user: remove all traces of qemu from /proc/self/cmdline

2017-05-19 Thread Riku Voipio
On Mon, Mar 20, 2017 at 12:31:55PM +0100, Andreas Schwab wrote: > Instead of post-processing the real contents use the remembered target > argv. That removes all traces of qemu, including command line options, > and handles QEMU_ARGV0. Applied to Linux-user, thanks Riku > Signed-off-by: Andrea

Re: [Qemu-devel] [PATCH] linux-user: Fix TARGET_MAP* and TARGET_F_??LCK for hppa arch

2017-05-19 Thread Riku Voipio
On Sun, Mar 12, 2017 at 08:17:46AM +1000, Richard Henderson wrote: > On 03/12/2017 03:50 AM, Helge Deller wrote: > >TARGET_MAP_TYPE needs to be 0x03 instead of 0x0f on the hppa > >architecture, otherwise it conflicts with MAP_FIXED which is 0x04. > > > >Add missing TARGET_MAP_STACK and TARGET_MAP_H

Re: [Qemu-devel] [PATCH 0/2] linux-user: fix eventfd()

2017-05-19 Thread Riku Voipio
On Tue, Apr 25, 2017 at 06:32:30PM +0200, Laurent Vivier wrote: > Ping? Applied, thanks. > Laurent > > Le 01/03/2017 à 10:37, Laurent Vivier a écrit : > > This patch series byte-swap the uint64_t data stream > > of a file-descriptor opened with eventfd(). > > > > It allows to pass more LTP tes

Re: [Qemu-devel] [PATCH] maintainers: Add myself as linux-user reviewer

2017-05-11 Thread Riku Voipio
On Wed, May 10, 2017 at 05:39:50PM +0200, Laurent Vivier wrote: > I volunteer to review linux-user patches. > Adding myself will help to not miss some of them. > > Signed-off-by: Laurent Vivier Acked-by: Riku Voipio > --- > MAINTAINERS | 1 + > 1 file changed, 1 inserti

Re: [Qemu-devel] [PATCH v2 7/7] linux-user: Fix mq_open

2017-01-05 Thread Riku Voipio
On Thu, Nov 24, 2016 at 05:08:58PM +0100, Lena Djokic wrote: > If fourth argument is NULL it should be passed without > using lock_user function which would, in that case, return > EFAULT, and system call supports passing NULL as fourth argument. Thanks, applied to linux-user > Signed-off-by: Le

Re: [Qemu-devel] [PATCH v2 5/7] linux-user: Fix readahead

2017-01-05 Thread Riku Voipio
On Thu, Nov 24, 2016 at 05:08:56PM +0100, Lena Djokic wrote: > Calculation of 64-bit offset was not correct for all cases. Thanks, applied to linux-user > Signed-off-by: Lena Djokic > --- > linux-user/syscall.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/linux-use

Re: [Qemu-devel] [PATCH v2 2/7] linux-user: Fix inotify_init1 support

2017-01-05 Thread Riku Voipio
On Thu, Nov 24, 2016 at 05:08:53PM +0100, Lena Djokic wrote: > This commit adds necessary conversion of argument passed to inotify_init1. > inotify_init1 flags can be IN_NONBLOCK and IN_CLOEXEC which rely on O_NONBLOCK > and O_CLOEXEC and those can have different values on different platforms. Tha

Re: [Qemu-devel] [PATCH v2] linux-user: Fix s390x safe-syscall for z900

2017-01-05 Thread Riku Voipio
On Wed, Oct 26, 2016 at 12:08:52PM -0700, Richard Henderson wrote: > The LT instruction was added in the extended immediate facility > introduced with the z9-109 processor. Sorry I missed this during 2.8. This is stable-2.8 material once it opens. Applied to linux-user now, thanks. >

[Qemu-devel] [Bug 902413] Re: qemu-i386-user on ARM host: wine hangs/spins when trying to run anything

2016-11-22 Thread Riku Voipio
You might want to retry wine with qemu-i386-static again now with qemu 2.7, which has a major thread/signal rework done. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/902413 Title: qemu-i386-user o

Re: [Qemu-devel] [PATCH v7 05/10] linux-user: Add support for ustat() syscall

2016-10-21 Thread Riku Voipio
On Thu, Sep 22, 2016 at 06:56:54PM +0200, Aleksandar Markovic wrote: > From: Aleksandar Markovic > > This patch implements Qemu user mode ustat() syscall support. > > Syscall ustat() returns information about a mounted filesystem. > > Its declaration is: > > int ustat(dev_t dev, struct ustat *

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

2016-10-21 Thread riku . voipio
From: Riku Voipio The following changes since commit da158a86c407fa7b9da848b571356a26809d8df9: Merge remote-tracking branch 'remotes/berrange/tags/pull-qcrypto-2016-10-20-1' into staging (2016-10-20 14:46:19 +0100) are available in the git repository at: git://git.linaro.

[Qemu-devel] [PULL v2 21/22] linux-user: added support for pwritev() system call.

2016-10-18 Thread riku . voipio
sizes on different platforms. The input arguments are converted to the appropriate host size when passed to safe_pwritev(). Signed-off-by: Dejan Jovicevic Signed-off-by: Riku Voipio --- linux-user/syscall.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/linux-user/syscall.c b

[Qemu-devel] [PULL v2 22/22] linux-user: disable unicore32 linux-user build

2016-10-18 Thread riku . voipio
From: Riku Voipio In order to cleanup linux-user, we need support for most relatively modern syscalls. unicore32 lacks support for syscalls like epoll_pwait, preventing cleaning up the CONFIG_EPOLL mess. This patch can be reverted when unicore32 starts either supporting the syscalls as defined

[Qemu-devel] [PULL v2 17/22] linux-user: Update ioctls definitions for Mips32

2016-10-18 Thread riku . voipio
From: Aleksandar Markovic Update linux-user/mips/termbits.h with ioctl definitions from kernel file arch/mips/include/uapi/asm/ioctls.h. Signed-off-by: Aleksandar Markovic Signed-off-by: Riku Voipio --- linux-user/mips/termbits.h | 12 1 file changed, 12 insertions(+) diff

[Qemu-devel] [PULL v2 20/22] linux-user: added support for preadv() system call.

2016-10-18 Thread riku . voipio
on different platforms. The input arguments are converted to the appropriate host size when passed to safe_preadv(). Signed-off-by: Dejan Jovicevic Signed-off-by: Riku Voipio --- linux-user/syscall.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/linux-user/syscall.c b/linux

[Qemu-devel] [PULL v2 16/22] linux-user: Update mips_syscall_args[] array in main.c

2016-10-18 Thread riku . voipio
From: Aleksandar Markovic Array mips_syscall_args[] determines number of arguments for each syscall on Mips32. It wasn't updated with newer syscalls. Also, preadv and pwritev have 5 arguments, not 6. Signed-off-by: Aleksandar Markovic Signed-off-by: Riku Voipio --- linux-user/main.c

[Qemu-devel] [PULL v2 19/22] linux-user: Fix fadvise64() syscall support for Mips32

2016-10-18 Thread riku . voipio
Tisma Signed-off-by: Aleksandar Markovic Signed-off-by: Riku Voipio --- linux-user/mips/syscall_nr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/mips/syscall_nr.h b/linux-user/mips/syscall_nr.h index 6819f86..ced3280 100644 --- a/linux-user/mips/syscall_nr.h +

[Qemu-devel] [PULL v2 10/22] linux-user: add RTA_PRIORITY in netlink

2016-10-18 Thread riku . voipio
From: Laurent Vivier Used by fedora21 on ppc64 in the network initialization Signed-off-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e005401..bbdf316 100644 --- a

[Qemu-devel] [PULL v2 18/22] linux-user: Redirect termbits.h for Mips64 to termbits.h for Mips32

2016-10-18 Thread riku . voipio
Mips64 variants in Qemu. This patch makes these two files effectively the same, allowing the mainenance by changing only a single file. (This is already done in the same fashion for some other headers in same directories.) Signed-off-by: Aleksandar Markovic Signed-off-by: Riku Voipio --- linux

[Qemu-devel] [PULL v2 09/22] linux-user: add kcmp() syscall

2016-10-18 Thread riku . voipio
From: Laurent Vivier Signed-off-by: Laurent Vivier Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 3396d4b..e005401 100644 --- a/linux-user

[Qemu-devel] [PULL v2 11/22] linux-user: Don't use alloca() for epoll_wait's epoll event array

2016-10-18 Thread riku . voipio
Signed-off-by: Riku Voipio --- linux-user/syscall.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index bbdf316..fb56fed 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -11796,7 +11796,12 @@ abi_long

[Qemu-devel] [PULL v2 12/22] linux-user: use libc wrapper instead of direct mremap syscall

2016-10-18 Thread riku . voipio
because of the default integer type promotions. Since glibc-2.4 is now a decade old, we can remove this workaround. Signed-off-by: Felix Janda Reviewed-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/mmap.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff

[Qemu-devel] [PULL v2 14/22] linux-user: Add support for clock_adjtime() syscall

2016-10-18 Thread riku . voipio
From: Aleksandar Markovic This patch implements Qemu user mode clock_adjtime() syscall support. The implementation is based on invocation of host's clock_adjtime(). Signed-off-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic Signed-off-by: Riku Voipio --- conf

[Qemu-devel] [PULL v2 13/22] linux-user: Fix definition of target_sigevent for 32-bit guests

2016-10-18 Thread riku . voipio
#x27; fields to 'abi_int'; this will only matter for guests with non-standard integer alignment like m68k. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall_defs.h | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/linux-us

[Qemu-devel] [PULL v2 07/22] linux-user: Remove a duplicate item from strace.list

2016-10-18 Thread riku . voipio
From: Aleksandar Markovic There is a duplicate item in strace.list. It is benign, but it shouldn't be there, since it may lead to confusion and even bugs in the future. It is the only duplicate in strace.list. This patch removes it. Signed-off-by: Aleksandar Markovic Signed-off-by: Riku V

[Qemu-devel] [PULL v2 02/22] linux-user: Add support for ustat() syscall

2016-10-18 Thread riku . voipio
failures of LTP tests ustat01, and ustat02, if executed on Qemu-emulated systems. Signed-off-by: Aleksandar Markovic Signed-off-by: Riku Voipio --- linux-user/syscall.c | 23 +-- linux-user/syscall_defs.h | 6 ++ 2 files changed, 27 insertions(+), 2 deletions(-

[Qemu-devel] [PULL v2 15/22] linux-user: Add support for syncfs() syscall

2016-10-18 Thread riku . voipio
yncfs(). Configure and strace support is included as well. Signed-off-by: Aleksandar Markovic Signed-off-by: Riku Voipio --- configure | 18 ++ linux-user/strace.list | 2 +- linux-user/syscall.c | 5 + 3 files changed, 24 insertions(+), 1 deletion(-) diff --

[Qemu-devel] [PULL v2 08/22] linux-user: sparc64: Use correct target SHMLBA in shmat()

2016-10-18 Thread riku . voipio
://patchwork.ozlabs.org/patch/673339/ Add the accidentally-dropped code. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/sparc64/target_syscall.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/linux-user/sparc64/target_syscall.h b/linux-user/sparc64/target_syscall.h

[Qemu-devel] [PULL v2 03/22] linux-user: Fix mq_open() syscall support

2016-10-18 Thread riku . voipio
From: Aleksandar Markovic Conversion of file creation flags (O_CREAT, ...) from target to host was missing. Also, this patch implements better error handling. Signed-off-by: Aleksandar Markovic Signed-off-by: Riku Voipio --- linux-user/syscall.c | 16 +--- 1 file changed, 9

[Qemu-devel] [PULL v2 05/22] linux-user: Fix socketcall() syscall support

2016-10-18 Thread riku . voipio
stems (uer mode). Signed-off-by: Aleksandar Markovic Signed-off-by: Riku Voipio --- linux-user/strace.c | 39 --- linux-user/syscall.c | 119 -- linux-user/syscall_defs.h | 42 3 files changed, 105 insertions(+

[Qemu-devel] [PULL v2 06/22] linux-user: Fix syslog() syscall support

2016-10-18 Thread riku . voipio
y inserted when needed. Support for Qemu's "-strace" switch for syslog() syscall is included too. LTP tests syslog11 and syslog12 pass with this patch (while fail without it), on any platform. Changes to original patch by Riku Voipio: fixed error paths in TARGET_SYSLOG_ACTION_READ_

[Qemu-devel] [PULL v2 04/22] linux-user: Fix msgrcv() and msgsnd() syscalls support

2016-10-18 Thread riku . voipio
to include ENOMSG. Also, LTP test msgrcv04 will be fixed for some platforms. Signed-off-by: Aleksandar Markovic Reviewed-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

[Qemu-devel] [PULL v2 01/22] linux-user: Add support for adjtimex() syscall

2016-10-18 Thread riku . voipio
ex02, if executed in Qemu user mode. Signed-off-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic Signed-off-by: Riku Voipio --- linux-user/strace.c | 46 + linux-user/strace.list| 3 +- linux-user/syscall.c | 87

[Qemu-devel] [PULL v2 00/22] linux-user changes

2016-10-18 Thread riku . voipio
From: Riku Voipio The following changes since commit 7bf59dfec4234e75e31b3f397374cb5bab1a5b2c: Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.8-20161017' into staging (2016-10-17 12:59:54 +0100) are available in the git repository at: git://git.linaro.org/people/r

Re: [Qemu-devel] [PULL 06/22] linux-user: Fix syslog() syscall support

2016-10-18 Thread Riku Voipio
log() syscall is included too. > > LTP tests syslog11 and syslog12 pass with this patch (while fail without > it), on any platform. > > Signed-off-by: Aleksandar Markovic > Signed-off-by: Riku Voipio > --- > linux-user/strace.c | 72 > +++

[Qemu-devel] [PULL 18/22] linux-user: Redirect termbits.h for Mips64 to termbits.h for Mips32

2016-10-17 Thread riku . voipio
Mips64 variants in Qemu. This patch makes these two files effectively the same, allowing the mainenance by changing only a single file. (This is already done in the same fashion for some other headers in same directories.) Signed-off-by: Aleksandar Markovic Signed-off-by: Riku Voipio --- linux

[Qemu-devel] [PULL 21/22] linux-user: added support for pwritev() system call.

2016-10-17 Thread riku . voipio
sizes on different platforms. The input arguments are converted to the appropriate host size when passed to safe_pwritev(). Signed-off-by: Dejan Jovicevic Signed-off-by: Riku Voipio --- linux-user/syscall.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/linux-user/syscall.c b

  1   2   3   4   5   6   7   8   9   10   >