[Qemu-devel] [PATCH v2 3/5] linux-user: Remove tabs and trailing spaces from linux-user/main.c

2016-09-05 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> File main.c is frequently a starting point of debugging or analysing Qemu code for novice devevelopers, and it would be nice if it had format as clean as posible. This patch starts improving its format by removing tabs and trailing

[Qemu-devel] [PATCH v2 5/5] linux-user: Insert missing #ifdefs for some syscalls

2016-09-05 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Not all syscall-specific code segments in main switch statement in do_syscall() are inclosed in appropriate "#ifdefs". This patch fixes some of these cases. Signed-off-by: Aleksandar Markovic <aleksandar.marko...@img

[Qemu-devel] [PATCH 0/3] linux-user: Fix miscellaneous Mips-specific issues

2016-09-01 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v1 -> v2: - Improved a comment in the patch about target_semid64_ds. - Added a patch that fixes TARGET_SIOCATMARK for Mips. This series fixes several wrong definitions of preprocessor constants and structures in Qemu

[Qemu-devel] [PATCH 3/4] linux-user: Fix structure target_flock definition for Mips

2016-09-01 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Structure flock is defined for Mips in a way different from any other platform. For reference, see Linux kernel source code files: arch/mips/include/uapi/asm/fcntl.h#L63 (for Mips) include/uapi/asm-generic/fcntl.h#L195 (for all

[Qemu-devel] [PATCH 1/4] linux-user: Fix TARGET_SIOCATMARK definition for Mips

2016-09-01 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch fixes wrong definition of TARGET_SIOCATMARK for Mips. The current definition is: #define SIOCATMARK 0x8905 while the correct definition is: #define SIOCATMARK TARGET_IOR('s', 7, int) See Linux kernel

[Qemu-devel] [PATCH 2/4] linux-user: Fix TARGET_F_GETOWN definition for Mips

2016-09-01 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> For some reason, Qemu's TARGET_F_GETOWN constant for Mips does not match the correct value of correspondant F_GETOWN. This patch fixes this problem. For reference, see Mips' F_GETOWN definition in Linux kernel at arch/mips/includ

[Qemu-devel] [PATCH 4/4] linux-user: Fix structure target_semid64_ds definition for Mips

2016-09-01 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch corrects target_semid64_ds structure definition for Mips. See, for example definition of semid64_ds for Mips in Linux kernel: arch/mips/include/uapi/asm/sembuf.h#L13. This patch will also fix certain semaphore-relat

[Qemu-devel] [PATCH 1/3] linux-user: Add support for adjtimex() syscall

2016-08-29 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode adjtimex() syscall support. Syscall adjtimex() reads and optionally sets parameters for a clock adjustment algorithm used in network synchonization or similar scenarios. The implementation is

[Qemu-devel] [PATCH 3/3] linux-user: Add support for ustat() syscall

2016-08-29 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode ustat() syscall support. Syscall ustat() returns information about a mounted filesystem. The implementation is similar to the implementations of statfs(), fstatfs() and other related sy

[Qemu-devel] [PATCH 2/3] linux-user: Add support for sysfs() syscall

2016-08-29 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode sysfs() syscall support. Syscall sysfs() involves returning information about the filesystem types currently present in the kernel, and can operate in three distinct flavors, depending on its

[Qemu-devel] [PATCH 0/3] linux-user: Add support for adjtimex(), sysfs(), and ustat() syscalls

2016-08-29 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch series adds support for three syscalls to the Qemu user mode. Each patch fixes certain LTP test failures that occur if LTP tests are executed in Qemu user mode. This improvement will be in effect for all platforms sup

[Qemu-devel] [PATCH 2/3] linux-user: Fix structure target_flock definition for Mips

2016-08-29 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Structure flock is defined for Mips in a way defferent than any other platform. For reference, see Linux kernel files: arch/mips/include/uapi/asm/fcntl.h#L63 (for Mips) include/uapi/asm-generic/fcntl.h#L195 (for all other pla

[Qemu-devel] [PATCH 0/3] linux-user: Fix miscelaneous Mips-specific issues

