Re: [Qemu-devel] What opaque stand for?

2014-11-07 Thread Erik de Castro Lopo
to something, but the code doesn't know what it points to (eg it could be a struct, or a value, or an array etc). HTH, Erik -- -- Erik de Castro Lopo http://www.mega-nerd.com/

[Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2014-08-23 Thread Erik de Castro Lopo
Unfortunately it doesn't work with armhf on amd64 linux-user. Use the test program from comment #27 I get: schroot -c armhf -- ./timer_test_armhf About to call host's timer_create (0, 0x7fff6ee80720, 0x625b1f40) Host's timer_create returns -22 Failed to create timer: Invalid

[Qemu-devel] [Bug 1357206] Re: QEMU user mode still crashes in multi-thread code.

2014-08-15 Thread Erik de Castro Lopo
I think this if bug lp:1098729 which is still open. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1357206 Title: QEMU user mode still crashes in multi-thread code. Status in QEMU: New Bug

[Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2014-08-09 Thread Erik de Castro Lopo
I've been looking at it over the last week or so and I have submitted a patch toe the qemu-devel mailing list to fix another timer_create() problem sometime in the last week. Unfortunately the test case @pittit submitted is far harder to support than the original test case. In this case the

[Qemu-devel] [PATCH] linux-user/syscall.c : Minor cleanups of timer_create handling.

2014-08-02 Thread Erik de Castro Lopo
* Add missing unlock of user struct. * Remove unneeded pointer variable. Signed-off-by: Erik de Castro Lopo er...@mega-nerd.com --- linux-user/syscall.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index a50229d..7d8f54a

Re: [Qemu-devel] [PATCH] linux-user/syscall.c : Minor cleanups of timer_create handling.

2014-08-02 Thread Erik de Castro Lopo
). You're right. Thanks. I will amend this. Erik -- -- Erik de Castro Lopo http://www.mega-nerd.com/

Re: [Qemu-devel] [PATCH] linux-user/syscall.c : Minor cleanups of timer_create handling.

2014-08-02 Thread Erik de Castro Lopo
-- -- Erik de Castro Lopo http://www.mega-nerd.com/

[Qemu-devel] [PATCH] linux-user: Add missing unlock_user_struct to timer_create.

2014-08-02 Thread Erik de Castro Lopo
Signed-off-by: Erik de Castro Lopo er...@mega-nerd.com --- linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index a50229d..5f22b37 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -9432,6 +9432,7 @@ abi_long

[Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2014-02-10 Thread Erik de Castro Lopo
The fix that was commited to the Qemu git tree fixed the original test case I had. @pittit then found another test case that fails and I intend to fix that when I find a good chunk of free time. Problem is I only work on Wemu sporadically and it takes me quite a bit of time to get up to speed when

Re: [Qemu-devel] Question on pointers in the qemu user space emulation

2014-01-17 Thread Erik de Castro Lopo
Peter Maydell wrote: On 17 January 2014 06:33, Erik de Castro Lopo mle+to...@mega-nerd.com wrote: I'm currently working on implementing a missing part of a linux-user syscall. This syscall includes a function pointer for a callback. Which syscall? Callbacks from the kernel are pretty

[Qemu-devel] Question on pointers in the qemu user space emulation

2014-01-16 Thread Erik de Castro Lopo
that the 32 bit host con only ever give out 32 bit addreses to the 64 bit guest just cancel out the possibility of any problems? Cheers, Erik -- -- Erik de Castro Lopo http://www.mega-nerd.com/

[Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2014-01-14 Thread Erik de Castro Lopo
Thanks for the test case Martin. Problem confirmed. The issue is that timer_create allows a number of different callback mechanisms and I had only implemented the one I need. Working on it now. -- You received this bug notification because you are a member of qemu- devel-ml, which is

Re: [Qemu-devel] [PATCH] linux-user: Remove regs parameter load_elf_binary and load_flt_binary

2014-01-09 Thread Erik de Castro Lopo
Will Newton wrote: The regs parameter is not used anywhere, so remove it. Signed-off-by: Will Newton will.new...@linaro.org Reviewed-by: Erik de Castro Lopo er...@mega-nerd.com -- -- Erik de Castro Lopo http://www.mega

Re: [Qemu-devel] [PATCH] linux-user: Remove regs parameter load_elf_binary and load_flt_binary

2014-01-09 Thread Erik de Castro Lopo
Will Newton wrote: The regs parameter is not used anywhere, so remove it. Signed-off-by: Will Newton will.new...@linaro.org Reviewed-by: Erik de Castro Lopo er...@mega-nerd.com -- -- Erik de Castro Lopo http://www.mega

Re: [Qemu-devel] [PATCH v3] linux-user: Support the accept4 socketcall

2014-01-06 Thread Erik de Castro Lopo
André Hentschel wrote: From: André Hentschel n...@dawncrow.de Cc: Riku Voipio riku.voi...@iki.fi Signed-off-by: André Hentschel n...@dawncrow.de Reviewed-by: Erik de Castro Lopo er...@mega-nerd.com -- -- Erik de Castro

Re: [Qemu-devel] [PATCH resend] linux-user: Support the accept4 socketcall

2014-01-05 Thread Erik de Castro Lopo
that and I'll be happy to slap a reviewed-by sticker on it. Be sure to CC me on the fixed version of the patch. Cheers, Erik -- -- Erik de Castro Lopo http://www.mega-nerd.com/

[Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2013-12-21 Thread Erik de Castro Lopo
I don't have a machine running Ubuntu. I onlu lodged a bug here because this is the official bug tracker for Qemu. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1042388 Title: qemu: Unsupported

[Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2013-12-21 Thread Erik de Castro Lopo
This my Debian system: $ uname -a Linux rolly 3.11-2-amd64 #1 SMP Debian 3.11.10-1 (2013-12-04) x86_64 GNU/Linux I normally run my qemu chroot using schroot as follows: schroot -c armhf If I need to install packages I schroot as root: schroot -c armhf -u root In the chroot,

[Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2013-12-20 Thread Erik de Castro Lopo
If someone wants to fix what's currently in Ubtuntu they should make a package which includes those two patches. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1042388 Title: qemu: Unsupported

[Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2013-12-20 Thread Erik de Castro Lopo
Its currently in git HEAD. It will be in the next full release which I think is 2.0. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1042388 Title: qemu: Unsupported syscall: 257 (timer_create)

[Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2013-12-20 Thread Erik de Castro Lopo
I just tried it here on my system using: - QEMU compiled from git HEAD. - ghc 7.6.3-6 from Debian and I was able to start compiling GHC from git. I didn't let it run to completion because I only have my laptop available at the moment. I suggest you try debugging some more and maybe try

[Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2013-12-19 Thread Erik de Castro Lopo
This has been fixed in Git in the following commits: commit f4f1e10a58cb5ec7806d47d20671e668a52c3e70 Author: Erik de Castro Lopo er...@mega-nerd.com Date: Fri Nov 29 18:39:23 2013 +1100 linux-user: Implement handling of 5 POSIX timer syscalls. Implement

Re: [Qemu-devel] Patch v4 : POSIX timer implementation for linux-user.

2013-11-28 Thread Erik de Castro Lopo
-- -- Erik de Castro Lopo http://www.mega-nerd.com/

Re: [Qemu-devel] Patch v3 : POSIX timer implementation for linux-user.

2013-11-27 Thread Erik de Castro Lopo
Erik de Castro Lopo wrote: Erik de Castro Lopo wrote: mle...@mega-nerd.com wrote: Changes from original: * Call host's libc functions directly rather than _syscall*() (as suggested by Peter Maydell). * Remove un-needed #defines. Launchpad bug is here

Re: [Qemu-devel] [PATCH v2] linux-user: Fix stat64 syscall for SPARC64

2013-10-30 Thread Erik de Castro Lopo
. Signed-off-by: Stefan Weil s...@weilnetz.de Reviewed-by: Erik de Castro Lopo er...@mega-nerd.com -- -- Erik de Castro Lopo http://www.mega-nerd.com/

Re: [Qemu-devel] [PATCH] linux-user: create target_structs header to place ipc_perm and shmid_ds

2013-10-29 Thread Erik de Castro Lopo
CCing Riku Voipio who is listed in the MAINTAINERS file as the maintainer if linux-user. Erik de Castro Lopo wrote: Petar Jovanovic wrote: From: Petar Jovanovic petar.jovano...@imgtec.com Creating target_structs header in linux-user/$arch/ and making target_ipc_perm

Re: [Qemu-devel] Patch v3 : POSIX timer implementation for linux-user.

2013-10-29 Thread Erik de Castro Lopo
Erik de Castro Lopo wrote: mle...@mega-nerd.com wrote: Changes from original: * Call host's libc functions directly rather than _syscall*() (as suggested by Peter Maydell). * Remove un-needed #defines. Launchpad bug is here: https://bugs.launchpad.net/bugs/1042388

Re: [Qemu-devel] [PATCH] linux-user: create target_structs header to place ipc_perm and shmid_ds

2013-10-25 Thread Erik de Castro Lopo
-by: Petar Jovanovic petar.jovano...@imgtec.com Reviewed-by: Erik de Castro Lopo er...@mega-nerd.com I'm relatively new to QEMU and this is my first review. This change looks sane to me, applies cleanly and compiles without any new warnings. In future I will be attempting to review anything in the linux

Re: [Qemu-devel] Patch v3 : POSIX timer implementation for linux-user.

2013-10-25 Thread Erik de Castro Lopo
/284786/ Erik -- -- Erik de Castro Lopo http://www.mega-nerd.com/

Re: [Qemu-devel] Patch v3 : POSIX timer implementation for linux-user.

2013-10-19 Thread Erik de Castro Lopo
circumstances. Erik -- -- Erik de Castro Lopo http://www.mega-nerd.com/

[Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2013-10-19 Thread Erik de Castro Lopo
Bah, the patch in #13 segfaults in some circumstances, the previous one doesn't. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1042388 Title: qemu: Unsupported syscall: 257 (timer_create) Status

Re: [Qemu-devel] Patch v3 : POSIX timer implementation for linux-user.

2013-10-19 Thread Erik de Castro Lopo
Erik de Castro Lopo wrote: mle...@mega-nerd.com wrote: Changes from original: * Call host's libc functions directly rather than _syscall*() (as suggested by Peter Maydell). * Remove un-needed #defines. Launchpad bug is here: https://bugs.launchpad.net/bugs/1042388 Bah

[Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2013-10-18 Thread Erik de Castro Lopo
The two patches have been sent to the qemu-devel mailing list and I will also attach them here. ?field.comment=The two patches have been sent to the qemu-devel mailing list and I will also attach them here. ** Attachment added: posix-timer-patch.tgz

Re: [Qemu-devel] [PATCH 2/2] linux-user: Implement handling of 5 POSIX timer syscalls.

2013-10-18 Thread Erik de Castro Lopo
. Possibly it was the first thing I tried that worked. I'll have a look at doing it as you suggested. Cheers, Erik -- -- Erik de Castro Lopo http://www.mega-nerd.com/

[Qemu-devel] [PATCH 1/2] linux-user: Add target struct defs needed for POSIX timer syscalls.

2013-10-18 Thread Erik de Castro Lopo
--- linux-user/syscall_defs.h | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 5f53a28..ca683d1 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -168,6 +168,11 @@

[Qemu-devel] [PATCH 2/2] linux-user: Implement handling of 5 POSIX timer syscalls.

2013-10-18 Thread Erik de Castro Lopo
Implement timer_create, timer_settime, timer_gettime, timer_getoverrun and timer_delete. --- linux-user/syscall.c | 188 +++ 1 file changed, 188 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 4a14a43..5be400d 100644

Re: [Qemu-devel] [PATCH 1/2] linux-user: Add target struct defs needed for POSIX timer syscalls.

2013-10-18 Thread Erik de Castro Lopo
Erik de Castro Lopo wrote: --- Sorry, this is actually version 2 of this patch. Still working out git send-email. Cheers, Erik

[Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2013-10-18 Thread Erik de Castro Lopo
Latest version of my patch. Also submitted to the qemu-devel mailing list. ** Attachment added: posix-timer-patch.tgz https://bugs.launchpad.net/qemu/+bug/1042388/+attachment/3882940/+files/posix-timer-patch.tgz -- You received this bug notification because you are a member of qemu-

Re: [Qemu-devel] [PATCH 2/2] LICENSE: clarify

2013-07-31 Thread Erik de Castro Lopo
-- -- Erik de Castro Lopo http://www.mega-nerd.com/

[Qemu-devel] Licensing question

2013-07-30 Thread Erik de Castro Lopo
For the first its easy as it is clearly marked as GPLv2+. The second is unmarked. Is there some blanket statement somewhere that all files that are not explicitly marked are under say GPLv2+? Cheers, Erik -- -- Erik de Castro

Re: [Qemu-devel] Licensing question

2013-07-30 Thread Erik de Castro Lopo
of that license. Does this mean GPLv2, GPLv2+, GPL3 or GPLv3+? Sorry about these annoying questions, but lawyers tend to be sticklers for these minor details. Cheer, Erik -- -- Erik de Castro Lopo http://www.mega-nerd.com/

[Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2013-04-10 Thread Erik de Castro Lopo
Still waiting on approval from my employer's lawyers to release it. Have no idea how long this is going to take. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1042388 Title: qemu: Unsupported

Re: [Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2013-04-03 Thread Erik de Castro Lopo
LocutusOfBorg wrote: Any news on this? Sorry, still working on getting permission from my employer to get this released. Erik -- -- Erik de Castro Lopo http://www.mega-nerd.com/

[Qemu-devel] [Bug 1098729] Re: qemu-user-static for armhf: segfault in threaded code

2013-01-13 Thread Erik de Castro Lopo
At the top of function cpu_unlink_tb() in translate-all.c: /* FIXME: TB unchaining isn't SMP safe. For now just ignore the problem and hope the cpu will stop of its own accord. For userspace emulation this often isn't actually as bad as it sounds. Often signals are used

[Qemu-devel] [Bug 668799] Re: qemu-arm segfaults executing msgmerge (gettext)

2013-01-13 Thread Erik de Castro Lopo
The test I'm using in LP:1098729 hangs or segfaults nearly every single run. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/668799 Title: qemu-arm segfaults executing msgmerge (gettext) Status in

[Qemu-devel] [Bug 1098729] [NEW] qemu-user-static for armhf: segfault in threaded code

2013-01-11 Thread Erik de Castro Lopo
Public bug reported: Currently running QEMU from git (fedf2de31023) and running the armhf version of qemu-user-static which I have renamed qemu-armhf-static to follow the naming convention used in Debian. The host systems is a Debian testing x86_64-linux and I have an Debian testing armhf

[Qemu-devel] [Bug 1098729] Re: qemu-user-static for armhf: segfault in threaded code

2013-01-11 Thread Erik de Castro Lopo
I can also comple a purely static version of the test program in the armhf chroot using: gcc -Wall -static -pthread dotprod_mutex.c -o dotprod-mutex-static and then run it simply using: qemu-arm-static dotprod-mutex-static which fails just like it does in the chroot. -- You received

[Qemu-devel] [Bug 1098729] Re: qemu-user-static for armhf: segfault in threaded code

2013-01-11 Thread Erik de Castro Lopo
Begining to think this is memory corruption because of the number of different failure modes. In addition to the crashes in the initial report I have also seen the following: qemu: uncaught target signal 4 (Illegal instruction) - core dumped More temporaries freed than allocated!

[Qemu-devel] [Bug 1098729] Re: qemu-user-static for armhf: segfault in threaded code

2013-01-11 Thread Erik de Castro Lopo
What's the best way to debug the qemu user space emulation? I read this: http://wiki.qemu.org/Documentation/Debugging but that seems to mainly refer to the qemu machine emulation. I added -ggdb to QEMU_CFLAGS in config-host.mak so it builds with debug symbols but gdb still doesn't provide

Re: [Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2013-01-10 Thread Erik de Castro Lopo
Matt Robinson wrote: Is this patch available for public consumption? It doesn't seem to be upstream. Unfortunately not yet. I'm working on getting permission to release it. Cheers, Erik -- -- Erik de Castro Lopo http

Re: [Qemu-devel] [Bug 1054831] Re: qemu-user-static for sparc32plus : bash: fork: Invalid argument

2013-01-03 Thread Erik de Castro Lopo
Dillon Amburgey wrote: This is due to QEMU sparc32plus-linux-user not being compiled with NPTL support. I just check, and NPTL is enabled. I also did this on the binary I compiled: $ strings /usr/bin/qemu-sparc32plus-static | grep nptl ../nptl/sysdeps/pthread/createthread.c

[Qemu-devel] [Bug 1054831] [NEW] qemu-user-static for sparc32plus : bash: fork: Invalid argument

2012-09-24 Thread Erik de Castro Lopo
Public bug reported: On Debian x86-64 host system I setup a sparc chroot using: host $ mkdir sparc host $ sudo debootstrap --arch=sparc --foreign wheezy sparc http://ftp.au.debian.org/debian host $ sudo cp ~/Git/qemu/sparc32plus-linux-user/qemu-sparc32plus

Re: [Qemu-devel] [PATCH] linux-user: Add naive implementation of capget() syscall

2012-09-22 Thread Erik de Castro Lopo
seem to run anything with the linux-user emulation. Erik -- -- Erik de Castro Lopo http://www.mega-nerd.com/

[Qemu-devel] lp bug #1052857: qemu-user compiled static for ppc fails

2012-09-20 Thread Erik de Castro Lopo
HI all, I reported this bug ion launchpad, but it never seemed to show up here on the list: https://bugs.launchpad.net/qemu/+bug/1052857 Anyone have any clues on what's going on here? Erik -- -- Erik de Castro Lopo http

[Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2012-09-19 Thread Erik de Castro Lopo
I have a fix for this. I can now successfully install ghc and compile programs with it. In the process of cleaning up the patch and working on a test for the test suite. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Qemu-devel] [Bug 1052857] [NEW] qemu-user compiled static for ppc fails

2012-09-19 Thread Erik de Castro Lopo
Public bug reported: On debian I used debootstrap to set up a powerpc chroot. If I then copy in a statically linked qemu-user ppc binary it will work for some commands in the chroot and fail for others. Steps to reproduce: host$ mkdir powerpc host$ sudo debootstrap --arch=powerpc --foreign

[Qemu-devel] Posix timer syscalls ; dealing with the timer_t type

2012-08-30 Thread Erik de Castro Lopo
-- -- Erik de Castro Lopo http://www.mega-nerd.com/

Re: [Qemu-devel] Posix timer syscalls ; dealing with the timer_t type

2012-08-30 Thread Erik de Castro Lopo
Andreas Färber wrote: Hi, Am 30.08.2012 14:30, schrieb Erik de Castro Lopo: I'm working on implementing Posix timers in linux-user. I'm having trouble figuring out how to handle the timer_t type. Consider the following code with say 32 bit ARM being emulated on 64 bit x86-64

[Qemu-devel] Posix timer syscalls [Bug 1042388]

2012-08-29 Thread Erik de Castro Lopo
; } _sigev_un; } sigevent_t; Any ideas on how to handle the union within this struct? Cheers, Erik -- -- Erik de Castro Lopo http://www.mega-nerd.com/

Re: [Qemu-devel] Posix timer syscalls [Bug 1042388]

2012-08-29 Thread Erik de Castro Lopo
. Otherwise convert _sigev_thread. Ah, that makes sense. Thanks. Cheers, Erik -- -- Erik de Castro Lopo http://www.mega-nerd.com/

Re: [Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2012-08-28 Thread Erik de Castro Lopo
Peter Maydell wrote: A couple of days for somebody who knows what they're doing and has a convenient test case. Working on it.

[Qemu-devel] [Bug 1042388] [NEW] qemu: Unsupported syscall: 257

2012-08-27 Thread Erik de Castro Lopo
Public bug reported: Running qemu-arm-static for git HEAD. When I try to install ghc from debian into my arm chroot I get: Setting up ghc (7.4.1-4) ... qemu: Unsupported syscall: 257 ghc: timer_create: Function not implemented qemu: Unsupported syscall: 257 ghc-pkg: timer_create: Function not

Re: [Qemu-devel] [Bug 1042388] Re: qemu: Unsupported syscall: 257 (timer_create)

2012-08-27 Thread Erik de Castro Lopo
Peter Maydell wrote: Yes, qemu's linux-user emulation layer doesn't currently support any of the posix timer syscalls. Any idea how much work is involved to implement this? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.