Re: [Qemu-devel] [PATCH v2 000/108] linux-user: Split do_syscall

2018-06-09 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180610030220.3777-1-richard.hender...@linaro.org Subject: [Qemu-devel] [PATCH v2 000/108] linux-user: Split do_syscall === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1

[Qemu-devel] [Bug 657329] Re: APIC unusable on QEMU

2018-06-09 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/657329 Title: APIC

[Qemu-devel] [PATCH v2 108/108] linux-user: Fold away do_syscall1

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 21 ++--- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 7a94a0b0e9..a4cef22436 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -13204,23

[Qemu-devel] [PATCH v2 105/108] linux-user: Split out timerfd syscalls

2018-06-09 Thread Richard Henderson
This includes timerfd_create, timerfd_gettime, timerfd_settime. All targets define all of these; remove the ifdefs. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 83 +--- 1 file changed, 40 insertions(+), 43 deletions(-) diff --git

[Qemu-devel] [PATCH v2 104/108] linux-user: Split out timer syscalls

2018-06-09 Thread Richard Henderson
This includes timer_create, timer_delete, timer_getoverrun, timer_gettime, and timer_settime. All targets define all of these; remove the ifdefs. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 234 --- 1 file changed, 111 insertions(+), 123

[Qemu-devel] [PATCH v2 099/108] linux-user: Split out signalfd, signalfd4

2018-06-09 Thread Richard Henderson
All targets define signalfd4; remove the ifdefs. In do_signalfd4, unlock the target sigmask earlier and use is_error. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 34 ++ 1 file changed, 18 insertions(+), 16 deletions(-) diff --git

[Qemu-devel] [PATCH v2 097/108] linux-user: Split out eventfd, eventfd2

2018-06-09 Thread Richard Henderson
All targets define eventfd2; remove the ifdefs. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 64 +--- 1 file changed, 37 insertions(+), 27 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 8548f113d1..1158afde27

[Qemu-devel] [PATCH v2 095/108] linux-user: Split out mq syscalls

2018-06-09 Thread Richard Henderson
This includes mq_getsetattr, mq_open, mq_timedreceive, mq_timedsend, and mq_unlink. All targets define these syscalls; remove the ifdefs. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 211 +++ 1 file changed, 112 insertions(+), 99

[Qemu-devel] [PATCH v2 100/108] linux-user: Split out epoll syscalls

2018-06-09 Thread Richard Henderson
This includes epoll_create, epoll_create1, epoll_ctl, epoll_pwait, epoll_wait. All targets define epoll_create1, epoll_ctl, epoll_pwait; remove those ifdefs. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 244 +++ 1 file changed, 128

[Qemu-devel] [PATCH v2 093/108] linux-user: Remove sys_futex

2018-06-09 Thread Richard Henderson
We can use safe_futex in the one place that used sys_futex; no need to define them both. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[Qemu-devel] [PATCH v2 107/108] linux-user: Split out setns, unshare

2018-06-09 Thread Richard Henderson
All targets define both of these; remove the ifdefs. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 32 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index d15f994039..7a94a0b0e9 100644

[Qemu-devel] [PATCH v2 092/108] linux-user: Split out futex, utimensat

2018-06-09 Thread Richard Henderson
At the same time, merge do_futex into the new function. All targets define utimensat; remove the ifdef. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 161 ++- 1 file changed, 81 insertions(+), 80 deletions(-) diff --git

[Qemu-devel] [PATCH v2 096/108] linux-user: Split out splice, tee, vmsplice

2018-06-09 Thread Richard Henderson
All targets define all of these; remove the ifdefs. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 117 +++ 1 file changed, 64 insertions(+), 53 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[Qemu-devel] [PATCH v2 103/108] linux-user: Split out atomic_cmpxchg_32

2018-06-09 Thread Richard Henderson
At the same time, make it atomic. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 47 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index f898e70e98..5d60872587 100644 ---

[Qemu-devel] [PATCH v2 094/108] linux-user: Split out inotify syscalls

2018-06-09 Thread Richard Henderson
This includes inotify_add_watch, inotify_init, inotify_init1, and inotify_rm_watch. At the same time, merge in the useless wrappers around the libc functions. If host inotify_init1 is not available, use inotify_init if flags == 0. Signed-off-by: Richard Henderson --- linux-user/syscall.c |

[Qemu-devel] [PATCH v2 090/108] linux-user: Fix clock_nanosleep

