linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [rfc] changes to user memory mapping scheme
@ 2008-01-13  3:08 Nick Piggin
  2008-01-13  3:09 ` [rfc][patch 1/2] mm: introduce VM_MIXEDMAP Nick Piggin
  2008-01-13  3:10 ` [rfc][patch 2/2] mm: introduce optional pte_special pte bit Nick Piggin
  0 siblings, 2 replies; 24+ messages in thread
From: Nick Piggin @ 2008-01-13  3:08 UTC (permalink / raw)
  To: Linus Torvalds, Hugh Dickins, Jared Hulbert, Carsten Otte,
	Martin Schwidefsky, Heiko Carstens, linux-arch

Hi guys,

I'd like to get some comments about changes to the mm/memory.c code
which determines what to do with user ptes.

Basically, we have a vm_normal_page() to determine whether the page
under the pte is "normal" (has an underlying struct page, which is
refcounted); or "special" (may or may not have a struct page, but
either way we don't want to refcount anything).

Now the first patch should be uncontroversial. It adds a slightly
different special vma mapping that can support COW for arbitrary page and/or
pfn mappings. VM_PFNMAP cannot do this due to its special support for
COW on /dev/mem. We are going to need this to support non-struct page
backed XIP mappings, which is interesting for virtualisation, and for
Jared's (IMO very important) work on hybrid RAM/NVRAM filesystems.

The second patch simplifies a lot of this tricky logic by using an extra
bit in the valid, user pte. Now depending on how s390 goes, this patch
may or may not be required to get all this working on that architecture.
I'm posting it here for comments because firstly, it might be required;
and secondly, it is already written and has some other nice properties
for *any* architecture that implements it.

While we're working out the exact details of the xip stuff, I'd like to
pipeline things by asking for comments on the changes we need to the
memory mapping side of things.

Thanks,
Nick

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

end of thread, other threads:[~2008-01-16 18:19 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-13  3:08 [rfc] changes to user memory mapping scheme Nick Piggin
2008-01-13  3:09 ` [rfc][patch 1/2] mm: introduce VM_MIXEDMAP Nick Piggin
2008-01-13  3:10 ` [rfc][patch 2/2] mm: introduce optional pte_special pte bit Nick Piggin
2008-01-13  3:41   ` Linus Torvalds
2008-01-13  4:39     ` Nick Piggin
2008-01-13  4:45       ` Linus Torvalds
2008-01-13  5:06         ` Nick Piggin
2008-01-13 16:50           ` Linus Torvalds
2008-01-13 20:46             ` Martin Schwidefsky
2008-01-14 21:04             ` Jared Hulbert
2008-01-15  9:18               ` Carsten Otte
2008-01-16  3:38             ` Nick Piggin
2008-01-16  4:04               ` Linus Torvalds
2008-01-16  4:37                 ` Nick Piggin
2008-01-16  4:48                   ` Linus Torvalds
2008-01-16  4:51                     ` David Miller
2008-01-16  5:23                       ` Linus Torvalds
2008-01-16  5:48                         ` Nick Piggin
2008-01-16  9:52                           ` Martin Schwidefsky
2008-01-16  5:17                     ` Nick Piggin
2008-01-16 10:52                       ` Catalin Marinas
2008-01-16 18:18                         ` Russell King
2008-01-16 17:21                       ` Linus Torvalds
2008-01-16 17:14   ` David Howells

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).