Re: [PATCH v4 6/7] disas: mips: Add micromips R6 disassembler - infrastructure and 16-bit instructions

2020-01-25 Thread Aleksandar Markovic
On Saturday, January 25, 2020, Richard Henderson < richard.hender...@linaro.org> wrote: > On 1/24/20 1:38 PM, Aleksandar Markovic wrote: > > On Friday, January 24, 2020, Richard Henderson < > richard.hender...@linaro.org > > <mailto:richard.hender...@linaro.org&

Re: [PATCH v4 6/7] disas: mips: Add micromips R6 disassembler - infrastructure and 16-bit instructions

2020-01-24 Thread Aleksandar Markovic
On Friday, January 24, 2020, Richard Henderson wrote: > On 1/24/20 10:56 AM, Aleksandar Markovic wrote: > > > > > > On Friday, January 24, 2020, Richard Henderson < > richard.hender...@linaro.org > > <mailto:richard.hender...@linaro.org>> wrote:

Re: [PATCH v4 6/7] disas: mips: Add micromips R6 disassembler - infrastructure and 16-bit instructions

2020-01-24 Thread Aleksandar Markovic
On Friday, January 24, 2020, Richard Henderson wrote: > On 1/24/20 6:38 AM, Aleksandar Markovic wrote: > > The basic disassembly logic was obtained by somewhat modified script > > decodetree.py, and such output was further manually modified to > > handle numerous deta

Re: [EXTERNAL]Re: [PULL v2 0/7] MIPS queue for Jan 24th, 2020

2020-01-24 Thread Aleksandar Markovic
> I don't think the patches from Igor are suitable for cherry-picking > into your tree, because they depend on earlier patches from the > start of his series which haven't yet gone into master. Auch. Sorry. In that case, please ignore this pull request. I will send a new one hopefully next week.

[PULL v2 7/7] mips/mips_r4k: use memdev for RAM

2020-01-24 Thread Aleksandar Markovic
of manually initializing RAM memory region. Signed-off-by: Aleksandar Markovic Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Message-Id: <1579779525-20065-57-git-send-email-imamm...@redhat.com> --- hw/mips/mips_r4k.c | 12 1 file changed, 4 insertions

[PULL v2 3/7] mips-semi.c: remove 'uhi_done' label in helper_do_semihosting()

2020-01-24 Thread Aleksandar Markovic
From: Daniel Henrique Barboza The label 'uhi_done' is a simple 'return' call and can be removed for a bit more clarity in the code. CC: Aurelien Jarno CC: Aleksandar Markovic CC: Aleksandar Rikalo Reviewed-by: Aleksandar Markovic Signed-off-by: Aleksandar Markovic Signed-off-by: Daniel

[PULL v2 5/7] mips/mips_malta: use memdev for RAM

2020-01-24 Thread Aleksandar Markovic
of manually initializing RAM memory region. Signed-off-by: Aleksandar Markovic Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-Id: <1579779525-20065-55-git-send-email-imamm...@redhat.com> --- hw/mips/mips_malta.c | 10 ---

[PULL v2 1/7] target/mips: Rectify documentation on deprecating r4k machine

2020-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic Change the documented (in file qemu-deprecated.texi) release since r4k machine is deprecated from 4.2 to 5.0. Fixes: d32dc61421b Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic Message-Id: <1579883929-1517-2-git-send-email-aleksandar.ma

[PULL v2 0/7] MIPS queue for Jan 24th, 2020

2020-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic The following changes since commit ba2ed84fe6a78f64b2da441750fc6e925d94106a: Merge remote-tracking branch 'remotes/palmer/tags/riscv-for-master-5.0-sf1' into staging (2020-01-24 12:34:04 +) are available in the git repository at: https://github.com/AMarkovic

[PULL v2 4/7] mips/mips_jazz: use memdev for RAM

2020-01-24 Thread Aleksandar Markovic
of manually initializing RAM memory region. Signed-off-by: Aleksandar Markovic Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Message-Id: <1579779525-20065-54-git-send-email-imamm...@redhat.com> --- hw/mips/mips_jazz.c | 7 +++ 1 file changed, 3 insertions(+), 4 del

[PULL v2 2/7] disas: Add a field for target-dependant data

2020-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic This patch adds a field "target_info" to the structure disassemble_info. The purpose of this field is to enable targets to pass to disassembler code any additional data thet deem suitable. Reviewed-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic

[PULL v2 6/7] mips/mips_mipssim: use memdev for RAM

2020-01-24 Thread Aleksandar Markovic
of manually initializing RAM memory region. Signed-off-by: Aleksandar Markovic Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-Id: <1579779525-20065-56-git-send-email-imamm...@redhat.com> --- hw/mips/mips_mipssim.c | 9 +++---

Re: [EXTERNAL][PULL 0/7] MIPS queue for January 24th, 2020