2016-08-29 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This series fixes several wrong definitions of preprocessor constants and structures in Qemu user mode. All patches are completely isolated Mips issues. The serias fixes certain number of LTP test failures, if executed in Qemu use

[Qemu-devel] [PATCH 1/3] linux-user: Fix preprocessor constant TARGET_F_GETOWN for Mips

2016-08-29 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> For some reason, Qemu's TARGET_F_GETOWN constant for Mips does not match the correct value of correspondant F_GETOWN. This patch fixes this problem. For reference, see Mips' F_GETOWN definition in Linux kernel at arch/mips/includ

[Qemu-devel] [PATCH 3/3] linux-user: Fix structure target_semid64_ds definition for Mips

2016-08-29 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch corrects target_semid64_ds structure definition for Mips. See, for example definition of semid64_ds for Mips in Linux kernel: arch/mips/include/uapi/asm/sembuf.h#L13. This patch will also fix certain semaphore-relat

Re: [Qemu-devel] ?==?utf-8?q? ?==?utf-8?q? [PATCH 3/3]?==?utf-8?q? linux-user: Fix structure target_semid64_ds definition for Mips

2016-08-30 Thread Aleksandar Markovic
Original Message Subject: Re: [Qemu-devel] [PATCH 3/3] linux-user: Fix structure target_semid64_ds definition for Mips Date: Monday, August 29, 2016 23:41 CEST From: Peter Maydell <peter.mayd...@linaro.org> To: Aleksandar Markovic <aleksandar.marko...@rt-rk.com> CC:

[Qemu-devel] [PATCH v4 01/11] linux-user: Add support for adjtimex() syscall

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode adjtimex() syscall support. Syscall adjtimex() reads and optionally sets parameters for a clock adjustment algorithm used in network synchonization or similar scenarios. The implementation is

[Qemu-devel] [PATCH v4 11/11] linux-user: Remove a duplicate item from strace.list

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> There is a duplicate item in strace.list. It is benign, but it shouldn't be there. It is the only duplicate in strace.list. This patch removes it. Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> ---

[Qemu-devel] [PATCH v4 05/11] linux-user: Fix msgrcv() and msgsnd() syscalls support

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> If syscalls msgrcv() and msgsnd() fail, they return E2BIG, EACCES, EAGAIN, EFAULT, EIDRM, EINTR, EINVAL, ENOMEM, or ENOMSG. By examining negative scenarios of these syscalls for Mips, it was established that ENOMSG does not have th

[Qemu-devel] [PATCH v4 10/11] linux-user: Improve usage of spaces in linux-user/main.c

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch removes all spaces-related errors (reported by checkpatch.pl) from linux-user/main.c. Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- linux-user

[Qemu-devel] [PATCH v4 03/11] linux-user: Add support for sysfs() syscall

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode sysfs() syscall support. Syscall sysfs() involves returning information about the filesystem types currently present in the kernel, and can operate in three distinct flavors, depending on its

[Qemu-devel] [PATCH v4 00/11] linux user: Fix assorted Qemu user mode issues

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v3->v4: - rebased to the latest code - added patch on clock_adjtime() support - minor commit messages improvements v2->v3: - rebased to the latest code - merged patches on adjtimex(), sysfs(), and

[Qemu-devel] [PATCH v4 04/11] linux-user: Add support for ustat() syscall

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode ustat() syscall support. Syscall ustat() returns information about a mounted filesystem. The implementation is similar to the implementations of statfs(), fstatfs() and other related sy

[Qemu-devel] [PATCH v4 08/11] linux-user: Remove tabs and trailing spaces from linux-user/main.c

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> File main.c is frequently a starting point of debugging or analysing Qemu code for novice devevelopers, and it would be nice if it had format as clean as posible. This patch starts improving its format by removing tabs and trailing

[Qemu-devel] [PATCH v4 07/11] linux-user: Fix syslog() syscall support

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> There are currently several problems related to syslog() support. For example, if the second argument "bufp" of target syslog() syscall is NULL, the current implementation always returns error code EFAULT. However, NUL

