From: Keir Fraser Subject: Re: [PATCH] respin of mprotect performance patch Date: Sun, 13 Jan 2008 09:21:04 +0000 Message-ID: References: <4789207C.5C6B.0048.1@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4789207C.5C6B.0048.1@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Bruce Rogers , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 13/1/08 03:08, "Bruce Rogers" wrote: > I made a few tweaks to your patch as follows: > As I see it we need to preserve the existing AD bits but additionally OR in > the AD bits being passed in (see behavior of pte_modify(), where it preserves > current AD in use of _PAGE_CHG_MASK along with ORing in newprot bits, which > include AD bits (A at least).) > See update_intpte() for this change. This way is strictly more expressive (you can get my behaviour by clearing A/D bits in the passed-in 'val'). So seems good to me. > Also we need to remove cmd value from req.ptr in do_mmu_update.. Yes, missed that. Looks good! -- Keir