Received: from eggs.gnu.org ([2001:4830:134:3::10]:53832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYB7h-0006v6-Hq for qemu-devel@nongnu.org; Mon, 21 Oct 2013 04:46:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYB7c-0004sj-NI for qemu-devel@nongnu.org; Mon, 21 Oct 2013 04:46:01 -0400 Message-ID: <5264E9C3.6090001@msgid.tls.msk.ru> Date: Mon, 21 Oct 2013 12:45:55 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <1381496638-29127-1-git-send-email-petar.jovanovic@rt-rk.com>, <56EA75BA695AE044ACFB41322F6D2BF40224FF76@BADAG02.ba.imgtec.org> In-Reply-To: <56EA75BA695AE044ACFB41322F6D2BF40224FF76@BADAG02.ba.imgtec.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] linux-user: pass correct parameter to do_shmctl() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Petar Jovanovic Cc: QEMU Trivial , Peter Maydell , Riku Voipio , Petar Jovanovic , QEMU Developers 12.10.2013 00:44, Petar Jovanovic wrote: > ________________________________________ > From: Peter Maydell [peter.maydell@linaro.org] > Sent: Friday, October 11, 2013 9:10 PM > To: Petar Jovanovic > Cc: QEMU Developers; QEMU Trivial; Riku Voipio; Petar Jovanovic; Aurelien Jarno > Subject: Re: [Qemu-devel] [PATCH] linux-user: pass correct parameter to do_shmctl() > > On 11 October 2013 22:03, Petar Jovanovic wrote: >> From: Petar Jovanovic >> >> Fix shmctl issue by passing correct parameter buf to do_shmctl(). > > Reviewed-by: Peter Maydell > >> It would be nice if you gave more detail than "shmctl issue"... > > Yes, indeed. However, this is a bit tricky, because it can be associated > with different issues, and this particular fix is a follow up to an > another change [1] that I posted previously that defines arch-specific > structs target_ipc_perm and target_shmid_ds. The layout of the structs > is important. What "[1]" are you referring to? > This particular change will for instance, when joined with the > preceding change, make the code correctly return values in the buf > struct after: > > shmctl(shm_id, IPC_STAT, &buf) > > Different architectures benefit from these two patches. Shouldn't the two patches be applied together and be routed via some other, "non-trivial" tree instead? Thanks, /mjt