[Qemu-devel] [PATCH v4 09/11] linux-user: Improve braces-related formatting in linux-user/main.c

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch removes all braces-related errors (reported by checkpatch.pl) from linux-user/main.c. Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- linux-user/

[Qemu-devel] [PATCH v4 02/11] linux-user: Add support for clock_adjtime() syscall

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode clock_adjtime() syscall support. The implementation is based on invocation of host's clock_adjtime(), and is very similar to the implementation of adjtimex() syscall support. The main diff

[Qemu-devel] [PATCH v4 06/11] linux-user: Fix socketcall() syscall support

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> do_socketcall() function in Qemu's syscalls.c is implemented to mirror corespondant implementation of socketcall() in Linux kernel. (see kernel source file net/socket.c, definition of socketcall). However, error codes are

Re: [Qemu-devel] [PATCH v4 00/11] linux user: Fix assorted Qemu user mode issues

2016-09-14 Thread Aleksandar Markovic
OK, these patches will be removed in v5, which is pending. Thanks. Aleksandar From: Peter Maydell [peter.mayd...@linaro.org] Sent: Wednesday, September 14, 2016 12:15 PM To: Aleksandar Markovic Cc: QEMU Developers; Riku Voipio; Petar Jovanovic; Miodrag

[Qemu-devel] [PATCH v5 3/8] linux-user: Add support for sysfs() syscall

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode sysfs() syscall support. Syscall sysfs() involves returning information about the filesystem types currently present in the kernel, and can operate in three distinct flavors, depending on its

[Qemu-devel] [PATCH v5 8/8] linux-user: Remove a duplicate item from strace.list

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> There is a duplicate item in strace.list. It is benign, but it shouldn't be there. It is the only duplicate in strace.list. This patch removes it. Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> ---

[Qemu-devel] [PATCH v5 4/8] linux-user: Add support for ustat() syscall

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode ustat() syscall support. Syscall ustat() returns information about a mounted filesystem. The implementation is similar to the implementations of statfs(), fstatfs() and other related sy

[Qemu-devel] [PATCH v5 1/8] linux-user: Add support for adjtimex() syscall

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode adjtimex() syscall support. Syscall adjtimex() reads and optionally sets parameters for a clock adjustment algorithm used in network synchonization or similar scenarios. The implementation is

[Qemu-devel] [PATCH v5 0/8] linux user: Fix assorted Qemu user mode issues

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v4->v5: - removed three cleanup patches v3->v4: - rebased to the latest code - added patch on clock_adjtime() support - minor commit messages improvements v2->v3: - rebased to the latest code -

[Qemu-devel] [PATCH v5 7/8] linux-user: Fix syslog() syscall support

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> There are currently several problems related to syslog() support. For example, if the second argument "bufp" of target syslog() syscall is NULL, the current implementation always returns error code EFAULT. However, NUL

[Qemu-devel] [PATCH v5 2/8] linux-user: Add support for clock_adjtime() syscall

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode clock_adjtime() syscall support. The implementation is based on invocation of host's clock_adjtime(), and is very similar to the implementation of adjtimex() syscall support. The main diff

[Qemu-devel] [PATCH v5 6/8] linux-user: Fix socketcall() syscall support

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> do_socketcall() function in Qemu's syscalls.c is implemented to mirror corespondant implementation of socketcall() in Linux kernel. (see kernel source file net/socket.c, definition of socketcall). However, error codes are

[Qemu-devel] [PATCH v5 5/8] linux-user: Fix msgrcv() and msgsnd() syscalls support

2016-09-14 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> If syscalls msgrcv() and msgsnd() fail, they return E2BIG, EACCES, EAGAIN, EFAULT, EIDRM, EINTR, EINVAL, ENOMEM, or ENOMSG. By examining negative scenarios of these syscalls for Mips, it was established that ENOMSG does not have th

[Qemu-devel] [PATCH v5 5/5] linux-user: Fix certain argument alignment cases for Mips64

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> The function that is changed in this patch is supposed to indicate that there was certaing argument rearangement related to 64-bit arguments on 32-bit platforms. The background on such rearangements can be found, for example, in t

