Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1543933

Re: [RFC PATCH 02/14] sparc64: add new fields to mmu context for shared context support

From Sam Ravnborg <sam@ravnborg.org>
Newsgroups linux.kernel
Subject Re: [RFC PATCH 02/14] sparc64: add new fields to mmu context for shared context support
Date 2016-12-17 08:40 +0100
Message-ID <sPhL3-6GL-3@gated-at.bofh.it> (permalink)
References <sP5Ad-7fU-9@gated-at.bofh.it> <sP5Ad-7fU-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Mike.

On Fri, Dec 16, 2016 at 10:35:25AM -0800, Mike Kravetz wrote:
> Add new fields to the mm_context structure to support shared context.
> Instead of a simple context ID, add a pointer to a structure with a
> reference count.  This is needed as multiple tasks will share the
> context ID.

What are the benefits with the shared_mmu_ctx struct?
It does not save any space in mm_context_t, and the CPU only
supports one extra context.
So it looks like over-engineering with all the extra administration
required to handle it with refcount, poitners etc.

what do I miss?

	Sam

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC PATCH 02/14] sparc64: add new fields to mmu context for shared context support Mike Kravetz <mike.kravetz@oracle.com> - 2016-12-16 19:40 +0100
  Re: [RFC PATCH 02/14] sparc64: add new fields to mmu context for  shared context support Sam Ravnborg <sam@ravnborg.org> - 2016-12-17 08:40 +0100
    Re: [RFC PATCH 02/14] sparc64: add new fields to mmu context for  shared context support Mike Kravetz <mike.kravetz@oracle.com> - 2016-12-19 00:50 +0100
      Re: [RFC PATCH 02/14] sparc64: add new fields to mmu context for  shared context support Sam Ravnborg <sam@ravnborg.org> - 2016-12-21 19:20 +0100
  Re: [RFC PATCH 02/14] sparc64: add new fields to mmu context for  shared context support Sam Ravnborg <sam@ravnborg.org> - 2016-12-17 08:40 +0100
    Re: [RFC PATCH 02/14] sparc64: add new fields to mmu context for  shared context support Mike Kravetz <mike.kravetz@oracle.com> - 2016-12-19 00:40 +0100
      Re: [RFC PATCH 02/14] sparc64: add new fields to mmu context for  shared context support Sam Ravnborg <sam@ravnborg.org> - 2016-12-21 19:20 +0100

csiph-web