2020-01-24 Thread Aleksandar Markovic
> From: Aleksandar Markovic > Cc: peter.mayd...@linaro.org; Aleksandar Markovic > Subject: [EXTERNAL][PULL 0/7] MIPS queue for January 24th, 2020 I forgot one "Signed-off-by:". Will send v2 shortly. Thanks, Aleksandar

[PULL 7/7] mips/mips_r4k: use memdev for RAM

2020-01-24 Thread Aleksandar Markovic
of manually initializing RAM memory region. Signed-off-by: Aleksandar Markovic Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Message-Id: <1579779525-20065-57-git-send-email-imamm...@redhat.com> --- hw/mips/mips_r4k.c | 12 1 file changed, 4 insertions

[PULL 6/7] mips/mips_mipssim: use memdev for RAM

2020-01-24 Thread Aleksandar Markovic
of manually initializing RAM memory region. Signed-off-by: Aleksandar Markovic Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-Id: <1579779525-20065-56-git-send-email-imamm...@redhat.com> --- hw/mips/mips_mipssim.c | 9 +++---

[PULL 0/7] MIPS queue for January 24th, 2020

2020-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic The following changes since commit ba2ed84fe6a78f64b2da441750fc6e925d94106a: Merge remote-tracking branch 'remotes/palmer/tags/riscv-for-master-5.0-sf1' into staging (2020-01-24 12:34:04 +) are available in the git repository at: https://github.com/AMarkovic

[PULL 2/7] disas: Add a field for target-dependant data

2020-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic This patch adds a field "target_info" to the structure disassemble_info. The purpose of this field is to enable targets to pass to disassembler code any additional data thet deem suitable. Reviewed-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic

[PULL 5/7] mips/mips_malta: use memdev for RAM

2020-01-24 Thread Aleksandar Markovic
of manually initializing RAM memory region. Signed-off-by: Aleksandar Markovic Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-Id: <1579779525-20065-55-git-send-email-imamm...@redhat.com> --- hw/mips/mips_malta.c | 10 ---

[PULL 3/7] mips-semi.c: remove 'uhi_done' label in helper_do_semihosting()

2020-01-24 Thread Aleksandar Markovic
From: Daniel Henrique Barboza The label 'uhi_done' is a simple 'return' call and can be removed for a bit more clarity in the code. CC: Aurelien Jarno CC: Aleksandar Markovic CC: Aleksandar Rikalo Signed-off-by: Daniel Henrique Barboza Reviewed-by: Aleksandar Markovic Message-Id

[PULL 4/7] mips/mips_jazz: use memdev for RAM

2020-01-24 Thread Aleksandar Markovic
of manually initializing RAM memory region. Signed-off-by: Aleksandar Markovic Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Message-Id: <1579779525-20065-54-git-send-email-imamm...@redhat.com> --- hw/mips/mips_jazz.c | 7 +++ 1 file changed, 3 insertions(+), 4 del

[PULL 1/7] target/mips: Rectify documentation on deprecating r4k machine

2020-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic Change the documented (in file qemu-deprecated.texi) release since r4k machine is deprecated from 4.2 to 5.0. Fixes: d32dc61421b Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic Message-Id: <1579883929-1517-2-git-send-email-aleksandar.ma

Re: [PATCH v1 06/59] mips-semi.c: remove 'uhi_done' label in helper_do_semihosting()

2020-01-24 Thread Aleksandar Markovic
On Mon, Jan 6, 2020 at 7:29 PM Daniel Henrique Barboza < danielhb...@gmail.com> wrote: > The label 'uhi_done' is a simple 'return' call and can > be removed for a bit more clarity in the code. > > CC: Aurelien Jarno > CC: Aleksandar Markovic > CC: Aleksandar Rikalo

Re: [PATCH REPOST v3 55/80] mips/mips_mipssim: use memdev for RAM

2020-01-24 Thread Aleksandar Markovic
On Thu, Jan 23, 2020 at 1:22 PM Igor Mammedov wrote: > memory_region_allocate_system_memory() API is going away, so > replace it with memdev allocated MemoryRegion. The later is > initialized by generic code, so board only needs to opt in > to memdev scheme by providing >

Re: [PATCH REPOST v3 56/80] mips/mips_r4k: use memdev for RAM

2020-01-24 Thread Aleksandar Markovic
On Thu, Jan 23, 2020 at 1:24 PM Igor Mammedov wrote: > memory_region_allocate_system_memory() API is going away, so > replace it with memdev allocated MemoryRegion. The later is > initialized by generic code, so board only needs to opt in > to memdev scheme by providing >

Re: [PATCH REPOST v3 54/80] mips/mips_malta: use memdev for RAM

2020-01-24 Thread Aleksandar Markovic
On Thu, Jan 23, 2020 at 1:19 PM Igor Mammedov wrote: > memory_region_allocate_system_memory() API is going away, so > replace it with memdev allocated MemoryRegion. The later is > initialized by generic code, so board only needs to opt in > to memdev scheme by providing >

Re: [PATCH REPOST v3 53/80] mips/mips_jazz: use memdev for RAM