[Qemu-devel] [PATCH v3 09/10] linux-user: Improve usage of spaces in linux-user/main.c

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch removes all spaces-related errors (reported by checkpatch.pl) from linux-user/main.c. Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- linux-user

[Qemu-devel] [PATCH v3 01/10] linux-user: Add support for adjtimex() syscall

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode adjtimex() syscall support. Syscall adjtimex() reads and optionally sets parameters for a clock adjustment algorithm used in network synchonization or similar scenarios. The implementation is

[Qemu-devel] [PATCH v3 02/10] linux-user: Add support for sysfs() syscall

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode sysfs() syscall support. Syscall sysfs() involves returning information about the filesystem types currently present in the kernel, and can operate in three distinct flavors, depending on its

[Qemu-devel] [PATCH v5 2/5] linux-user: Fix TARGET_F_GETOWN definition for Mips

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> For some reason, Qemu's TARGET_F_GETOWN constant for Mips does not match the correct value of correspondant F_GETOWN. This patch fixes this problem. For reference, see Mips' F_GETOWN definition in Linux kernel at arch/mips/includ

[Qemu-devel] [PATCH v3 07/10] linux-user: Remove tabs and trailing spaces from linux-user/main.c

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> File main.c is frequently a starting point of debugging or analysing Qemu code for novice devevelopers, and it would be nice if it had format as clean as posible. This patch starts improving its format by removing tabs and trailing

[Qemu-devel] [PATCH v5 4/5] linux-user: Fix structure target_semid64_ds definition for Mips

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch corrects target_semid64_ds structure definition for Mips. See, for example definition of semid64_ds for Mips in Linux kernel: arch/mips/include/uapi/asm/sembuf.h#L13. This patch will also fix certain semaphore-relat

[Qemu-devel] [PATCH v3 10/10] linux-user: Remove a duplicate item from strace.list

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> There is a duplicate item in strace.list. It is benign, but it shouldn't be there. It is the only duplicate in strace.list. This patch removes it. Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> ---

[Qemu-devel] [PATCH v5 1/5] linux-user: Fix TARGET_SIOCATMARK definition for Mips

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch fixes wrong definition of TARGET_SIOCATMARK for Mips. The current definition is: #define SIOCATMARK 0x8905 while the correct definition is: #define SIOCATMARK TARGET_IOR('s', 7, int) See Linux kernel

[Qemu-devel] [PATCH v3 05/10] linux-user: Fix socketcall() syscall emulation

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> do_socketcall() function in Qemu's syscalls.c is implemented to mirror corespondant implementation of socketcall() in Linux kernel. (see kernel source file net/socket.c, definition of socketcall). However, error codes are

