[Qemu-devel] [PATCH v2 1/7] linux-user: Add fanotify implementation

2016-11-24 Thread Lena Djokic
. Signed-off-by: Lena Djokic --- configure| 20 linux-user/syscall.c | 126 +-- 2 files changed, 142 insertions(+), 4 deletions(-) diff --git a/configure b/configure index fd6f898..56e6c98 100755 --- a/configure +++ b/configure

[Qemu-devel] [PATCH v2 6/7] linux-user: Fix syslog

2016-11-24 Thread Lena Djokic
Third argument represents lenght not second. If second 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 second argument. Signed-off-by: Lena Djokic --- linux-user/syscall.c | 16

[Qemu-devel] [PATCH v2 3/7] linux-user: Fix flock definition for mips64

2016-11-24 Thread Lena Djokic
Mips64 uses generic flock structure. See /arch/mips/include/uapi/asm/fcntl.h#L63 for reference. Signed-off-by: Lena Djokic --- linux-user/syscall_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 0b15466

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

2016-11-24 Thread Lena Djokic
Calculation of 64-bit offset was not correct for all cases. Signed-off-by: Lena Djokic --- 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 1b59a71..61c4126 100644 --- a/linux-user/syscall.c +++ b/linux

[Qemu-devel] [PATCH v2 0/7] Improvements of qemu linux-user

2016-11-24 Thread Lena Djokic
v2: added 6 patches This patch series contains implementation of support for two new system calls, and fixes for 5 existing system calls, and fix for a structure definition as well. Lena Djokic (7): linux-user: Add fanotify implementation linux-user: Fix inotify_init1 support linux-user

[Qemu-devel] [PATCH v2 4/7] linux-user: Fix fcnt

2016-11-24 Thread Lena Djokic
. Signed-off-by: Lena Djokic --- linux-user/syscall.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 41873ca..1b59a71 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -6544,14 +6544,18 @@ static abi_long

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

2016-11-24 Thread Lena Djokic
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. Signed-off-by: Lena Djokic --- linux-user/syscall.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions

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

2016-11-24 Thread Lena Djokic
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. Signed-off-by: Lena Djokic --- linux-user/syscall.c | 3 ++- 1 file

[Qemu-devel] [PATCH] linux-user: fix inotify_init1() support

2016-11-03 Thread Lena Djokic
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. Signed-off-by: Lena Djokic --- linux-user/syscall.c | 3 ++- 1