From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757428AbYFSAlh (ORCPT ); Wed, 18 Jun 2008 20:41:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756018AbYFSAla (ORCPT ); Wed, 18 Jun 2008 20:41:30 -0400 Received: from gate.crashing.org ([63.228.1.57]:42393 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751957AbYFSAl3 (ORCPT ); Wed, 18 Jun 2008 20:41:29 -0400 Subject: Re: [PATCH 1 of 4] mm: add a ptep_modify_prot transaction abstraction From: Benjamin Herrenschmidt Reply-To: benh@kernel.crashing.org To: Linus Torvalds Cc: Jeremy Fitzhardinge , xen-devel , Peter Zijlstra , kvm-devel , x86@kernel.org, LKML , Virtualization Mailing List , Hugh Dickins , Ingo Molnar , Thomas Gleixner In-Reply-To: References: <1213831403.8011.24.camel@pasglop> <4859A149.9090004@goop.org> <4859A528.1010107@goop.org> Content-Type: text/plain Date: Thu, 19 Jun 2008 10:39:31 +1000 Message-Id: <1213835971.8011.54.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2008-06-18 at 17:24 -0700, Linus Torvalds wrote: > > On Wed, 18 Jun 2008, Jeremy Fitzhardinge wrote: > > > > Along the lines of: > > Hell no. There's a reason we have a special set_wrprotect() thing. We can > do it more efficiently on native hardware by just clearing the bit > atomically. No need to do the cmpxchg games. But we can't batch ... Ben.