From: Keir Fraser Subject: Re: Re: [PATCH] Fix performance problems with mprotect() Date: Mon, 07 Jan 2008 17:35:41 +0000 Message-ID: References: <4781EE5F.092E.0048.1@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4781EE5F.092E.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 , Andi Kleen Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org The BUG_ON() is valid until the per-domain biglock is removed. -- Keir On 7/1/08 16:16, "Bruce Rogers" wrote: > I'm not sure how this BUG_ON would get triggered with current x86 paging > semantics, and probably isn't needed I think. > Am I missing something? > The code is almost exactly the same as the existing update_intpte, which has > the same BUG_ON, and so I just left it in. > (BTW:I considered merging the new functions into the non "sync" versions but > opted not to.) > > - Bruce > >>>> On 1/7/2008 at 8:18 AM, in message , Andi >>>> Kleen > wrote: >> "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 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel