linux-user: pass correct parameter to do_shmctl()
PATCH 1/1 linux-user: pass correct parameter to do_shmctl()
From: Petar Jovanovic <[email protected]>
Fix shmctl issue by passing correct parameter buf to do_shmctl().
--- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
linux-user/syscall.c +1 -1
@@ -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);
Signature · 1 line
1.7.9.5
Quoted 3 lines · Petar Jovanovic
From: Petar Jovanovic <[email protected]>
Fix shmctl issue by passing correct parameter buf to
do_shmctl().
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
Petar Jovanovic
Reviewed-by Peter Maydell________________________________________
From: Peter Maydell [[email protected]]
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()
Quoted 3 lines · Petar Jovanovic
From: Petar Jovanovic <[email protected]>
Fix shmctl issue by passing correct parameter buf to
do_shmctl().
Quoted 1 line
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
Quoted 14 lines · Petar Jovanovic
________________________________________
From: Peter Maydell [[email protected]]
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 todo_shmctl()Quoted 3 lines · Petar Jovanovic
From: Petar Jovanovic <[email protected]>
Fix shmctl issue by passing correct parameter buf to
do_shmctl().Reviewed-by Peter Maydell <[email protected]>
Quoted 7 lines
Quoted 1 line
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_permandtarget_shmid_ds. The layout of the structs is important.
What "[1]" are you referring to?
Quoted 7 lines
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
________________________________________
From: Michael Tokarev [[email protected]]
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()
Quoted 1 line
What "[1]" are you referring to?
[1] http://patchwork.ozlabs.org/patch/281527/
Quoted 2 lines
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
Quoted 6 lines · Petar Jovanovic
From: Michael Tokarev [[email protected]]
Quoted 2 lines
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
________________________________________
From: Peter Maydell [[email protected]]
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()
Quoted 5 lines
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