2018-06-09 Thread Richard Henderson
When we switched from using clock_nanosleep to safe_clock_nanosleep, we changed from the user-level API to the kernel-level ABI. These have different senses of the errno value. The special handling for PowerPC is not requied while we're following the kernel ABI. Fixes: 9e518226f43

[Qemu-devel] [PATCH v2 106/108] linux-user: Split out ioprio_get, ioprio_set, kcmp

2018-06-09 Thread Richard Henderson
All targets define all of these; remove the ifdefs. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 49 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[Qemu-devel] [PATCH v2 091/108] linux-user: Split out set_tid_address, tgkill, tkill

2018-06-09 Thread Richard Henderson
All targets define set_tid_address; remove the ifdef. Use the bogus syscall method to supply the host syscall. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 37 ++--- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git

[Qemu-devel] [PATCH v2 083/108] linux-user: Split out mincore

2018-06-09 Thread Richard Henderson
All targets define mincore; remove the ifdef. At the same time, fix two bugs in the implementation: (1) The pages to check need not be readable, only valid. (2) The third argument is an output vector, which (2a) needs to be writable, and (2b) sized properly. Signed-off-by: Richard Henderson ---

[Qemu-devel] [PATCH v2 089/108] linux-user: Split out clock syscalls

2018-06-09 Thread Richard Henderson
This includes clock_getres, clock_gettime, clock_nanosleep, clock_settime. All targets define all of these; remove the ifdefs. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 115 ++- 1 file changed, 60 insertions(+), 55 deletions(-) diff

[Qemu-devel] [PATCH v2 088/108] linux-user: Split out getdomainname, get_thread_area, set_thread_area

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 92 +++- 1 file changed, 49 insertions(+), 43 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index c37af32bb6..285612dfe5 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 079/108] linux-user: Split out getegid32, geteuid32, getgid32, setregid32, setreuid32

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 70 +++- 1 file changed, 50 insertions(+), 20 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index ae591a6523..c8bd13092e 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 102/108] linux-user: Split out atomic_barrier, gethostname

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 49 ++-- 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 91d90c7417..f898e70e98 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 087/108] linux-user: Split out xattr syscalls

2018-06-09 Thread Richard Henderson
This includes fgetxattr, flistxattr, fremovexattr, fsetxattr, getxattr, lgetxattr, listxattr, llistxattr, lremovexattr, lsetxattr, removexattr, setxattr. All targets define all of these; simplify the ifdefs. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 453

[Qemu-devel] [PATCH v2 101/108] linux-user: Split out prlimit64

2018-06-09 Thread Richard Henderson
All targets define prlimit64; remove the ifdefs. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 65 ++-- 1 file changed, 33 insertions(+), 32 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 9ce37c1119..91d90c7417

[Qemu-devel] [PATCH v2 085/108] linux-user: Split out cacheflush, fcntl64, getpagesize, madvise

2018-06-09 Thread Richard Henderson
All targets define madvise; remove the ifdef. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 144 --- 1 file changed, 80 insertions(+), 64 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 5f056cf660..bcddb28947

[Qemu-devel] [PATCH v2 077/108] linux-user: Split out getuid32, getxgid, getxuid, lchown32

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 83 ++-- 1 file changed, 50 insertions(+), 33 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 76a66b56fe..17560ebd41 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 086/108] linux-user: Split out gettid, readahead

2018-06-09 Thread Richard Henderson
All targets define readahead; remove the ifdef. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 37 + 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index bcddb28947..0897449273 100644

[Qemu-devel] [PATCH v2 098/108] linux-user: Split out fallocate, sync_file_range/2

2018-06-09 Thread Richard Henderson
All targets define fallocate; remove the ifdefs. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 101 +++ 1 file changed, 63 insertions(+), 38 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 1158afde27..5edcb39b73

[Qemu-devel] [PATCH v2 072/108] linux-user: Split out getegid, geteuid, getgid, getuid, lchown

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 82 +++- 1 file changed, 58 insertions(+), 24 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 8d6b949b8a..f8e34d28b1 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 074/108] linux-user: Split out fchown, fchownat, setresgid, setresuid

2018-06-09 Thread Richard Henderson
All targets define fchownat; remove the ifdef. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 66 +--- 1 file changed, 43 insertions(+), 23 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 915e1f1a91..75b869fb33

[Qemu-devel] [PATCH v2 084/108] linux-user: Split out fadvise64, fadvise64_64

