Re: [Qemu-devel] [PATCH v4] linux-user: add signalfd/signalfd4 syscalls

2016-01-18 Thread Laurent Vivier
Le 18/01/2016 11:30, Paolo Bonzini a écrit : > > > On 02/10/2015 14:48, Laurent Vivier wrote: >> +target_fd_trans = g_realloc(target_fd_trans, >> +target_fd_max * sizeof(TargetFdTrans)); > > This should be TargetFdTrans * (reported by Coverity). Eve

Re: [Qemu-devel] [PATCH v4] linux-user: add signalfd/signalfd4 syscalls

2016-01-18 Thread Paolo Bonzini
On 02/10/2015 14:48, Laurent Vivier wrote: > +target_fd_trans = g_realloc(target_fd_trans, > +target_fd_max * sizeof(TargetFdTrans)); This should be TargetFdTrans * (reported by Coverity). Even better you could use g_renew. It's harmless because size

Re: [Qemu-devel] [PATCH v4] linux-user: add signalfd/signalfd4 syscalls

2015-12-18 Thread Laurent Vivier
Le 06/10/2015 10:16, Riku Voipio a écrit : > On perjantaina 2. lokakuuta 2015 15.48.09 EEST, Laurent Vivier wrote: >> This patch introduces a system very similar to the one used in the kernel >> to attach specific functions to a given file descriptor. > > Thanks, applied to linux-user When will

Re: [Qemu-devel] [PATCH v4] linux-user: add signalfd/signalfd4 syscalls

2015-11-21 Thread Laurent Vivier
Le 06/10/2015 10:16, Riku Voipio a écrit : > On perjantaina 2. lokakuuta 2015 15.48.09 EEST, Laurent Vivier wrote: >> This patch introduces a system very similar to the one used in the kernel >> to attach specific functions to a given file descriptor. > > Thanks, applied to linux-user As I don'

Re: [Qemu-devel] [PATCH v4] linux-user: add signalfd/signalfd4 syscalls

2015-10-06 Thread Riku Voipio
On perjantaina 2. lokakuuta 2015 15.48.09 EEST, Laurent Vivier wrote: This patch introduces a system very similar to the one used in the kernel to attach specific functions to a given file descriptor. Thanks, applied to linux-user In this case, we attach a specific "host_to_target()" translat

[Qemu-devel] [PATCH v4] linux-user: add signalfd/signalfd4 syscalls

2015-10-02 Thread Laurent Vivier
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 re