[Qemu-devel] [PATCH v5 0/5] linux-user: Fix miscellaneous Mips-specific issues

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v4->v5: - Commit messages improved. v3->v4: - Added a patch on agrument rearangement. v2->v3: - Minor fixes in the commit messages. v1->v2: - Improved a comment in the patch about target_semid64_ds (n

[Qemu-devel] [PATCH v3 03/10] linux-user: Add support for ustat() syscall

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode ustat() syscall support. Syscall ustat() returns information about a mounted filesystem. The implementation is similar to the implementations of statfs(), fstatfs() and other related sy

[Qemu-devel] [PATCH v5 3/5] linux-user: Fix structure target_flock definition for Mips

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Structure flock is defined for Mips in a way different from any other platform. For reference, see Linux kernel source code files: arch/mips/include/uapi/asm/fcntl.h#L63 (for Mips) include/uapi/asm-generic/fcntl.h#L195 (for all

[Qemu-devel] [PATCH v3 06/10] linux-user: Fix syslog() syscall emulation

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> There are currently several problems related to syslog() support. For example, if the second argument "bufp" of target syslog() syscall is NULL, the current implementation always returns error code EFAULT. However, NUL

[Qemu-devel] [PATCH v3 04/10] linux-user: Fix msgrcv() and msgsnd() syscalls emulation

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> If syscalls msgrcv() and msgsnd() fail, they return E2BIG, EACCES, EAGAIN, EFAULT, EIDRM, EINTR, EINVAL, ENOMEM, or ENOMSG. By examining negative scenarios of these syscalls for Mips, it was established that ENOMSG does not have th

[Qemu-devel] [PATCH v3 00/10] linux user: Fix assorted Qemu user mode issues

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v2->v3: - rebased to the latest code - merged patches on adjtimex(), sysfs(), and ustat() from another series - added patch on socketcall() support (5/10) - cleanup patches reorganized v1->v2: - im

[Qemu-devel] [PATCH v3 08/10] linux-user: Improve braces-related formatting in linux-user/main.c

2016-09-12 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch removes all braces-related errors (reported by checkpatch.pl) from linux-user/main.c. Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- linux-user/

[Qemu-devel] [PATCH v6 0/7] linux-user: Fix miscellaneous Mips-specific issues

2016-09-16 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v5->v6: - Corrected two instances of wrong field type in the patch on target_flock. - Added a patch that corrects handling of EDQUOT error code for Mips. - Added a patch that adds missing Mips-related items in strace.list

[Qemu-devel] [PATCH v6 1/7] linux-user: Fix TARGET_SIOCATMARK definition for Mips

2016-09-16 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch fixes wrong definition of TARGET_SIOCATMARK for Mips. The current definition is: #define SIOCATMARK 0x8905 while the correct definition is: #define SIOCATMARK TARGET_IOR('s', 7, int) See Linux kernel

[Qemu-devel] [PATCH v6 2/7] linux-user: Fix TARGET_F_GETOWN definition for Mips

2016-09-16 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> For some reason, Qemu's TARGET_F_GETOWN constant for Mips does not match the correct value of correspondant F_GETOWN. This patch fixes this problem. For reference, see Mips' F_GETOWN definition in Linux kernel at arch/mips/includ

[Qemu-devel] [PATCH v6 6/7] linux-user: Add missing TARGET_EDQUOT error code for Mips

2016-09-16 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> EDQUOT is defined for Mips platform in Linux kernel in such a way that it has different value than on most other platforms. However, correspondant TARGET_EDQUOT for Mips is missing in Qemu code. Moreover, TARGET_EDQUOT is missin

Re: [Qemu-devel] [PATCH v5 3/5] linux-user: Fix structure target_flock definition for Mips

2016-09-16 Thread Aleksandar Markovic
You are correct. This is going to be fixed in v6, which will appear soon. Thanks! Aleksandar From: Leon Alrae Sent: Thursday, September 15, 2016 2:51 AM To: Aleksandar Markovic Cc: qemu-devel@nongnu.org; riku.voi...@iki.fi; peter.mayd...@linaro.org

Re: [Qemu-devel] [PATCH 4/4] linux-user: Fix fadvise64() syscall support for Mips32

2016-10-05 Thread Aleksandar Markovic
] on behalf of Aleksandar Markovic [aleksandar.marko...@imgtec.com] Sent: Tuesday, October 04, 2016 1:58 PM To: Peter Maydell; Aleksandar Markovic Cc: Riku Voipio; QEMU Developers; Laurent Vivier; Miodrag Dinic; Aleksandar Rikalo; Petar Jovanovic; Yongbok Kim; Leon Alrae; Aurelien Jarno Subject: Re: [Qemu

Re: [Qemu-devel] [PATCH 4/4] linux-user: Fix fadvise64() syscall support for Mips32

2016-10-06 Thread Aleksandar Markovic
5:38 AM To: Aleksandar Markovic Cc: Aleksandar Markovic; Riku Voipio; QEMU Developers; Laurent Vivier; Miodrag Dinic; Aleksandar Rikalo; Petar Jovanovic; Yongbok Kim; Leon Alrae; Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH 4/4] linux-user: Fix fadvise64() syscall support for Mips32 On 5

[Qemu-devel] [PATCH 1/4] linux-user: Add support for sysfs() syscall

2016-10-04 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode sysfs() syscall support. Syscall sysfs() involves returning information about the filesystem types currently present in the kernel, and can operate in three distinct flavors, depending on its

[Qemu-devel] [PATCH 0/4] linux-user: Several mostly Mips related patches

2016-10-04 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This is just a set of several Qemu Linux user patches that for various reasons did not make their way to Qemu upstream, but they are all valid and important in certain use case scenarios for Qemu Linux user mode. Aleksandar Marko

