[Qemu-devel] [PATCH v2] linux-user: implement HWCAP bits on MIPS

2018-03-15 Thread James Cowgill
Add support for the two currently defined HWCAP bits on MIPS - R6 and MSA. Buglink: https://bugs.launchpad.net/qemu/+bug/1754372 Signed-off-by: James Cowgill <james.cowg...@mips.com> --- v2 changes: - Fix kernel hwcap.h path. linux-user/elfload.c | 24 1 file c

Re: [Qemu-devel] [PATCH] linux-user: implement HWCAP bits on MIPS

2018-03-15 Thread James Cowgill
Hi, On 15/03/18 13:00, Laurent Vivier wrote: > Le 15/03/2018 à 11:52, James Cowgill a écrit : >> Hi, >> >> On 14/03/18 16:13, Laurent Vivier wrote: >>> Le 14/03/2018 à 16:31, James Cowgill a écrit : >>>> +enum { >>>> +HWCAP_MIPS_R6

Re: [Qemu-devel] [PATCH] linux-user: implement HWCAP bits on MIPS

2018-03-15 Thread James Cowgill
Hi, On 14/03/18 16:13, Laurent Vivier wrote: > Le 14/03/2018 à 16:31, James Cowgill a écrit : >> Add support for the two currently defined HWCAP bits on MIPS - R6 and >> MSA. >> >> Buglink: https://bugs.launchpad.net/qemu/+bug/1754372 >> Signed-off-by: Jame

[Qemu-devel] [Bug 1754372] Re: Set MIPS MSA in ELF Auxiliary Vectors

2018-03-14 Thread James Cowgill
Patch: https://lists.nongnu.org/archive/html/qemu-devel/2018-03/msg04399.html ** Changed in: qemu Status: New => In Progress ** Changed in: qemu Assignee: (unassigned) => James Cowgill (jcowgill) -- You received this bug notification because you are a member of qemu- de

[Qemu-devel] [PATCH] linux-user: implement HWCAP bits on MIPS

2018-03-14 Thread James Cowgill
Add support for the two currently defined HWCAP bits on MIPS - R6 and MSA. Buglink: https://bugs.launchpad.net/qemu/+bug/1754372 Signed-off-by: James Cowgill <james.cowg...@mips.com> --- This was resent because I think I messed up my email config. Apologies if you receive this twice. linu

[Qemu-devel] [PATCH] linux-user: implement HWCAP bits on MIPS

2018-03-14 Thread James Cowgill
Add support for the two currently defined HWCAP bits on MIPS - R6 and MSA. Buglink: https://bugs.launchpad.net/qemu/+bug/1754372 Signed-off-by: James Cowgill <james.cowg...@mips.com> --- linux-user/elfload.c | 24 1 file changed, 24 insertions(+) diff --git a/linu

[Qemu-devel] [Bug 1673976] Re: linux-user clone() can't handle glibc posix_spawn() (causes locale-gen to assert)

2017-11-22 Thread James Cowgill
I think I see the problem. This glibc commit rewrote the posix_spawn implementation on Linux: https://sourceware.org/git/?p=glibc.git;a=commit;h=9ff72da471a509a8c19791efe469f47fa6977410 It now relies on the exact behavior of clone(CLONE_VM | CLONE_VFORK) - ie: - That the parent will wait for the

[Qemu-devel] [Bug 1673976] Re: linux-user clone() can't handle glibc posix_spawn() (causes locale-gen to assert)

2017-11-22 Thread James Cowgill
Sorry, this is probably the commit that broke things (not the one above). I was added in glibc 2.25: https://sourceware.org/git/?p=glibc.git;a=commit;h=4b4d4056bb154603f36c6f8845757c1012758158 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed

[Qemu-devel] [Bug 1673976] Re: linux-user clone() can't handle glibc posix_spawn() (causes locale-gen to assert)

2017-11-22 Thread James Cowgill
I can reproduce the bug in a mips64el chroot running current Debian unstable - the posix_spawn example you mention fails there. I have tested v2.11.0-rc2 and it fails there as well. I think you need glibc >= 2.25 to trigger the bug (artful / bionic chroot). I only noticed it due to Debian updating

[Qemu-devel] [PATCH v2] linux-user: return EINVAL from prctl(PR_*_SECCOMP)

2017-11-06 Thread James Cowgill
seccomp prctl calls. This is the error returned by the kernel when seccomp support is disabled. Fixes: https://bugs.launchpad.net/qemu/+bug/1726394 Signed-off-by: James Cowgill <james.cowg...@mips.com> --- Changes from v1: - add comment linux-user/syscall.c | 6 ++ 1 file chan

Re: [Qemu-devel] [PATCH] linux-user: return EINVAL from prctl(PR_*_SECCOMP)

2017-11-03 Thread James Cowgill
Hi, On 03/11/17 14:29, Laurent Vivier wrote: > Le 03/11/2017 à 13:07, James Cowgill a écrit : >> If an application tries to install a seccomp filter using >> prctl(PR_SET_SECCOMP), the filter is likely for the target instead of the >> host >> architecture. Th

[Qemu-devel] [PATCH] linux-user: return EINVAL from prctl(PR_*_SECCOMP)

2017-11-03 Thread James Cowgill
seccomp prctl calls. This is the error returned by the kernel when seccomp support is disabled. Fixes: https://bugs.launchpad.net/qemu/+bug/1726394 Signed-off-by: James Cowgill <james.cowg...@mips.com> --- linux-user/syscall.c | 4 1 file changed, 4 insertions(+) diff --git a/linu

[Qemu-devel] [Bug 1643619] [NEW] netlink broken on big-endian mips

2016-11-21 Thread James Cowgill
Public bug reported: Debian QEMU version 2.7.0, but the bug also appears in current git master (commit c36ed06e9159) As the summary says, netlink is completely broken on big-endian mips running qemu-user. Running 'ip route' from within a Debian chroot with QEMU simply hangs. Running amd64

[Qemu-devel] [Bug 1643619] Re: netlink broken on big-endian mips

2016-11-21 Thread James Cowgill
I also notice fd_trans_unregister does not appear in the socketcall implementation which seems like an oversight. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1643619 Title: netlink broken on