Re: [Qemu-devel] [PATCH] linux-user: correctly align target_epoll_event

2015-10-06 Thread Riku Voipio
On lauantaina 3. lokakuuta 2015 18.14.06 EEST, Laurent Vivier wrote: According to comments in /usr/include/linux/eventpoll.h, poll_event is packed only on x86_64. And to be sure fields are correctly aligned in epoll_data, use abi_XXX types for all of them. Moreover, fd type is wrong: fd is int,

[Qemu-devel] [PATCH] linux-user: correctly align target_epoll_event

2015-10-03 Thread Laurent Vivier
According to comments in /usr/include/linux/eventpoll.h, poll_event is packed only on x86_64. And to be sure fields are correctly aligned in epoll_data, use abi_XXX types for all of them. Moreover, fd type is wrong: fd is int, not ulong. This has been tested with a ppc guest on an x86_64 host: w