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

2013-01-30 Thread Peter Maydell
On 21 January 2013 06:25, Laurent Vivier wrote> case GETALL: > case SETALL: > -err = target_to_host_semarray(semid, &array, target_su.array); > -if (err) > +err = target_to_host_semarray(semid, &array, > + ts

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

2013-01-26 Thread Laurent Vivier
Ping Le lundi 21 janvier 2013 à 07:25 +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][v3] 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 (Segm