Re: [Qemu-devel] [Qemu-trivial] [PATCH] linux-user: Add random ioctls

2017-10-05 Thread Marco A L Barbosa
I submitted a new patch. Thanks. On Thu, Oct 5, 2017 at 7:35 AM, Laurent Vivier wrote: > On 05/10/2017 12:24, Marco A L Barbosa wrote: > > I doesn't look really trivial... > > > > To manage the buf field you must read buf_size and it cannot be done > in > > a generic way: you must de

Re: [Qemu-devel] [Qemu-trivial] [PATCH] linux-user: Add random ioctls

2017-10-05 Thread Laurent Vivier
On 05/10/2017 12:24, Marco A L Barbosa wrote: > I doesn't look really trivial... > > To manage the buf field you must read buf_size and it cannot be done in > a generic way: you must define a function to translate the buffer, use > IOCTL_SPECIAL() with RNDADDENTROPY and RNDGETPOOL.

Re: [Qemu-devel] [Qemu-trivial] [PATCH] linux-user: Add random ioctls

2017-10-05 Thread Marco A L Barbosa
> > I doesn't look really trivial... > > To manage the buf field you must read buf_size and it cannot be done in > a generic way: you must define a function to translate the buffer, use > IOCTL_SPECIAL() with RNDADDENTROPY and RNDGETPOOL. > > You should send your patch using "git send-email" or "gi

Re: [Qemu-devel] [Qemu-trivial] [PATCH] linux-user: Add random ioctls

2017-10-05 Thread Laurent Vivier
On 05/10/2017 00:06, Marco A L Barbosa wrote: > I don't know how (and if it is necessary) to add buf field to > rand_pool_info struct. See > https://github.com/torvalds/linux/blob/5924bbecd0267d87c24110cbe2041b5075173a25/include/uapi/linux/random.h#L17 I doesn't look really trivial... To manage t