All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] linux-user: sparc64: Use correct target SHMLBA in shmat()
@ 2016-10-04 13:13 Peter Maydell
  2016-10-04 17:02 ` Laurent Vivier
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Maydell @ 2016-10-04 13:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: patches, Riku Voipio

In commit 40df8c0c0722 support was added for target-specific
handling of SHMLBA. Unfortunately the sparc64-specific part
of the change got lost somewhere between the patch being
posted to the list and going into master:
 http://patchwork.ozlabs.org/patch/646980/
 http://patchwork.ozlabs.org/patch/673339/

Add the accidentally-dropped code.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 linux-user/sparc64/target_syscall.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/linux-user/sparc64/target_syscall.h b/linux-user/sparc64/target_syscall.h
index b7e3bf8..2cbbaae 100644
--- a/linux-user/sparc64/target_syscall.h
+++ b/linux-user/sparc64/target_syscall.h
@@ -23,4 +23,11 @@ struct target_pt_regs {
 #define TARGET_MLOCKALL_MCL_CURRENT 0x2000
 #define TARGET_MLOCKALL_MCL_FUTURE  0x4000
 
+#define TARGET_FORCE_SHMLBA
+
+static inline abi_ulong target_shmlba(CPUSPARCState *env)
+{
+    return MAX(TARGET_PAGE_SIZE, 16 * 1024);
+}
+
 #endif /* SPARC64_TARGET_SYSCALL_H */
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] linux-user: sparc64: Use correct target SHMLBA in shmat()
  2016-10-04 13:13 [Qemu-devel] [PATCH] linux-user: sparc64: Use correct target SHMLBA in shmat() Peter Maydell
@ 2016-10-04 17:02 ` Laurent Vivier
  2016-10-04 17:13   ` Peter Maydell
  0 siblings, 1 reply; 4+ messages in thread
From: Laurent Vivier @ 2016-10-04 17:02 UTC (permalink / raw)
  To: Peter Maydell, qemu-devel; +Cc: Riku Voipio, patches



Le 04/10/2016 à 15:13, Peter Maydell a écrit :
> In commit 40df8c0c0722 support was added for target-specific

I don't have commit 40df8c0c0722, I have
ee8e76141b4dd00f8e97fda274876a17f9a46bbe.

Is this something wrong with my repo?

Laurent

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] linux-user: sparc64: Use correct target SHMLBA in shmat()
  2016-10-04 17:02 ` Laurent Vivier
@ 2016-10-04 17:13   ` Peter Maydell
  2016-10-05 18:44     ` Riku Voipio
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Maydell @ 2016-10-04 17:13 UTC (permalink / raw)
  To: Laurent Vivier; +Cc: QEMU Developers, Riku Voipio, Patch Tracking

On 4 October 2016 at 18:02, Laurent Vivier <laurent@vivier.eu> wrote:
>
>
> Le 04/10/2016 à 15:13, Peter Maydell a écrit :
>> In commit 40df8c0c0722 support was added for target-specific
>
> I don't have commit 40df8c0c0722, I have
> ee8e76141b4dd00f8e97fda274876a17f9a46bbe.
>
> Is this something wrong with my repo?

No, I cut-n-pasted the wong commit hash into the commit message
by accident. The commit message should read "ee8e76141b4dd"
(the patch itself is correct I think).

thanks
-- PMM

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] linux-user: sparc64: Use correct target SHMLBA in shmat()
  2016-10-04 17:13   ` Peter Maydell
@ 2016-10-05 18:44     ` Riku Voipio
  0 siblings, 0 replies; 4+ messages in thread
From: Riku Voipio @ 2016-10-05 18:44 UTC (permalink / raw)
  To: Peter Maydell; +Cc: Laurent Vivier, QEMU Developers, Patch Tracking

On Tue, Oct 04, 2016 at 06:13:47PM +0100, Peter Maydell wrote:
> On 4 October 2016 at 18:02, Laurent Vivier <laurent@vivier.eu> wrote:
> >
> >
> > Le 04/10/2016 à 15:13, Peter Maydell a écrit :
> >> In commit 40df8c0c0722 support was added for target-specific
> >
> > I don't have commit 40df8c0c0722, I have
> > ee8e76141b4dd00f8e97fda274876a17f9a46bbe.
> >
> > Is this something wrong with my repo?
> 
> No, I cut-n-pasted the wong commit hash into the commit message
> by accident. The commit message should read "ee8e76141b4dd"
> (the patch itself is correct I think).

Applied, thanks

Riku

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-05 18:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-04 13:13 [Qemu-devel] [PATCH] linux-user: sparc64: Use correct target SHMLBA in shmat() Peter Maydell
2016-10-04 17:02 ` Laurent Vivier
2016-10-04 17:13   ` Peter Maydell
2016-10-05 18:44     ` Riku Voipio

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.