* [Qemu-devel] [PATCH] linux-user: pass correct parameter to do_shmctl()
@ 2013-10-11 13:03 Petar Jovanovic
2013-10-11 19:10 ` Peter Maydell
0 siblings, 1 reply; 7+ messages in thread
From: Petar Jovanovic @ 2013-10-11 13:03 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial, riku.voipio, petar.jovanovic, aurelien
From: Petar Jovanovic <petar.jovanovic@imgtec.com>
Fix shmctl issue by passing correct parameter buf to do_shmctl().
Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
---
linux-user/syscall.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 4a14a43..1f6492e 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -3216,7 +3216,7 @@ static abi_long do_ipc(unsigned int call, int first,
/* IPC_* and SHM_* command values are the same on all linux platforms */
case IPCOP_shmctl:
- ret = do_shmctl(first, second, third);
+ ret = do_shmctl(first, second, ptr);
break;
default:
gemu_log("Unsupported ipc call: %d (version %d)\n", call, version);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH] linux-user: pass correct parameter to do_shmctl()
2013-10-11 13:03 [Qemu-devel] [PATCH] linux-user: pass correct parameter to do_shmctl() Petar Jovanovic
@ 2013-10-11 19:10 ` Peter Maydell
2013-10-11 20:44 ` Petar Jovanovic
0 siblings, 1 reply; 7+ messages in thread
From: Peter Maydell @ 2013-10-11 19:10 UTC (permalink / raw)
To: Petar Jovanovic
Cc: QEMU Trivial, Riku Voipio, QEMU Developers, Aurelien Jarno,
Petar Jovanovic
On 11 October 2013 22:03, Petar Jovanovic <petar.jovanovic@rt-rk.com> wrote:
> From: Petar Jovanovic <petar.jovanovic@imgtec.com>
>
> Fix shmctl issue by passing correct parameter buf to do_shmctl().
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
It would be nice if you gave more detail than "shmctl issue"...
(for instance there are some known issues that affect some
architectures but not others, cf
http://lists.gnu.org/archive/html/qemu-devel/2013-02/msg00447.html)
thanks
-- PMM
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH] linux-user: pass correct parameter to do_shmctl()
2013-10-11 19:10 ` Peter Maydell
@ 2013-10-11 20:44 ` Petar Jovanovic
2013-10-21 8:45 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
0 siblings, 1 reply; 7+ messages in thread
From: Petar Jovanovic @ 2013-10-11 20:44 UTC (permalink / raw)
To: Peter Maydell, Petar Jovanovic
Cc: QEMU Trivial, Riku Voipio, QEMU Developers, Aurelien Jarno
________________________________________
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 <petar.jovanovic@rt-rk.com> wrote:
> From: Petar Jovanovic <petar.jovanovic@imgtec.com>
>
> Fix shmctl issue by passing correct parameter buf to do_shmctl().
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
> 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.
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.
Regards,
Petar
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] linux-user: pass correct parameter to do_shmctl()
2013-10-11 20:44 ` Petar Jovanovic
@ 2013-10-21 8:45 ` Michael Tokarev
2013-10-21 10:49 ` Petar Jovanovic
0 siblings, 1 reply; 7+ messages in thread
From: Michael Tokarev @ 2013-10-21 8:45 UTC (permalink / raw)
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 <petar.jovanovic@rt-rk.com> wrote:
>> From: Petar Jovanovic <petar.jovanovic@imgtec.com>
>>
>> Fix shmctl issue by passing correct parameter buf to do_shmctl().
>
> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
>
>> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] linux-user: pass correct parameter to do_shmctl()
2013-10-21 8:45 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
@ 2013-10-21 10:49 ` Petar Jovanovic
2013-10-21 13:26 ` Peter Maydell
0 siblings, 1 reply; 7+ messages in thread
From: Petar Jovanovic @ 2013-10-21 10:49 UTC (permalink / raw)
To: Michael Tokarev
Cc: QEMU Trivial, Peter Maydell, Riku Voipio, Petar Jovanovic,
QEMU Developers
________________________________________
From: Michael Tokarev [mjt@tls.msk.ru]
Sent: Monday, October 21, 2013 10:45 AM
To: Petar Jovanovic
Cc: Peter Maydell; Petar Jovanovic; QEMU Trivial; Riku Voipio; QEMU Developers
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] linux-user: pass correct parameter to do_shmctl()
> What "[1]" are you referring to?
[1] http://patchwork.ozlabs.org/patch/281527/
> Shouldn't the two patches be applied together and be routed via some
> other, "non-trivial" tree instead?
This is what I originally did, but Peter suggested to separate it in two patches.
Dividing that patch into two separate patches made this one trivial.
Regards,
Petar
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] linux-user: pass correct parameter to do_shmctl()
2013-10-21 10:49 ` Petar Jovanovic
@ 2013-10-21 13:26 ` Peter Maydell
2013-10-21 14:07 ` Petar Jovanovic
0 siblings, 1 reply; 7+ messages in thread
From: Peter Maydell @ 2013-10-21 13:26 UTC (permalink / raw)
To: Petar Jovanovic
Cc: QEMU Trivial, Riku Voipio, Michael Tokarev, Petar Jovanovic,
QEMU Developers
On 21 October 2013 11:49, Petar Jovanovic <Petar.Jovanovic@imgtec.com> wrote:
> From: Michael Tokarev [mjt@tls.msk.ru]
>> Shouldn't the two patches be applied together and be routed via some
>> other, "non-trivial" tree instead?
>
> This is what I originally did, but Peter suggested to separate it in two patches.
> Dividing that patch into two separate patches made this one trivial.
I meant, "divide this one patch into two patches and post them as
a single patch series [ie a cover letter with patches labelled 1/2 and
2/2, with the correct threading]". This is the standard way to submit
changes which are best split into multiple patches/commits for
ease of review but which combine to form a single feature/bugfix.
These patches should all go via linux-user, yes.
thanks
-- PMM
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] linux-user: pass correct parameter to do_shmctl()
2013-10-21 13:26 ` Peter Maydell
@ 2013-10-21 14:07 ` Petar Jovanovic
0 siblings, 0 replies; 7+ messages in thread
From: Petar Jovanovic @ 2013-10-21 14:07 UTC (permalink / raw)
To: Peter Maydell
Cc: QEMU Trivial, Riku Voipio, Michael Tokarev, Petar Jovanovic,
QEMU Developers
________________________________________
From: Peter Maydell [peter.maydell@linaro.org]
Sent: Monday, October 21, 2013 3:26 PM
To: Petar Jovanovic
Cc: Michael Tokarev; Petar Jovanovic; QEMU Trivial; Riku Voipio; QEMU Developers
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] linux-user: pass correct parameter to do_shmctl()
> I meant, "divide this one patch into two patches and post them as
> a single patch series [ie a cover letter with patches labelled 1/2 and
> 2/2, with the correct threading]". This is the standard way to submit
> changes which are best split into multiple patches/commits for
> ease of review but which combine to form a single feature/bugfix.
The two patches can also be viewed as separate single patches, this is why
I sent them separately instead of a patch series.
Nevertheless, are we fine with the way the patches are sent for this time?
Regards,
Petar
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-10-21 14:08 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-11 13:03 [Qemu-devel] [PATCH] linux-user: pass correct parameter to do_shmctl() Petar Jovanovic
2013-10-11 19:10 ` Peter Maydell
2013-10-11 20:44 ` Petar Jovanovic
2013-10-21 8:45 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
2013-10-21 10:49 ` Petar Jovanovic
2013-10-21 13:26 ` Peter Maydell
2013-10-21 14:07 ` Petar Jovanovic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).