[Qemu-devel] [PATCH] linux-user: correct semctl() and shmctl()

2013-01-20 Thread Laurent Vivier
The parameter union semun of semctl() is not a value but a pointer to the value. Moreover, all fields of target_su must be swapped (if needed). The third argument of shmctl is a pointer. WITHOUT this patch: $ ipcs kernel not configured for shared memory qemu: uncaught target signal 11

Re: [Qemu-devel] [PATCH] linux-user: correct semctl() and shmctl()

2013-01-20 Thread Peter Maydell
On 20 January 2013 21:12, Laurent Vivier laur...@vivier.eu wrote: case GETALL: case SETALL: -err = target_to_host_semarray(semid, array, target_su.array); +err = target_to_host_semarray(semid, array, +

Re: [Qemu-devel] [PATCH] linux-user: correct semctl() and shmctl()

2013-01-01 Thread Laurent Vivier
Ping ! Le jeudi 20 décembre 2012 à 21:58 +0100, Laurent Vivier a écrit : The parameter union semun of semctl() is not a value but a pointer to the value. Moreover, all fields of target_su must be swapped (if needed). The third argument of shmctl is a pointer. WITHOUT this patch: $

[Qemu-devel] [PATCH] linux-user: correct semctl() and shmctl()

2012-12-20 Thread Laurent Vivier
The parameter union semun of semctl() is not a value but a pointer to the value. Moreover, all fields of target_su must be swapped (if needed). The third argument of shmctl is a pointer. WITHOUT this patch: $ ipcs kernel not configured for shared memory qemu: uncaught target signal 11