[Qemu-devel] [PATCH 4/4] linux-user: Fix fadvise64() syscall support for Mips32

2016-10-04 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> By looking at the file arch/mips/kernel/sys.S in Linux kernel, it can be deduced that, for Mips32 platform, syscall corresponding to number _NR_fadvise64 translates to kernel function sys_fadvise64_64, and that argument

[Qemu-devel] [PATCH 2/4] linux-user: Update termbits.h for Mips32

2016-10-04 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Update linux-user/mips/termbits.h with ioctl definitnions from kernel file arch/mips/include/uapi/asm/ioctls.h. Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- linux-user/mips/termbits.h | 12

[Qemu-devel] [PATCH 3/4] linux-user: Redirect termbits.h for Mips64 to termbits.h for Mips32

2016-10-04 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> linux-user/mips64/termbits.h and linux-user/mips/termbits.h originate from the same files in Linux kernel. There is no plan to separate original headers in Linux kernel into Mips32 and Mips64 versions any time soon. The

Re: [Qemu-devel] [PATCH 4/4] linux-user: Fix fadvise64() syscall support for Mips32

2016-10-04 Thread Aleksandar Markovic
, Aleksandar From: Peter Maydell [peter.mayd...@linaro.org] Sent: Tuesday, October 04, 2016 1:42 PM To: Aleksandar Markovic Cc: QEMU Developers; Riku Voipio; Laurent Vivier; Aurelien Jarno; Yongbok Kim; Leon Alrae; Petar Jovanovic; Miodrag Dinic; Aleksandar

Re: [Qemu-devel] [PATCH 1/4] linux-user: Add support for sysfs() syscall

2016-10-04 Thread Aleksandar Markovic
: Tuesday, October 04, 2016 1:35 PM To: Aleksandar Markovic Cc: QEMU Developers; Riku Voipio; Laurent Vivier; Aurelien Jarno; Yongbok Kim; Leon Alrae; Petar Jovanovic; Miodrag Dinic; Aleksandar Rikalo; Aleksandar Markovic Subject: Re: [PATCH 1/4] linux-user: Add support for sysfs() syscall On 4 October

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

2016-10-07 Thread Aleksandar Markovic
From: Riku Voipio [riku.voi...@iki.fi] Sent: Friday, October 07, 2016 6:06 AM To: Aleksandar Markovic Cc: qemu-devel@nongnu.org; laur...@vivier.eu; peter.mayd...@linaro.org; Petar Jovanovic; Miodrag Dinic; Aleksandar Rikalo; Aleksandar Markovic Subject: Re

[Qemu-devel] [PATCH v9 1/2] linux-user: Add support for clock_adjtime() syscall

2016-10-10 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> 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 <aleksandar.rik...@imgtec.com> Signed-off-by

[Qemu-devel] [PATCH v9 2/2] linux-user: Add support for syncfs() syscall

2016-10-10 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode syncfs() syscall support. Syscall syncfs() syncs the filesystem containing file determined by the open file descriptor passed as the argument to syncfs(). The implementation co

[Qemu-devel] [PATCH v9 0/2] linux-user: Fix assorted Qemu user mode issues

2016-10-10 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v8->v9: - for clock_adjtime() handling, -EFAULT is returned if copying of structure times from target to host fails v7->v8: - patches for clock_adjtime() and syncfs() fixed so that certain older syste

[Qemu-devel] [PATCH v7 6/7] linux-user: Add missing TARGET_EDQUOT error code for Mips

2016-09-19 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> EDQUOT is defined for Mips platform in Linux kernel in such a way that it has different value than on most other platforms. However, correspondent TARGET_EDQUOT for Mips is missing in Qemu code. Moreover, TARGET_EDQUOT is missin

[Qemu-devel] [PATCH v7 5/7] linux-user: Fix certain argument alignment cases for Mips64

2016-09-19 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> The function that is changed in this patch is supposed to indicate that there was certain argument rearrangement related to 64-bit arguments on 32-bit platforms. The background on such rearrangements can be found, for example, in t

