Re: [Qemu-devel] [PATCH 1/2] linux-user: Fix target FS_IOC_GETFLAGS and FS_IOC_SETFLAGS numbers

2017-10-16 Thread Riku Voipio
On Thu, Oct 12, 2017 at 04:30:44PM +0100, Peter Maydell wrote: > We were defining TARGET_FS_IOC_GETFLAGS and TARGET_FS_IOC_SETFLAGS > using the host 'long' type in the size field, which meant that > they had the wrong values if the host and guest had different > sized longs. Switch to abi_long

Re: [Qemu-devel] [PATCH 1/2] linux-user: Fix target FS_IOC_GETFLAGS and FS_IOC_SETFLAGS numbers

2017-10-12 Thread Laurent Vivier
Le 12/10/2017 à 17:30, Peter Maydell a écrit : > We were defining TARGET_FS_IOC_GETFLAGS and TARGET_FS_IOC_SETFLAGS > using the host 'long' type in the size field, which meant that > they had the wrong values if the host and guest had different > sized longs. Switch to abi_long instead. > > This

[Qemu-devel] [PATCH 1/2] linux-user: Fix target FS_IOC_GETFLAGS and FS_IOC_SETFLAGS numbers

2017-10-12 Thread Peter Maydell
We were defining TARGET_FS_IOC_GETFLAGS and TARGET_FS_IOC_SETFLAGS using the host 'long' type in the size field, which meant that they had the wrong values if the host and guest had different sized longs. Switch to abi_long instead. This fixes a bug where these ioctls don't work on 32-bit guests