From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: [PATCH] Fix performance problems with mprotect() Date: Mon, 07 Jan 2008 16:18:59 +0100 Message-ID: References: <477EAC09.5C6B.0048.1@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <477EAC09.5C6B.0048.1@novell.com> (Bruce Rogers's message of "Fri\, 04 Jan 2008 21\:49\:41 -0700") 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 Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org "Bruce Rogers" writes: > + > + /* Allowed to change in Accessed/Dirty flags only. */ > + BUG_ON((t ^ old) & ~(intpte_t)(_PAGE_ACCESSED|_PAGE_DIRTY)); Are you sure that BUG_ON can't be triggered from the hypercall? It should error out in this case I think. -Andi