[Qemu-devel] [PATCH v7 0/7] linux-user: Fix miscellaneous Mips-specific issues

2016-09-19 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v6->v7: - Rebased to the latest code. - Patch 1/1 expanded to act on alpha and sh4. - Naming in patch 4/7 synced with kernel naming. - Change code style of patch 5/7. - Corrected spelling in all patches. v5->v6:

[Qemu-devel] [PATCH v7 4/7] linux-user: Fix structure target_semid64_ds definition for Mips

2016-09-19 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch corrects target_semid64_ds structure definition for Mips. See, for example definition of semid64_ds for Mips in Linux kernel: arch/mips/include/uapi/asm/sembuf.h#L13. This patch will also fix certain semaphore-relat

[Qemu-devel] [PATCH v7 1/7] linux-user: Fix TARGET_SIOCATMARK definition for Mips

2016-09-19 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch fixes wrong definition of TARGET_SIOCATMARK for mips, alpha, and sh4. The current definition is: #define SIOCATMARK 0x8905 while the correct definition is: #define SIOCATMARK TARGET_IOR('s', 7, int) See

[Qemu-devel] [PATCH v7 2/7] linux-user: Fix TARGET_F_GETOWN definition for Mips

2016-09-19 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> For some reason, Qemu's TARGET_F_GETOWN constant for Mips does not match the correct value of correspondent F_GETOWN. This patch fixes this problem. For reference, see Mips' F_GETOWN definition in Linux kernel at arch/mips/includ

[Qemu-devel] [PATCH v7 3/7] linux-user: Fix structure target_flock definition for Mips

2016-09-19 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Structure flock is defined for Mips in a way different from any other platform. For reference, see Linux kernel source code files: arch/mips/include/uapi/asm/fcntl.h, line 63 (for Mips) include/uapi/asm-generic/fcntl.h, line 195 (f

[Qemu-devel] [PATCH v7 7/7] linux-user: Add missing Mips syscalls items in strace.list

2016-09-19 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Without this patch, a number of Mips syscalls will be logged in the following way (in this example, this is an invocation of accept4()): 86906 Unknown syscall 4334 This patch provides standard Qemu's strace output for such cases

Re: [Qemu-devel] [PATCH v6 5/7] linux-user: Fix certain argument alignment cases for Mips64

2016-09-19 Thread Aleksandar Markovic
So true. In v7, I am going to use the style that you suggested. From: Laurent Vivier [laur...@vivier.eu] Sent: Friday, September 16, 2016 12:29 PM To: Aleksandar Markovic; qemu-devel@nongnu.org; riku.voi...@iki.fi; peter.mayd...@linaro.org; aurel

Re: [Qemu-devel] [PATCH v6 7/7] linux-user: Add missing Mips syscalls items in strace.list

2016-09-19 Thread Aleksandar Markovic
. In hindsight, I think devising a script or even a set of command lines would be much faster and better way of doing this. Aleksandar From: Laurent Vivier [laur...@vivier.eu] Sent: Friday, September 16, 2016 12:35 PM To: Aleksandar Markovic; qemu-devel

Re: [Qemu-devel] [PATCH v6 1/7] linux-user: Fix TARGET_SIOCATMARK definition for Mips

2016-09-19 Thread Aleksandar Markovic
, and minimal test examples illustrating the bug and the fix as well. Aleksandar From: Laurent Vivier [laur...@vivier.eu] Sent: Friday, September 16, 2016 11:22 AM To: Aleksandar Markovic; qemu-devel@nongnu.org; riku.voi...@iki.fi; peter.mayd...@linaro.org

Re: [Qemu-devel] [PATCH v6 4/7] linux-user: Fix structure target_semid64_ds definition for Mips

2016-09-19 Thread Aleksandar Markovic
The naming in this patch will be synced with that from the kernel in v7. Thanks! From: Laurent Vivier [laur...@vivier.eu] Sent: Friday, September 16, 2016 12:00 PM To: Aleksandar Markovic; qemu-devel@nongnu.org; riku.voi...@iki.fi; peter.mayd

Re: [Qemu-devel] [PATCH v7 00/10] linux-user: Fix assorted Qemu user mode issues

2016-09-23 Thread Aleksandar Markovic
> - changed PATH_MAX to 128 in sysfs() patch (last remaining item > that was supposed to be in the previous version) At first glance of the patch, you didn't change the good PATH_MAX... Laurent It slipped through the cracks. Sorry. :( My bad. But all other changes are in. Rebase is also good,

Re: [Qemu-devel] [PATCH v5 1/8] linux-user: Add support for adjtimex() syscall

2016-09-22 Thread Aleksandar Markovic
R_adjtimex is not defined for such platform. Then we will have a compiler error that print_adjtimex() is unused. With "ifdef", we wouldn't. Thanks, Aleksandar From: Riku Voipio [riku.voi...@iki.fi] Sent: Wednesday, September 21, 2016 9:42 PM To: Al

[Qemu-devel] [PATCH v7 04/10] linux-user: Add support for sysfs() syscall

2016-09-22 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode sysfs() syscall support. Syscall sysfs() involves returning information about the filesystem types currently present in the kernel, and can operate in three distinct flavors, depending on its

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

2016-09-22 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> 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 *ubuf); Its Linux kernel implementation is

