From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753209AbYIXX5R (ORCPT ); Wed, 24 Sep 2008 19:57:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752082AbYIXX5F (ORCPT ); Wed, 24 Sep 2008 19:57:05 -0400 Received: from extu-mxob-1.symantec.com ([216.10.194.28]:56650 "EHLO extu-mxob-1.symantec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752047AbYIXX5C (ORCPT ); Wed, 24 Sep 2008 19:57:02 -0400 Date: Thu, 25 Sep 2008 00:55:36 +0100 (BST) From: Hugh Dickins X-X-Sender: hugh@blonde.site To: Benjamin Herrenschmidt cc: Jeremy Fitzhardinge , Linux Memory Management List , Linux Kernel list , Nick Piggin , Martin Schwidefsky Subject: Re: PTE access rules & abstraction In-Reply-To: <1222291248.8277.90.camel@pasglop> Message-ID: References: <1221846139.8077.25.camel@pasglop> <48D739B2.1050202@goop.org> <1222117551.12085.39.camel@pasglop> <1222291248.8277.90.camel@pasglop> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 25 Sep 2008, Benjamin Herrenschmidt wrote: > > Now, regarding the above bug, I'm afraid the only approaches I see that > would work would be to have either a ptep_get_and_clear_flush(), which I > suppose x86 virt. people will hate, or maybe to actually have a powerpc > specific variant of the new start/commit hooks that does the flush. Whyever not the latter? Jeremy seems to have gifted that to you, for precisely such a purpose. Hugh p.s. I surely agree with you over the name ptep_get_and_clear_full(): horrid, even more confusing than the tlb->fullmm from which it derives its name. I expect I'd agree with you over a lot more too, but please, bugfixes first.