On Fri, Apr 27, 2012 at 07:58:38PM +0100, Richard W.M. Jones wrote:
Has anyone tried to port software which uses getcontext/setcontext
(ie. coroutines, green threads etc)?
Although we have compiled qemu for ARM, it fails to run because
getcontext returns an error with errno == ENOSYS. qemu contains its
own coroutine implementation.
OK looking at this a bit more, it turns out that Linaro hit this bug a
month or two ago and added a *context implementation in glibc-ports:
https://bugs.launchpad.net/qemu-linaro/+bug/883136
http://sourceware.org/ml/libc-ports/2012-02/msg00077.html
Upstream:
http://sourceware.org/git/?p=glibc-ports.git;a=commit;h=402a76b62dded0ee9...
I'm a bit confused about the relationship of glibc, glibc-ports,
Fedora and ARM. Can we include this patch in our glibc package to fix
the bug in our qemu?
I'd prefer a real implementation of the ucontext functions, instead of
using the much less tested threads fallback code in qemu.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/