2020-01-24 Thread Aleksandar Markovic
On Thu, Jan 23, 2020 at 1:15 PM Igor Mammedov wrote: > memory_region_allocate_system_memory() API is going away, so > replace it with memdev allocated MemoryRegion. The later is > initialized by generic code, so board only needs to opt in > to memdev scheme by providing >

[PATCH v4 4/7] target/mips: Add implementation of GINVT instruction

2020-01-24 Thread Aleksandar Markovic
From: Yongbok Kim Implement emulation of GINVT instruction. As QEMU doesn't support caches and virtualization, this implementation covers only GINVT (Global Invalidate TLB) instruction among TLB-related instructions. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic --- disas

[PATCH v4 2/7] target/mips: Add support for MIPS<32|64>R6 CRC32 ISA

2020-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic Add support for eight CRC-related MIPS<32|64>R6 instructions. Signed-off-by: Aleksandar Markovic --- disas/mips.c| 8 +++ target/mips/helper.h| 2 + target/mips/op_helper.c | 19 target/mips/translate.c

[PATCH v4 6/7] disas: mips: Add micromips R6 disassembler - infrastructure and 16-bit instructions

2020-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic Micromips instruction sets (in all variants R2, R3, R5, R6) represent significant departure from regular mips R2, R3, R5, R6. That is the main reason a separate module is developed for the purpose of disassembling micromips sets. This patch is limited to micromips 32R6

[PATCH v4 1/7] target/mips: Rectify documentation on deprecating r4k machine

2020-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic Change the documented (in file qemu-deprecated.texi) release since r4k machine is deprecated from 4.2 to 5.0. Fixes: d32dc61421b Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic --- qemu-deprecated.texi | 2 +- 1 file changed, 1 insertion

[PATCH v4 3/7] target/mips: Amend CP0 WatchHi register implementation

2020-01-24 Thread Aleksandar Markovic
From: Yongbok Kim WatchHi is extended by the field MemoryMapID with the GINVT instruction. The field is accessible by MTHC0/MFHC0 in 32-bit architectures and DMTC0/ DMFC0 in 64-bit architectures. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic --- target/mips/cpu.h | 2

[PATCH v4 0/7] target/mips: Misc MIPS fixes and improvements for 5.0

2020-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic This series contains a variety of fixes and improvements for target MIPS. v3->v4: - split micromips R6 disassembler patch to more manageable parts - added new field to disassemble_info structure - CRC32 refactoring is as is in this version, but refactor

[PATCH v4 5/7] disas: Add a field for target-dependant data

2020-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic This patch adds a field "target_info" to the structure disassemble_info. The purpose of this field is to enable targets to pass to disassembler code any additional data thet deem suitable. Signed-off-by: Aleksandar Markovic --- include/disas/dis-asm.h | 3 +

[PATCH v2 3/4] linux-user: Add support for FIFREEZE and FITHAW ioctls

