RE: [git pull] x86 PAT changes

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pallipadi, Venkatesh <venkatesh.pallipadi@...>
Cc: Ingo Molnar <mingo@...>, H. Peter Anvin <hpa@...>, <linux-kernel@...>, Andrew Morton <akpm@...>, Thomas Gleixner <tglx@...>
Date: Saturday, April 26, 2008 - 1:15 pm

On Sat, 26 Apr 2008, Pallipadi, Venkatesh wrote:

If so, just disable it unconditionally for mmap.

As mentioned, that's really just a return to original Linux /dev/mmap 
semantics: long ago (well, not _that_ long ago) we never used to be able 
to mmap() normal kernel memory, because the page counts would get screwed 
up on pages that weren't marked PG_Reserved.

So the traditional Linux behavior for mmap() on /dev/mem was always to 
only allow it on memory that either had no "struct page *" backing at all, 
or that was marked PG_Reserved (ie the ISA hole ay 640k-1M and things like 
the BIOS tables etc).

Going back to that doesn't sound horrible.

		Linus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[git pull] x86 PAT changes, Ingo Molnar, (Thu Apr 24, 6:56 pm)
Re: [git pull] x86 PAT changes, Gabriel C, (Sat Apr 26, 9:40 am)
Re: [git pull] x86 PAT changes, Ingo Molnar, (Sat Apr 26, 10:42 am)
Re: [git pull] x86 PAT changes, Gabriel C, (Sat Apr 26, 11:37 am)
Re: [git pull] x86 PAT changes, Ingo Molnar, (Sat Apr 26, 11:41 am)
Re: [git pull] x86 PAT changes, Linus Torvalds, (Sat Apr 26, 12:43 pm)
Re: [git pull] x86 PAT changes, Linus Torvalds, (Fri Apr 25, 7:43 pm)
Re: [git pull] x86 PAT changes, Ingo Molnar, (Sat Apr 26, 5:57 am)
Re: [git pull] x86 PAT changes, H. Peter Anvin, (Fri Apr 25, 8:06 pm)
Re: [git pull] x86 PAT changes, Linus Torvalds, (Fri Apr 25, 9:12 pm)
Re: [git pull] x86 PAT changes, Ingo Molnar, (Sat Apr 26, 4:56 am)
RE: [git pull] x86 PAT changes, Pallipadi, Venkatesh, (Sat Apr 26, 12:54 pm)
RE: [git pull] x86 PAT changes, Linus Torvalds, (Sat Apr 26, 1:15 pm)
Re: [git pull] x86 PAT changes, Venki Pallipadi, (Sat Apr 26, 2:32 pm)
[patch] x86, PAT: disable /dev/mem mmap RAM with PAT, Ingo Molnar, (Sat Apr 26, 3:07 pm)