2018-06-09 Thread Richard Henderson
Generalize the s390x guest advice frobbing to support s390x as a host. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 189 ++- 1 file changed, 113 insertions(+), 76 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[Qemu-devel] [PATCH v2 082/108] linux-user: Split out chown32, setfsgid32, setfsuid32, setgid32, setuid32

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 82 +++- 1 file changed, 58 insertions(+), 24 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index af96cc95d3..fc7f301519 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 066/108] linux-user: Split out arch_prctl

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index ee3a31f06d..e3765069ab 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -7680,6

[Qemu-devel] [PATCH v2 081/108] linux-user: Split out getresgid32, getresuid32, setresgid32, setresuid32

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 93 +++- 1 file changed, 57 insertions(+), 36 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 031033c0ea..af96cc95d3 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 061/108] linux-user: Split out poll, ppoll

2018-06-09 Thread Richard Henderson
All targets define ppoll; remove the ifdef. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 232 +++ 1 file changed, 124 insertions(+), 108 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 600702ea3e..362d315ce8

[Qemu-devel] [PATCH v2 063/108] linux-user: Split out fdatasync, getsid, _sysctl

2018-06-09 Thread Richard Henderson
All targets define fdatasync; remove the ifdef. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 35 +++ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 07fa043965..1907b32499 100644 ---

[Qemu-devel] [PATCH v2 080/108] linux-user: Split out fchown32, getgroups32, setgroups32

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 114 +-- 1 file changed, 67 insertions(+), 47 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index c8bd13092e..031033c0ea 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 075/108] linux-user: Split out chown, getresgid, getresuid

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 94 +++- 1 file changed, 57 insertions(+), 37 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 75b869fb33..c55c414239 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 060/108] linux-user: Split out getdents, getdents64

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 329 ++- 1 file changed, 170 insertions(+), 159 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index f5f21658a8..600702ea3e 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 071/108] linux-user: Split out fstat64, fstatat64, newfstatat, lstat64, stat64

2018-06-09 Thread Richard Henderson
Comment on the odd overlap of fstatat64 and newfstatat, especially with respect to nios2. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 135 --- 1 file changed, 89 insertions(+), 46 deletions(-) diff --git a/linux-user/syscall.c

[Qemu-devel] [PATCH v2 059/108] linux-user: Split out fchdir, getpgid, llseek, personality

2018-06-09 Thread Richard Henderson
Given that we use _LARGEFILE_SOURCE and _FILEOFFSET_BITS == 64, there is no need to special-case llseek on the host side; always use lseek. Define _llseek in terms of llseek, rather than the other way around. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 81

[Qemu-devel] [PATCH v2 078/108] linux-user: Split out osf_getsysinfo, osf_setsysinfo, osf_sigprocmask

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 323 ++- 1 file changed, 162 insertions(+), 161 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 17560ebd41..ae591a6523 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 056/108] linux-user: Split out clone, exit_group, fsync

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 70 ++-- 1 file changed, 42 insertions(+), 28 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 1c3a4590fb..41facf4b44 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 068/108] linux-user: Split out capget, capset

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 156 --- 1 file changed, 86 insertions(+), 70 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 1e1ac8defd..c906719152 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 057/108] linux-user: Split out modify_ldt, setdomainname, uname

2018-06-09 Thread Richard Henderson
At the same time, merge do_modify_ldt into the new function. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 123 +++ 1 file changed, 66 insertions(+), 57 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[Qemu-devel] [PATCH v2 076/108] linux-user: Split out setfsgid, setfsuid, setgid, setuid

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 33 - 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index c55c414239..76a66b56fe 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c

[Qemu-devel] [PATCH v2 053/108] linux-user: Split out swapoff, sysinfo, vhangup, wait4

2018-06-09 Thread Richard Henderson
All targets define swapoff; remove the ifdef. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 140 +++ 1 file changed, 76 insertions(+), 64 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 87374014b1..a0fb4a

[Qemu-devel] [PATCH v2 073/108] linux-user: Split out getgroups, setgroups, setregid, setreuid

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 107 +-- 1 file changed, 63 insertions(+), 44 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index f8e34d28b1..915e1f1a91 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 055/108] linux-user: Split out ipc syscalls

2018-06-09 Thread Richard Henderson
This is msgctl, msgget, msgrcv, msgsnd, shmat, shmctl, shmdt, shmget, semctl, semget, semop. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 154 ++- 1 file changed, 110 insertions(+), 44 deletions(-) diff --git a/linux-user/syscall.c

