On Wed, May 07, 2008 at 09:02:17AM +0200, Ingo Molnar wrote:I did check that with _PAGE_PROT_PRESERVE_BITS defined to zero, compiler optimizes vm_get_page_prot_preserve to generate same code as vm_get_page_prot with no function call (on x86 64). So, things should be OK from overhead perspective. But, from the code cleanliness aspect, PRESERVE_BITS looks unclean and needs some cleanup. The reason I posted the patch as is, was to get the confirmation on the original thread, whether this indeed fixes those PAT related error messages. Probably other architectures does not depend on preserving things in vma->vm_page_prot once ptes are set correctly. With PAT, we use vm_page_prot to keep track of PAT attributes for vmas from parent to child across fork. pte_modify() part will be required in all archs that wants to preserve some bits in pte in a mprotect call. Thanks, Venki --
| Andrea Arcangeli | [PATCH 06 of 11] rwsem contended |
| Mikulas Patocka | LFENCE instruction (was: [rfc][patch 3/3] x86: optimise barriers) |
| Rafael J. Wysocki | Re: [Bug 10030] Suspend doesn't work when SD card is inserted |
| Manu Abraham | PCIE |
git: | |
| Sverre Rabbelier | Git vs Monotone |
| Junio C Hamano | [ANNOUNCE] GIT 1.5.4 |
| Bill Lear | Meaning of "fatal: protocol error: bad line length character"? |
| Junio C Hamano | Re: [PATCH] Teach remote machinery about remotes.default config variable |
| Richard Stallman | Real men don't attack straw men |
| Stefan Beke | mail dovecot: pipe() failed: Too many open files |
| Wijnand Wiersma | Almost success: OpenBSD on Xen |
| Didier Wiroth | how can I "find xyz | xargs tar" ... like gtar |
| Greg A. Woods | Re: Fork bomb protection patch |
| Tyler Retzlaff | Re: more summer of code fun |
| Elad Efrat | Re: sysctl knob to let sugid processes dump core (pr 15994) |
| Thor Lancelot Simon | Re: FFS journal |