[Qemu-devel] [PATCH v7 00/10] linux-user: Fix assorted Qemu user mode issues

2016-09-22 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v6->v7: - rebased to the latest code (there was a large linux-user change since v6, consisting of 26 patches) - slightly changed order of patches - changed PATH_MAX to 128 in sysfs() patch (last remai

[Qemu-devel] [PATCH v7 02/10] linux-user: Add support for clock_adjtime() syscall

2016-09-22 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode clock_adjtime() syscall support. The implementation is based on invocation of host's clock_adjtime(), and is very similar to the implementation of adjtimex() syscall support. The main diff

[Qemu-devel] [PATCH v7 06/10] linux-user: Fix mq_open() syscall support

2016-09-22 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> 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 <aleksandar.marko...@imgtec.com> --- linux-user/sy

[Qemu-devel] [PATCH v7 07/10] linux-user: Fix msgrcv() and msgsnd() syscalls support

2016-09-22 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> If syscalls msgrcv() and msgsnd() fail, they return E2BIG, EACCES, EAGAIN, EFAULT, EIDRM, EINTR, EINVAL, ENOMEM, or ENOMSG. By examining negative scenarios of these syscalls for Mips, it was established that ENOMSG does not have th

[Qemu-devel] [PATCH v7 08/10] linux-user: Fix socketcall() syscall support

2016-09-22 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> Since not all Linux host platforms support socketcall() (most notably Intel), do_socketcall() function in Qemu's syscalls.c is implemented to mirror the corespondant implementation of socketcall() in Linux kernel, and to u

[Qemu-devel] [PATCH v7 09/10] linux-user: Fix syslog() syscall support

2016-09-22 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> There are currently several problems related to syslog() support. For example, if the second argument "bufp" of target syslog() syscall is NULL, the current implementation always returns error code EFAULT. However, NUL

[Qemu-devel] [PATCH v7 10/10] linux-user: Remove a duplicate item from strace.list

2016-09-22 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> 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: Alek

[Qemu-devel] [PATCH v7 01/10] linux-user: Add support for adjtimex() syscall

2016-09-22 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements Qemu user mode adjtimex() syscall support. Syscall adjtimex() reads and optionally sets parameters for a clock adjustment algorithm used in network synchonization or similar scenarios. Its declaration is

[Qemu-devel] [PATCH v7 03/10] linux-user: Add support for syncfs() syscall

2016-09-22 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> This patch implements syncfs() syscall support. The implementation consists of a straightforward invocation of host's syncfs() only. Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com> --- linux-user/s

[Qemu-devel] [PATCH v6 00/10] linux-user: Fix assorted Qemu user mode issues

2016-09-22 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> v5->v6: - reworked all patches according to review feedback - added two new patches on relatively simple issues v4->v5: - removed three cleanup patches v3->v4: - rebased to the latest code

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

2016-09-22 Thread Aleksandar Markovic
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com> 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 *ubuf); Its Linux kernel implementation is

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