[Qemu-devel] [PATCH v2 067/108] linux-user: Split out getcwd, pread64, pwrite64, sigaltstack

2018-06-09 Thread Richard Henderson
All targets define pread64 and pwrite64; remove the ifdefs. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 88 1 file changed, 56 insertions(+), 32 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[Qemu-devel] [PATCH v2 046/108] linux-user: Split out 7 syscalls

2018-06-09 Thread Richard Henderson
Handle getpeername, getsockname, getsockopt, listen, recv, recvfrom, recvmsg. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 98 +++- 1 file changed, 70 insertions(+), 28 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c

[Qemu-devel] [PATCH v2 054/108] linux-user: Split out ipc

2018-06-09 Thread Richard Henderson
At the same time, merge do_ipc into the new function. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 193 ++- 1 file changed, 82 insertions(+), 111 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[Qemu-devel] [PATCH v2 070/108] linux-user: Split out ftruncate64, truncate64, ugetrlimit, vfork

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 133 +++ 1 file changed, 70 insertions(+), 63 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 39e416db0b..c2dc7131bb 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 062/108] linux-user: Split out flock, preadv, pwritev, readv, writev

2018-06-09 Thread Richard Henderson
All targets define preadv and pwritev; remove the ifdefs. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 135 --- 1 file changed, 77 insertions(+), 58 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[Qemu-devel] [PATCH v2 045/108] linux-user: Split out accept, accept4, bind, connect

2018-06-09 Thread Richard Henderson
All targets define accept4; remove the ifdef. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 52 ++-- 1 file changed, 36 insertions(+), 16 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index d50c84614e..155da4f523

[Qemu-devel] [PATCH v2 069/108] linux-user: Split out sendfile, sendfile64

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 92 +++- 1 file changed, 48 insertions(+), 44 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index c906719152..39e416db0b 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 058/108] linux-user: Split out adjtimex, clock_adjtime, vm86

2018-06-09 Thread Richard Henderson
All targets define clock_adjtime; remove the ifdef. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 85 +--- 1 file changed, 49 insertions(+), 36 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[Qemu-devel] [PATCH v2 052/108] linux-user: Unwrap TARGET_NR_syscall early

2018-06-09 Thread Richard Henderson
Unwrapping early produces a much nicer log output. Disallow recursive syscall, as per ARM and MIPS. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 31 ++- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/linux-user/syscall.c

[Qemu-devel] [PATCH v2 044/108] linux-user: Split out socketcall

2018-06-09 Thread Richard Henderson
At the same time, merge do_socketcall into the new function. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 194 +-- 1 file changed, 97 insertions(+), 97 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[Qemu-devel] [PATCH v2 051/108] linux-user: Split out fstat, lstat, stat

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 129 +++ 1 file changed, 82 insertions(+), 47 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index c8fc7fc908..4f6c01092b 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 064/108] linux-user: Split out sched syscalls

2018-06-09 Thread Richard Henderson
This includes sched_getaffinity, sched_getparam, sched_get_priority_max, sched_get_priority_min, sched_getscheduler, sched_rr_get_interval, sched_setaffinity, sched_setparam, sched_setscheduler, sched_yield. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 281

[Qemu-devel] [PATCH v2 050/108] linux-user: Split out getitimer, setitimer, syslog

2018-06-09 Thread Richard Henderson
All targets define syslog; remove the ifdef. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 155 ++- 1 file changed, 79 insertions(+), 76 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 46c7c485fd..c8fc7fc908

[Qemu-devel] [PATCH v2 032/108] linux-user: Split out rt_sigqueueinfo, rt_sigtimedwait, rt_tgsigqueueinfo

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 129 ++- 1 file changed, 67 insertions(+), 62 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 6869a0db47..94dc773b4c 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 065/108] linux-user: Split out getcpu, nanosleep, prctl

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 214 +++ 1 file changed, 114 insertions(+), 100 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 84f21634c8..ee3a31f06d 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 048/108] linux-user: Split out getrandom, shutdown, setsockopt, socket, socketpair

2018-06-09 Thread Richard Henderson
All targets define getrandom; remove the ifdef. Define a stub if the host __NR_getrandom is not defined. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 90 ++-- 1 file changed, 62 insertions(+), 28 deletions(-) diff --git

[Qemu-devel] [PATCH v2 049/108] linux-user: Fix stub gettid