2020-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic Both FIFREEZE and FITHAW ioctls accept an integer as their third argument. All ioctls in this group (FI* ioctl) are guarded with "#ifdef", so the guards are used in this implementation too for consistency (however, many of ioctls in FI* group became

[PATCH v2 2/4] linux-user: Add support for FITRIM ioctl

2020-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic FITRIM ioctl accepts a pointer to the structure struct fstrim_range { __u64 start; __u64 len; __u64 minlen; }; as its third argument. All ioctls in this group (FI* ioctl) are guarded with "#ifdef", so the guards are used in this implemen

[PATCH v2 0/4] linux-user: Add support for fs and fd ioctls

2020-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic This series is a spin-off of v5 of earlier series "linux-user: Misc patches for 5.0", that became too large to manage. I will submit the rest of that large series separately. The only difference between patches in this series and in the former series i

[PATCH v2 4/4] linux-user: Add support for FDGETFDCSTAT ioctl

2020-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic FDGETFDCSTAT's third agrument is a pointer to the structure: struct floppy_fdc_state { int spec1; int spec2; int dtr; unsigned char version; unsigned char dor; unsigned long address; unsigned int rawcmd:2; unsigned int reset:1

[PATCH v2 1/4] linux-user: Add support for FS_IOC_FSXATTR ioctls

2020-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic Both FS_IOC_FSGETXATTR and FS_IOC_FSSETXATTR accept a pointer to the structure struct fsxattr { __u32 fsx_xflags; /* xflags field value (get/set) */ __u32 fsx_extsize;/* extsize field value (get/set)*/ __u32 fsx_nextents

Re: [PATCH v3 2/5] target/mips: Add support for MIPS<32|64>R6 CRC32 ISA

2020-01-23 Thread Aleksandar Markovic
On Wed, Jan 22, 2020 at 3:17 AM Taylor Simpson wrote: > > > > > From: Aleksandar Markovic > > > > Add support for eight CRC-related MIPS<32|64>R6 instructions. > > > > Signed-off-by: Aleksandar Markovic > > --- > > disas/mips.

[GSoC/Outreachy QEMU proposal] Extend support for ioctls in QEMU linux-user mode

2020-01-23 Thread Aleksandar Markovic
*Extend support for ioctls in QEMU linux-user mode* *PLANNED ACTIVITIES* BACKGROUND There is currently 2500+ ioctls defined in Linux kernel. QEMU linux-user currently supports only several hundred. There is a constant need for expanding ioctl support in QEMU. Users use Linux-user mode in

Re: [GSoC/Outreachy QEMU project proposal] Measure and Analyze QEMU Performance

2020-01-21 Thread Aleksandar Markovic
On Tue, Jan 21, 2020 at 9:08 AM Lukáš Doktor wrote: > > Dne 18. 01. 20 v 15:08 Aleksandar Markovic napsal(a): > > Hi, everybody. > > > > I am going to propose several ideas for QEMU participation in > > GSoC/Outreachy in next few days. This is the first one.

[PATCH v3 2/5] target/mips: Add support for MIPS<32|64>R6 CRC32 ISA

2020-01-21 Thread Aleksandar Markovic
From: Aleksandar Markovic Add support for eight CRC-related MIPS<32|64>R6 instructions. Signed-off-by: Aleksandar Markovic --- disas/mips.c| 8 +++ target/mips/helper.h| 2 + target/mips/op_helper.c | 19 target/mips/translate.c

[PATCH v3 1/5] target/mips: Rectify documentation on deprecating r4k machine

2020-01-21 Thread Aleksandar Markovic
From: Aleksandar Markovic Change the documented (in file qemu-deprecated.texi) release since r4k machine is deprecated from 4.2 to 5.0. Fixes: d32dc61421b Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic --- qemu-deprecated.texi | 2 +- 1 file changed, 1 insertion

[PATCH v3 3/5] target/mips: Amend CP0 WatchHi register implementation

2020-01-21 Thread Aleksandar Markovic
From: Yongbok Kim WatchHi is extended by the field MemoryMapID with the GINVT instruction. The field is accessible by MTHC0/MFHC0 in 32-bit architectures and DMTC0/ DMFC0 in 64-bit architectures. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic --- target/mips/cpu.h | 2

[PATCH v3 0/5] target/mips: Misc MIPS fixes and improvements for 5.0

2020-01-21 Thread Aleksandar Markovic
From: Aleksandar Markovic This series contains a variety of fixes and improvements for target MIPS. v2->v3: - added micromips R6 disassembler Aleksandar Markovic (3): target/mips: Rectify documentation on deprecating r4k machine target/mips: Add support for MIPS<32|64>R6

Re: [GSoC/Outreachy QEMU project proposal] Measure and Analyze QEMU Performance

2020-01-21 Thread Aleksandar Markovic
On Mon, Jan 20, 2020 at 3:51 PM Stefan Hajnoczi wrote: > > On Sat, Jan 18, 2020 at 03:08:37PM +0100, Aleksandar Markovic wrote: > > 3) The community will be given all devised performance measurement methods > > in the form of easily reproducible step-by-step setup and executi

[PATCH v3 4/5] target/mips: Add implementation of GINVT instruction

2020-01-21 Thread Aleksandar Markovic
From: Yongbok Kim Implement emulation of GINVT instruction. As QEMU doesn't support caches and virtualization, this implementation covers only GINVT (Global Invalidate TLB) instruction among TLB-related instructions. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic --- disas

[GSoC/Outreachy QEMU project proposal] Measure and Analyze QEMU Performance

2020-01-18 Thread Aleksandar Markovic
action items) Deliverable will be distributed over wide time interval (in other words, they will not be presented just at the end of project, but gradually during project execution). Mentor: Aleksandar Markovic (myself) (but, I am perfectly fine if somebody else wants to mentor the project

Re: [PATCH 08/12] linux-user: Add support for setting alsa timer enhanced read using ioctl

2020-01-17 Thread Aleksandar Markovic
On Thu, Jan 16, 2020 at 1:00 PM Arnd Bergmann wrote: > > On Thu, Jan 16, 2020 at 12:27 PM Aleksandar Markovic > wrote: > > On Thursday, January 16, 2020, Aleksandar Markovic > > wrote: > >> On Wednesday, January 15, 2020, Laurent Vivier wrote: > >>> L

[Bug 1860056] Re: mips binaries segfault

2020-01-16 Thread Aleksandar Markovic
Does the problem exist using c hello world and gcc? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1860056 Title: mips binaries segfault Status in QEMU: New Bug description: Hello World

[Bug 1860056] Re: mips binaries segfault

2020-01-16 Thread Aleksandar Markovic
Could you attach the version of g++ and qemu? In other words, can you capture the output of: mips-linux-gnu-g++ --version and qemu-mips --version ? Does the problem happen if you compile with "-static" option? Yours, Aleksandar ** Tags added: mips -- You received this bug notification

[PATCH 4/4] linux-user: Fix some constants in remaining termbits.h

2020-01-16 Thread Aleksandar Markovic
From: Aleksandar Markovic Some constants were defined in terms of host, instead of target, as they should be. Signed-off-by: Aleksandar Markovic --- linux-user/aarch64/termbits.h| 4 ++-- linux-user/arm/termbits.h| 4 ++-- linux-user/cris/termbits.h | 4 ++-- linux-user

[PATCH 2/4] linux-user: mips: Synchronize termbits.h with kernel

2020-01-16 Thread Aleksandar Markovic
From: Aleksandar Markovic Synchronize all elements of mips' termbits.h with kernel and make sure that all applicable macros and other definitions are expressed in terms of target, not the host. Signed-off-by: Aleksandar Markovic --- linux-user/mips/termbits.h | 140

[PATCH 3/4] linux-user: xtensa: Fix some constants in termbits.h

2020-01-16 Thread Aleksandar Markovic
From: Aleksandar Markovic Some constants were defined in terms of host, instead of target, as they should be. Some additional trivial changes in this patch were forced by checkpatch.pl. Reviewed-by: Max Filippov Signed-off-by: Aleksandar Markovic --- linux-user/xtensa/termbits.h | 207

[PATCH 1/4] linux-user: alpha: Synchronize termbits.h with kernel

2020-01-16 Thread Aleksandar Markovic
From: Aleksandar Markovic Synchronize all elements of alpha's termbits.h with kernel and make sure that all applicable macros and other definitions are expressed in terms of target, not the host. Signed-off-by: Aleksandar Markovic --- linux-user/alpha/termbits.h | 82

[PATCH 0/4] linux-user: Fix some issues in termbits.h files

2020-01-16 Thread Aleksandar Markovic
From: Aleksandar Markovic This series is a spin-off of v5 of earlier series "linux-user: Misc patches for 5.0", that became too large to manage. I will submit the rest of that large series separately. Files linux-user//termbits.h seem to be in a very bad shape: unsynchronized w

[PATCH 04/12] linux-user: Add support for FS_IOC_FSXATTR ioctls

2020-01-16 Thread Aleksandar Markovic
From: Aleksandar Markovic Both FS_IOC_FSGETXATTR and FS_IOC_FSSETXATTR accept a pointer to the structure struct fsxattr { __u32 fsx_xflags; /* xflags field value (get/set) */ __u32 fsx_extsize;/* extsize field value (get/set)*/ __u32 fsx_nextents

[PATCH 08/12] linux-user: Add support for FDFMT ioctls

2020-01-16 Thread Aleksandar Markovic
From: Aleksandar Markovic FDFMTBEG, FDFMTTRK, and FDFMTEND ioctls provide means for controlling formatting of a floppy drive. FDFMTTRK's third agrument is a pointer to the structure: struct format_descr { unsigned int device,head,track; }; defined in Linux kernel header . Since all

[PATCH 09/12] linux-user: Add support for FDGETFDCSTAT ioctl

2020-01-16 Thread Aleksandar Markovic
From: Aleksandar Markovic FDGETFDCSTAT's third agrument is a pointer to the structure: struct floppy_fdc_state { int spec1; int spec2; int dtr; unsigned char version; unsigned char dor; unsigned long address; unsigned int rawcmd:2; unsigned int reset:1

[PATCH 11/12] linux-user: Add support for KCOV_ ioctls

2020-01-16 Thread Aleksandar Markovic
From: Aleksandar Markovic KCOV_ENABLE and KCOV_DISABLE play the role in kernel coverage tracing. These ioctls do not use the third argument of ioctl() system call and are straightforward to implement in QEMU. Reviewed-by: Laurent Vivier Signed-off-by: Aleksandar Markovic --- linux-user

[PATCH 10/12] configure: Detect kcov support and introduce CONFIG_KCOV

2020-01-16 Thread Aleksandar Markovic
From: Aleksandar Markovic kcov is kernel code coverage tracing tool. It requires kernel 4.4+ compiled with certain kernel options. This patch checks if kcov header "sys/kcov.h" is present on build machine, and stores the result in variable CONFIG_KCOV, meant to be used in linux

[PATCH 07/12] linux-user: Add support for FD ioctls

2020-01-16 Thread Aleksandar Markovic
From: Aleksandar Markovic FDSETEMSGTRESH, FDSETMAXERRS, and FDGETMAXERRS ioctls are commands for controlling error reporting of a floppy drive. FDSETEMSGTRESH's third agrument is a pointer to the structure: struct floppy_max_errors { unsigned int abort, /* number of errors

[PATCH 01/12] linux-user: Add support for FS_IOC_VERSION ioctls

2020-01-16 Thread Aleksandar Markovic
From: Aleksandar Markovic A very specific thing for these two ioctls is that their code implies that their third argument is of type 'long', but the kernel uses that argument as if it is of type 'int'. This anomaly is recognized also in commit 6080723 (linux-user: Implement FS_IOC_GETFLAGS

[PATCH 06/12] linux-user: Add support for FIFREEZE and FITHAW ioctls

2020-01-16 Thread Aleksandar Markovic
From: Aleksandar Markovic Both FIFREEZE and FITHAW ioctls accept an integer as their third argument. All ioctls in this group (FI* ioctl) are guarded with "#ifdef", so the guards are used in this implementation too for consistency (however, many of ioctls in FI* group became

[PATCH 05/12] linux-user: Add support for FITRIM ioctl

2020-01-16 Thread Aleksandar Markovic
From: Aleksandar Markovic FITRIM ioctl accepts a pointer to the structure struct fstrim_range { __u64 start; __u64 len; __u64 minlen; }; as its third argument. All ioctls in this group (FI* ioctl) are guarded with "#ifdef", so the guards are used in this implemen

[PATCH 00/12] linux-user: Add support for fs, fd,and kcov ioctls

2020-01-16 Thread Aleksandar Markovic
From: Aleksandar Markovic This series is a spin-off of v5 of earlier series "linux-user: Misc patches for 5.0", that became too large to manage. I will submit the rest of that large series separately. The only difference between patches in this series and in the former series i

[PATCH 02/12] linux-user: Add support for FS_IOC32_FLAGS ioctls

2020-01-16 Thread Aleksandar Markovic
From: Aleksandar Markovic These FS_IOC32_FLAGS ioctls are identical to FS_IOC_FLAGS ioctls, but without the anomaly of their number defined as if their third argument is of type long, while it is treated internally in kernel as is of type int. Reviewed-by: Laurent Vivier Signed-off

[PATCH 03/12] linux-user: Add support for FS_IOC32_VERSION ioctls

2020-01-16 Thread Aleksandar Markovic
From: Aleksandar Markovic These FS_IOC32_VERSION ioctls are identical to FS_IOC_VERSION ioctls, but without the anomaly of their number defined as if their third argument is of type long, while it is treated internally in kernel as is of type int. Reviewed-by: Laurent Vivier Signed-off

[PATCH 12/12] linux-user: Add support for KCOV_INIT_TRACE ioctl

2020-01-16 Thread Aleksandar Markovic
From: Aleksandar Markovic KCOV_INIT_TRACE ioctl plays the role in kernel coverage tracing. This ioctl's third argument is of type 'unsigned long', and the implementation in QEMU is straightforward. Reviewed-by: Laurent Vivier Signed-off-by: Aleksandar Markovic --- linux-user/ioctls.h

Re: [PATCH 08/12] linux-user: Add support for setting alsa timer enhanced read using ioctl

2020-01-16 Thread Aleksandar Markovic
On Thursday, January 16, 2020, Aleksandar Markovic < aleksandar.m.m...@gmail.com> wrote: > > > On Wednesday, January 15, 2020, Laurent Vivier wrote: > >> Le 15/01/2020 à 20:17, Filip Bozuta a écrit : >> > >> > On 15.1.20. 17:37, Arnd Bergmann wrote: >

[PATCH 08/12] linux-user: Add support for setting alsa timer enhanced read using ioctl

2020-01-15 Thread Aleksandar Markovic
On Wednesday, January 15, 2020, Laurent Vivier wrote: > Le 15/01/2020 à 20:17, Filip Bozuta a écrit : > > > > On 15.1.20. 17:37, Arnd Bergmann wrote: > >> On Wed, Jan 15, 2020 at 5:32 PM Laurent Vivier > wrote: > >>> Le 15/01/2020 à 17:18, Arnd Bergmann a écrit : > On Wed, Jan 15, 2020 at

Re: [PATCH v28 22/22] qemu-doc.texi: Add RX section.

2020-01-14 Thread Aleksandar Markovic
On Sunday, January 12, 2020, Yoshinori Sato wrote: > Signed-off-by: Yoshinori Sato > --- > qemu-doc.texi | 25 + > 1 file changed, 25 insertions(+) > > It would be nice if you provided an example of qemu command line invocation that btings RX machine up (see nanomips

Re: [PATCH v28 17/22] hw/rx: RX Target hardware definition

2020-01-14 Thread Aleksandar Markovic
On Sunday, January 12, 2020, Yoshinori Sato wrote: > rx62n - RX62N cpu. > rx-virt - RX QEMU virtual target. > > v23 changes. > Add missing includes. > > v21 changes. > rx_load_image move to rx-virt.c > > Hello, Yoshinori. These lines: > v23 changes. > Add missing includes. > > v21 changes. >

[PATCH v5 16/20] linux-user: Add support for FDFMT ioctls

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic FDFMTBEG, FDFMTTRK, and FDFMTEND ioctls provide means for controlling formatting of a floppy drive. FDFMTTRK's third agrument is a pointer to the structure: struct format_descr { unsigned int device,head,track; }; defined in Linux kernel header . Since all

[PATCH v5 18/20] configure: Detect kcov support and introduce CONFIG_KCOV

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic kcov is kernel code coverage tracing tool. It requires kernel 4.4+ compiled with certain kernel options. Its interface consists of three ioctls. This patch checks if kcov support is present on build machine, and stores the result in variable CONFIG_KCOV, meant

[PATCH v5 08/20] linux-user: xtensa: Remove unused constant TARGET_NR_syscall_count

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic Currently, there is no usage of TARGET_NR_syscall_count for target xtensa, and there is no obvious indication if there is some planned usage in future. Acked-by: Max Filippov Signed-off-by: Aleksandar Markovic --- cc: Max Filippov --- linux-user/xtensa

[PATCH v5 20/20] linux-user: Add support for KCOV_INIT_TRACE ioctl

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic KCOV_INIT_TRACE ioctl plays the role in kernel coverage tracing. This ioctl's third argument is of type 'unsigned long', and the implementation in QEMU is straightforward. Signed-off-by: Aleksandar Markovic --- linux-user/ioctls.h | 1 + linux-user

[PATCH v5 11/20] linux-user: Add support for FS_IOC32_VERSION ioctls

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic These FS_IOC32_VERSION ioctls are identical to FS_IOC_VERSION ioctls, but without the anomaly of their number defined as if their third argument is of type long, while it is treated internally in kernel as is of type int. Signed-off-by: Aleksandar Markovic --- linux

[PATCH v5 19/20] linux-user: Add support for KCOV_ ioctls

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic KCOV_ENABLE and KCOV_DISABLE play the role in kernel coverage tracing. These ioctls do not use the third argument of ioctl() system call and are straightforward to implement in QEMU. Signed-off-by: Aleksandar Markovic --- linux-user/ioctls.h | 5 + linux

[PATCH v5 13/20] linux-user: Add support for FITRIM ioctl

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic FITRIM ioctl accepts a pointer to the structure struct fstrim_range { __u64 start; __u64 len; __u64 minlen; }; as its third argument. All ioctls in this group (FI* ioctl) are guarded with "#ifdef", so the guards are used in this impl

[PATCH v5 17/20] linux-user: Add support for FDGETFDCSTAT ioctl

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic FDGETFDCSTAT's third agrument is a pointer to the structure: struct floppy_fdc_state { int spec1; int spec2; int dtr; unsigned char version; unsigned char dor; unsigned long address; unsigned int rawcmd:2; unsigned int reset:1

[PATCH v5 10/20] linux-user: Add support for FS_IOC32_FLAGS ioctls

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic These FS_IOC32_FLAGS ioctls are identical to FS_IOC_FLAGS ioctls, but without the anomaly of their number defined as if their third argument is of type long, while it is treated internally in kernel as is of type int. Signed-off-by: Aleksandar Markovic --- linux-user

[PATCH v5 15/20] linux-user: Add support for FD ioctls

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic FDSETEMSGTRESH, FDSETMAXERRS, and FDGETMAXERRS ioctls are commands for controlling error reporting of a floppy drive. FDSETEMSGTRESH's third agrument is a pointer to the structure: struct floppy_max_errors { unsigned int abort, /* number of errors

[PATCH v5 14/20] linux-user: Add support for FIFREEZE and FITHAW ioctls

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic Both FIFREEZE and FITHAW ioctls accept an integer as their third argument. All ioctls in this group (FI* ioctl) are guarded with "#ifdef", so the guards are used in this implementation too for consistency (however, many of ioctls in FI* group became

[PATCH v5 12/20] linux-user: Add support for FS_IOC_FSXATTR ioctls

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic Both FS_IOC_FSGETXATTR and FS_IOC_FSSETXATTR accept a pointer to the structure struct file_clone_range { __s64 src_fd; __u64 src_offset; __u64 src_length; __u64 dest_offset; }; as their third argument. These ioctls were relatively

[PATCH v5 01/20] linux-user: Fix some constants in termbits.h

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic Some constants were defined in terms of host, instead of target, as they should be. Some additional trivial changes in this patch were forced by checkpatch.pl. Reviewed-by: Max Filippov Signed-off-by: Aleksandar Markovic --- linux-user/aarch64/termbits.h| 4

[PATCH v5 09/20] linux-user: Add support for FS_IOC_VERSION ioctls

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic A very specific thing for these two ioctls is that their code implies that their third argument is of type 'long', but the kernel uses that argument as if it is of type 'int'. This anomaly is recognized also in commit 6080723 (linux-user: Implement FS_IOC_GETFLAGS

[PATCH v5 07/20] linux-user: xtensa: Update syscall numbers to kernel 5.5 rc3 level

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic Update xtensa syscall numbers based on Linux kernel tag v5.5-rc3 (commit 46cf053e). Acked-by: Max Filippov Signed-off-by: Aleksandar Markovic --- cc: Max Filippov --- linux-user/xtensa/syscall_nr.h | 38 -- 1 file changed, 36

[PATCH v5 02/20] linux-user: alpha: Update syscall numbers to kernel 5.5 rc3 level

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic Update alpha syscall numbers based on Linux kernel tag v5.5-rc3 (commit 46cf053e). Signed-off-by: Aleksandar Markovic --- cc: Richard Henderson --- linux-user/alpha/syscall_nr.h | 35 +++ 1 file changed, 35 insertions(+) diff --git

[PATCH v5 03/20] linux-user: m68k: Update syscall numbers to kernel 5.5 rc3 level

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic Update m68k syscall numbers based on Linux kernel tag v5.5-rc3 (commit 46cf053e). Signed-off-by: Aleksandar Markovic --- cc: Laurent Vivier --- linux-user/m68k/syscall_nr.h | 50 +++- 1 file changed, 49 insertions(+), 1

[PATCH v5 06/20] linux-user: x86_64: Update syscall numbers to kernel 5.5 rc3 level

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic Update x86_64 syscall numbers based on Linux kernel tag v5.5-rc3 (commit 46cf053e). Signed-off-by: Aleksandar Markovic --- cc: Paolo Bonzini cc: Richard Henderson cc: Eduardo Habkost --- linux-user/x86_64/syscall_nr.h | 24 1 file

[PATCH v5 05/20] linux-user: mips: Update syscall numbers to kernel 5.5 rc3 level

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic Update mips syscall numbers based on Linux kernel tag v5.5-rc3 (commit 46cf053e). Signed-off-by: Aleksandar Markovic --- linux-user/mips/cpu_loop.c | 78 +- linux-user/mips/syscall_nr.h | 45

[PATCH v5 04/20] linux-user: microblaze: Update syscall numbers to kernel 5.5 rc3 level

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic Update microblaze syscall numbers based on Linux kernel tag v5.5-rc3 (commit 46cf053e). Signed-off-by: Aleksandar Markovic --- cc: Edgar E. Iglesias --- linux-user/microblaze/syscall_nr.h | 45 ++ 1 file changed, 45 insertions

[PATCH v5 00/20] linux-user: Misc patches for 5.0

2020-01-13 Thread Aleksandar Markovic
From: Aleksandar Markovic This series is a collection of linux-user patches I recently accumulated. The summary of the patches is as follows: Patch 1: Fix for some issues in termbits.h files. Patches 2-7: Updating syscall numbers Patch 8: A minor xtensa cleanup Patches 9-14: Adding support

[PATCH v4 18/19] linux-user: Add support for KCOV_ ioctls

2020-01-11 Thread Aleksandar Markovic
From: Aleksandar Markovic KCOV_ENABLE and KCOV_DISABLE play the role in kernel coverage tracing. These ioctls do not use the third argument of ioctl() system call and are straightforward to implement in QEMU. Signed-off-by: Aleksandar Markovic --- linux-user/ioctls.h | 5 + linux

[PATCH v4 15/19] linux-user: Add support for FDFMT ioctls

2020-01-11 Thread Aleksandar Markovic
From: Aleksandar Markovic FDFMTBEG, FDFMTTRK, and FDFMTEND ioctls provide means for controlling formatting of a floppy drive. FDFMTTRK's third agrument is a pointer to the structure: struct format_descr { unsigned int device,head,track; }; defined in Linux kernel header . Since all

[PATCH v4 16/19] linux-user: Add support for FDGETFDCSTAT ioctl

2020-01-11 Thread Aleksandar Markovic
From: Aleksandar Markovic FDGETFDCSTAT's third agrument is a pointer to the structure: struct floppy_fdc_state { int spec1; int spec2; int dtr; unsigned char version; unsigned char dor; unsigned long address; unsigned int rawcmd:2; unsigned int reset:1

[PATCH v4 17/19] configure: Detect kcov support and introduce CONFIG_KCOV

2020-01-11 Thread Aleksandar Markovic
From: Aleksandar Markovic kcov is kernel code coverage tracing tool. It requires kernel 4.4+ compiled with certain kernel options. Its interface consists of three ioctls. This patch checks if kcov support is present on build machine, and stores the result in variable CONFIG_KCOV, meant

[PATCH v4 12/19] linux-user: Add support for FITRIM ioctl

2020-01-11 Thread Aleksandar Markovic
From: Aleksandar Markovic FITRIM ioctl accepts a pointer to the structure struct fstrim_range { __u64 start; __u64 len; __u64 minlen; }; as its third argument. All ioctls in this group (FI* ioctl) are guarded with "#ifdef", so the guards are used in this impl

[PATCH v4 19/19] linux-user: Add support for KCOV_INIT_TRACE ioctl

2020-01-11 Thread Aleksandar Markovic
From: Aleksandar Markovic KCOV_INIT_TRACE ioctl plays the role in kernel coverage tracing. This ioctl's third argument is of type 'unsigned long', and the implementation in QEMU is straightforward. Signed-off-by: Aleksandar Markovic --- linux-user/ioctls.h | 1 + linux-user

<    5   6   7   8   9   10   11   12   13   14   >