[Bug 1858461] Re: Please refactor linux-user/mips/cpu_loop.c

2020-01-15 Thread puchuu
I've created a new patches for getdents bug https://sourceware.org/bugzilla/show_bug.cgi?id=23960 and I can't reproduce python permissions issue anymore. My mips image built with qemu user works perfect. ** Bug watch added: Sourceware.org Bugzilla #23960 https://sourceware.org/bugzilla/show_bug

[Bug 1858461] Re: Please refactor linux-user/mips/cpu_loop.c

2020-01-08 Thread puchuu
Sure, I will try to reproduce permissions issue and create a new issue later. I will try to provide small patches too. I've created a question on kernel bugzilla. https://bugzilla.kernel.org/show_bug.cgi?id=206135 They should know that applications wants much more than "tbl" provides. ** Bug watc

[Bug 1858461] Re: Please refactor linux-user/mips/cpu_loop.c

2020-01-08 Thread puchuu
After applying my patch it seems like another issue was fixed: "emerge" inside qemu has no permissions bug. Without that patch I was able to reproduce "emerge" program can't apply any patch (permission denied). So it looks like old hardcoded table has some wrong values that are not compatible with

[Bug 1858461] Re: Please refactor linux-user/mips/cpu_loop.c

2020-01-08 Thread puchuu
I've just written these generators in ruby, but it can be rewritten in python, perl, etc. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1858461 Title: Please refactor linux-user/mips/cpu_loop.c St

[Bug 1858461] Re: Please refactor linux-user/mips/cpu_loop.c

2020-01-08 Thread puchuu
** Patch added: "mips_syscall_generators.patch" https://bugs.launchpad.net/qemu/+bug/1858461/+attachment/5318622/+files/mips_syscall_generators.patch -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/

[Bug 1858461] Re: Please refactor linux-user/mips/cpu_loop.c

2020-01-08 Thread puchuu
Hello, thank you. I want to introduce another patch with syscalls related generator. Please review it. I think about the following development flow: 1. Kernel updates and maintains "tbl". 2. Qemu developer wants to implement new syscall (like clone3) in "linux-user/syscall.c". 3. Developer clone

[Bug 1858461] Re: Please refactor linux-user/mips/cpu_loop.c

2020-01-07 Thread puchuu
It is possible to do the following: cd /usr/src/linux make clean make CC=clang ~/workspace/CastXML/build/bin/castxml -nostdinc -isystem /usr/lib/clang/9.0.1/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I.

[Bug 1858461] Re: Please refactor linux-user/mips/cpu_loop.c

2020-01-07 Thread puchuu
Unfortunately we can generate only very short table of syscalls using this method. Most of the syscalls are missing from "dwo" files. =( -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1858461 Title:

[Bug 1858461] Re: Please refactor linux-user/mips/cpu_loop.c

2020-01-07 Thread puchuu
I've found a reliable way to generate syscall arguments count table. cd /usr/src/linux make clean make CONFIG_DEBUG_INFO=y CONFIG_DEBUG_INFO_SPLIT=y CONFIG_DEBUG_INFO_DWARF4=y llvm-dwarfdump -debug-info --name ksys_getdents64 --show-children --recurse-depth=1 fs/readdir.dwo 0x00013738: DW_TAG_su

[Bug 1858461] Re: Please refactor linux-user/mips/cpu_loop.c

2020-01-06 Thread puchuu
** Patch added: "generated_mips_syscall_table.template.patch" https://bugs.launchpad.net/qemu/+bug/1858461/+attachment/5318010/+files/generated_mips_syscall_table.template.patch -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. http

[Bug 1858461] Re: Please refactor linux-user/mips/cpu_loop.c

2020-01-06 Thread puchuu
Please do not use previous workaround in prod, it is bad, just proof of concept. It looks like nobody is maintaining syscall list. It is not possible to trust it. We have "arch/mips/kernel/syscalls/syscall_o32.tbl", we need to create generator. Generator should provide maximum possible number of

[Bug 1858461] Re: Please refactor linux-user/mips/cpu_loop.c

2020-01-06 Thread puchuu
Added workaround for now ** Patch added: "mips_nr_base patch" https://bugs.launchpad.net/qemu/+bug/1858461/+attachment/5317949/+files/mips_nr_base.patch -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/b

[Bug 1858461] [NEW] Please refactor linux-user/mips/cpu_loop.c

2020-01-06 Thread puchuu
Public bug reported: Hello. I am working with qemu on test images. I've added a new syscall (436) to qemu but received ENOSYS from mips application. Please open "linux-user/mips/cpu_loop.c". I've added at the end of "mips_syscall_args" the following: ``` MIPS_SYS(sys_getdents64_x32, 3) ``` But

[Qemu-devel] [Bug 1207896] [NEW] binfmt wrapper for argv[0] handling

2013-08-02 Thread puchuu
Public bug reported: Please, add patch https://lists.gnu.org/archive/html/qemu- devel/2011-09/msg03841.html to upstream. 2 years have passed and this patch is not jet applied. Why? 99% GNU/Linux distribution uses qemu with this patch. It is 100% needed. ** Affects: qemu Importance: Undecided