Control: tag -1 + patch fixed-upstream On Sat, 30 Jan 2016 13:02:44 +0300 Michael Tokarev <m...@tls.msk.ru> wrote: [] > I looked at this, and can say it is not an easy thing to implement. > > The system call is trivial to do in qemu, but the problem is that > we have to catch reads from the file descriptor returned, and > convert signalfd_siginfo structure between host and target. > > That's probably why it hasn't been implemented so far.
Actually it HAS been implemented, in commit: commit e36800c91a74b656b4b4c74483863950cf9ec202 Author: Laurent Vivier <laur...@vivier.eu> Date: Fri Oct 2 14:48:09 2015 +0200 linux-user: add signalfd/signalfd4 syscalls This patch introduces a system very similar to the one used in the kernel to attach specific functions to a given file descriptor. In this case, we attach a specific "host_to_target()" translator to the fd returned by signalfd() to be able to byte-swap the signalfd_siginfo structure provided by read(). Which has been applied upstream after 2.5 version. I'll include it in debian once 2.6 will be out. Hopefully no backporting of large stuff will be needed. Thanks, /mjt