2018-06-09 Thread Richard Henderson
A "proper" implementation of the stub would assign ENOSYS to errno and return -1. As it is, the subsequent get_error will return whatever garbage value was in errno. Use the bogus syscall method for defining the stub function. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 13

[Qemu-devel] [PATCH v2 031/108] linux-user: Split out rt_sigpending, rt_sigsuspend, sigpending, sigsuspend

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 176 +-- 1 file changed, 101 insertions(+), 75 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index cc818ea65e..6869a0db47 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 047/108] linux-user: Split out recvmmsg, send, sendmmsg, sendmsg, sendto

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 68 1 file changed, 50 insertions(+), 18 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 98a982f83f..977f61610c 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 043/108] linux-user: Split out getpriority, setpriority

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 46 +++- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 86583988c4..6d8d2eb780 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 042/108] linux-user: Split out fstatfs, fstatfs64, statfs, statfs64

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 193 --- 1 file changed, 125 insertions(+), 68 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index df8422cd3a..86583988c4 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 029/108] linux-user: Split out rt_sigaction, sigaction

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 325 ++- 1 file changed, 165 insertions(+), 160 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index d78288258a..cdb4dd5bb4 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 040/108] linux-user: Split out mlock, mlockall, munlock, munlockall

2018-06-09 Thread Richard Henderson
All targets define all of these; remove the ifdefs. Merge target_to_host_mlockall_arg into its only caller. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 62 ++-- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git

[Qemu-devel] [PATCH v2 039/108] linux-user: Split out mprotect, mremap, msync, munmap

2018-06-09 Thread Richard Henderson
All targets define all of these; remove the ifdefs. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 61 ++-- 1 file changed, 36 insertions(+), 25 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[Qemu-devel] [PATCH v2 028/108] linux-user: Split out getpgrp, getppid, setsid

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 36 ++-- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 8e13a16e91..d78288258a 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 041/108] linux-user: Split out fchmod, fchmodat, ftruncate, truncate

2018-06-09 Thread Richard Henderson
All targets define fchmodat; remove the ifdef. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 58 ++-- 1 file changed, 40 insertions(+), 18 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index f79aebe869..df8422cd3a

[Qemu-devel] [PATCH v2 034/108] linux-user: Split out getrlimit, getrusage, gettimeofday, settimeofday

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 117 ++- 1 file changed, 61 insertions(+), 56 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index ac3592d776..4c5292efed 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 035/108] linux-user: Split out select, pselect6, newselect

2018-06-09 Thread Richard Henderson
All targets define pselect6; remove the ifdef. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 251 ++- 1 file changed, 130 insertions(+), 121 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 4c5292efed..326323e377

[Qemu-devel] [PATCH v2 038/108] linux-user: Split out mmap, mmap2, reboot, swapon

2018-06-09 Thread Richard Henderson
All targets define swapon; remove the ifdef. Add a comment noting the incorrect implementation of mmap2. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 142 --- 1 file changed, 81 insertions(+), 61 deletions(-) diff --git

[Qemu-devel] [PATCH v2 020/108] linux-user: Split out mount, umount

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 118 --- 1 file changed, 55 insertions(+), 63 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 3d3983a504..844e771488 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 036/108] linux-user: Split out symlink, symlinkat

2018-06-09 Thread Richard Henderson
All targets define symlinkat; remove the ifdef. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 64 +++- 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 326323e377..39d8a70d7d

[Qemu-devel] [PATCH v2 037/108] linux-user: Split out readlink, readlinkat

2018-06-09 Thread Richard Henderson
All targets define readlinkat; remove the ifdef. Unify the two with do_readlinkat so that we do not replicate the /proc/self/exe handling. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 96 1 file changed, 43 insertions(+), 53

[Qemu-devel] [PATCH v2 033/108] linux-user: Split out rt_sigreturn, sethostname, setrlimit, sigreturn

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 85 +++- 1 file changed, 52 insertions(+), 33 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 94dc773b4c..ac3592d776 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 019/108] linux-user: Split out getpid, getxpid, lseek

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 39 +++ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index d32034ce38..3d3983a504 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 027/108] linux-user: Split out chroot, dup2, dup3, fcntl, setpgid, umask

2018-06-09 Thread Richard Henderson
All targets define dup3; remove the ifdef. If !CONFIG_DUP3, fall back to dup2 when flags == 0. This will help emulation of new targets that do not define the dup2 syscall, using dup3 as the syscall backing the dup2 posix function. Signed-off-by: Richard Henderson --- linux-user/syscall.c |

[Qemu-devel] [PATCH v2 026/108] linux-user: Split out ioctl

2018-06-09 Thread Richard Henderson
At the same time, merge do_ioctl into the new function. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 184 ++- 1 file changed, 94 insertions(+), 90 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[Qemu-devel] [PATCH v2 030/108] linux-user: Split out rt_sigprocmask, sgetmask, sigprocmask, ssetmask

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 294 +++ 1 file changed, 158 insertions(+), 136 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index cdb4dd5bb4..cc818ea65e 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 016/108] linux-user: Split out link, linkat

2018-06-09 Thread Richard Henderson
All targets define linkat; remove the ifdef. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 66 +++- 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index a146b696fd..936c7a7484

[Qemu-devel] [PATCH v2 025/108] linux-user: Split out acct, pipe, pipe2, times, umount2

2018-06-09 Thread Richard Henderson
All targets define pipe2 and umount2; remove the ifdefs. Merge do_pipe2 into its only user. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 148 +-- 1 file changed, 88 insertions(+), 60 deletions(-) diff --git a/linux-user/syscall.c

[Qemu-devel] [PATCH v2 021/108] linux-user: Split out alarm, pause, stime, utime, utimes

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 155 ++- 1 file changed, 93 insertions(+), 62 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 844e771488..d5f7519e62 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 024/108] linux-user: Split out dup, mkdir, mkdirat, rmdir

2018-06-09 Thread Richard Henderson
All targets define mkdirat; remove the ifdef. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 90 +--- 1 file changed, 60 insertions(+), 30 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e0a5d86956..f22d45d2cb

[Qemu-devel] [PATCH v2 012/108] linux-user: Split out open, openat

2018-06-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 58 +--- 1 file changed, 38 insertions(+), 20 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index aa6c4e1577..a4d0f2720f 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH v2 022/108] linux-user: Split out access, faccessat, futimesat, kill, nice, sync, syncfs

2018-06-09 Thread Richard Henderson
All targets define faccessat and syncfs; remove the ifdefs. Fix the missing flags parameter to faccessat. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 143 +++ 1 file changed, 91 insertions(+), 52 deletions(-) diff --git

[Qemu-devel] [PATCH v2 023/108] linux-user: Split out rename, renameat, renameat2

2018-06-09 Thread Richard Henderson
All targets define renameat2; remove the ifdefs. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 101 +++ 1 file changed, 53 insertions(+), 48 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 6729a960ea..e0a5d86956

[Qemu-devel] [PATCH v2 015/108] linux-user: Split out creat, fork, waitid, waitpid

2018-06-09 Thread Richard Henderson
All targets define waitid; remove the ifdef. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 104 +++ 1 file changed, 65 insertions(+), 39 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index f51cc7e937..a146b696fd

[Qemu-devel] [PATCH v2 011/108] linux-user: Split out execve

2018-06-09 Thread Richard Henderson
At the same time, fix the repeated re-reading of the argv and env arrays from guest memory. Instead read into a unified array once. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 203 ++- 1 file changed, 106 insertions(+), 97 deletions(-)

[Qemu-devel] [PATCH v2 017/108] linux-user: Split out unlink, unlinkat

2018-06-09 Thread Richard Henderson
All targets define unlinkat; remove the ifdef. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 48 +--- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 936c7a7484..e1b3c7e827

[Qemu-devel] [PATCH v2 018/108] linux-user: Split out chdir, mknod, mknodat, time, chmod

2018-06-09 Thread Richard Henderson
All targets define mknodat; remove the ifdef. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 121 --- 1 file changed, 79 insertions(+), 42 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e1b3c7e827..d32034ce38

[Qemu-devel] [PATCH v2 014/108] linux-user: Split out open_to_handle_at

2018-06-09 Thread Richard Henderson
At the same time, merge do_open_to_handle_at into the new function. All targets define this syscall; remove one of the two ifdefs. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 79 ++-- 1 file changed, 39 insertions(+), 40 deletions(-) diff

[Qemu-devel] [PATCH v2 013/108] linux-user: Split out name_to_handle_at

2018-06-09 Thread Richard Henderson
At the same time, merge do_name_to_handle_at into the new function. All targets define this syscall; remove one of the two ifdefs. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 116 +-- 1 file changed, 58 insertions(+), 58 deletions(-) diff

  1   2   >