Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753111AbXJEEPa (ORCPT ); Fri, 5 Oct 2007 00:15:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750893AbXJEEPW (ORCPT ); Fri, 5 Oct 2007 00:15:22 -0400 Received: from gw.goop.org ([64.81.55.164]:60618 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750811AbXJEEPV (ORCPT ); Fri, 5 Oct 2007 00:15:21 -0400 Message-ID: <4705BA56.5080605@goop.org> Date: Thu, 04 Oct 2007 21:15:18 -0700 From: Jeremy Fitzhardinge User-Agent: Thunderbird 2.0.0.5 (X11/20070727) MIME-Version: 1.0 To: Rik van Riel CC: Hugh Dickens , David Rientjes , Zachary Amsden , Andrew Morton , Linus Torvalds , Rusty Russell , Andi Kleen , Keir Fraser , Linux Kernel Mailing List Subject: Re: race with page_referenced_one->ptep_test_and_clear_young and pagetable setup/pulldown References: <470596C4.8060804@goop.org> <20071004215231.42b1bc21@bree.surriel.com> In-Reply-To: <20071004215231.42b1bc21@bree.surriel.com> X-Enigmail-Version: 0.95.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 838 Lines: 22 Rik van Riel wrote: > Either of these two would work. Another alternative could be to > let test_and_clear_pte_flags have an exception table entry, where > we jump right to the next instruction if the instruction clearing > the flag fails. > > That is the essentially variant you need for Xen, except the fast > path is still exactly the same it is as when running on native > hardware. > Hm, that wouldn't end up clearing the bit. You'd need a Xen-specific exception handler to do that, which would turn the whole thing into Xen-specific code, and you're back at adding a pv-op. J - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/