[Qemu-devel] [PATCH 2/4] linux-user: add clock_settime()

2016-10-25 Thread Dejan Jovicevic
The implementation of the clock_settime() system call emulation is based on converting the timespec structure values from target to host and then calling the clock_settime() syscall on the host. Signed-off-by: Dejan Jovicevic <dejan.jovice...@rt-rk.com> --- linux-user/syscall.

[Qemu-devel] [PATCH 4/4] linux-user: timer_settime fix

2016-10-25 Thread Dejan Jovicevic
Error handling was improved. host_to_target_itimerspec() was invoked with arg2 passed instead of arg4. Signed-off-by: Dejan Jovicevic <dejan.jovice...@rt-rk.com> --- linux-user/syscall.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linu

[Qemu-devel] [PATCH 1/4] linux-user: fix clock_gettime()

2016-10-25 Thread Dejan Jovicevic
and now the syscall behaves appropriately in this situation. Signed-off-by: Dejan Jovicevic <dejan.jovice...@rt-rk.com> --- linux-user/syscall.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 03339ba..e6abfc5 100644 --- a

[Qemu-devel] [PATCH 3/4] linux-user: correct conversion of itimerspec structure

2016-10-25 Thread Dejan Jovicevic
__get_user() and __put_user() have certain advantages over tswapal(). There was also a previous commit for equivalent change for converting structure timespec. Signed-off-by: Dejan Jovicevic <dejan.jovice...@rt-rk.com> --- linux-user/syscall.c | 39 +--

[Qemu-devel] [PATCH 0/4] linux-user: fix timespec and itimerspec related issues, add clock_settime

2016-10-25 Thread Dejan Jovicevic
In this series the clock_gettime() was fixed to behave as intended when not having valid arguments. The emulation for the system call clock_settime() was added. Conversion of itimerspec structure and error handling in timer_settime() syscall were corrected. Dejan Jovicevic (4): linux-user: fix

[Qemu-devel] [PATCH v3 0/2] linux-user: preadv and pwritev emulation support

2016-10-11 Thread Dejan Jovicevic
series the support for preadv and pwritev system call emulation in linux-user mode is implemented. Dejan Jovicevic (2): linux-user: added support for preadv() system call. linux-user: added support for pwritev() system call. linux-user/syscall.c | 30 ++ 1 file chang

[Qemu-devel] [PATCH v3 1/2] linux-user: added support for preadv() system call.

2016-10-11 Thread Dejan Jovicevic
. The input arguments are converted to the appropriate host size when passed to safe_preadv(). Signed-off-by: Dejan Jovicevic <dejan.jovice...@rt-rk.com> --- linux-user/syscall.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c

[Qemu-devel] [PATCH v3 2/2] linux-user: added support for pwritev() system call.

2016-10-11 Thread Dejan Jovicevic
platforms. The input arguments are converted to the appropriate host size when passed to safe_pwritev(). Signed-off-by: Dejan Jovicevic <dejan.jovice...@rt-rk.com> --- linux-user/syscall.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/sys

[Qemu-devel] [PATCH v2 2/2] linux-user: added support for pwritev() system call.

2016-10-06 Thread Dejan Jovicevic
med. This implementation is based on the existing writev implementation. Signed-off-by: Dejan Jovicevic <dejan.jovice...@rt-rk.com> --- linux-user/syscall.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index c7619f6..f34e255 100644 --

[Qemu-devel] [PATCH v2 0/2] linux-user: preadv and pwritev emulation support

2016-10-06 Thread Dejan Jovicevic
lls, as suggested. As the result of these changes, the patch from the v1 that checks the support of pwritev on the host is dropped. In this series the support for preadv and pwritev system call emulation in linux-user mode is implemented. Dejan Jovicevic (2): linux-user: added supp

[Qemu-devel] [PATCH v2 1/2] linux-user: added support for preadv() system call.

2016-10-06 Thread Dejan Jovicevic
med. This implementation is based on the existing readv implementation. Signed-off-by: Dejan Jovicevic <dejan.jovice...@rt-rk.com> --- linux-user/syscall.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 0815f30..c7619f6 100644 --- a/l

[Qemu-devel] [PATCH 0/3] linux-user: preadv and pwritev emulation support

2016-10-06 Thread Dejan Jovicevic
In this series the support for preadv and pwritev system call emulation in linux-user mode is implemented. Also, the configure file is modified to check if both of these system calls are supported on the host. Dejan Jovicevic (3): linux-user: detect pwritev support on configure linux-user

[Qemu-devel] [PATCH 2/3] linux-user: added support for preadv() system call.

2016-10-06 Thread Dejan Jovicevic
This system call performs the same task as the readv system call, with the exception of having the fourth argument, offset, which specifes the file offset at which the input operation is to be performed. This implementation is based on the existing readv implementation. Signed-off-by: Dejan

[Qemu-devel] [PATCH 3/3] linux-user: added support for pwritev() system call.

2016-10-06 Thread Dejan Jovicevic
This system call performs the same task as the writev system call, with the exception of having the fourth argument, offset, which specifes the file offset at which the input operation is to be performed. This implementation is based on the existing writev implementation. Signed-off-by: Dejan

[Qemu-devel] [PATCH 1/3] linux-user: detect pwritev support on configure

2016-10-06 Thread Dejan Jovicevic
Modified the configure file so that, during configuration, a check is performed to determine if the system call pwritev is supported by the host. The check for preadv support already exists. Signed-off-by: Dejan Jovicevic <dejan.jovice...@rt-rk.com> --- configur