From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757195AbZCBSzO (ORCPT ); Mon, 2 Mar 2009 13:55:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752718AbZCBSzA (ORCPT ); Mon, 2 Mar 2009 13:55:00 -0500 Received: from casper.infradead.org ([85.118.1.10]:51083 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751572AbZCBSy7 (ORCPT ); Mon, 2 Mar 2009 13:54:59 -0500 Date: Mon, 2 Mar 2009 10:55:00 -0800 From: Arjan van de Ven To: Mathieu Desnoyers Cc: Masami Hiramatsu , Ingo Molnar , Andrew Morton , Nick Piggin , Steven Rostedt , Andi Kleen , linux-kernel@vger.kernel.org, Thomas Gleixner , Peter Zijlstra , Frederic Weisbecker , Linus Torvalds , Rusty Russell , "H. Peter Anvin" , Steven Rostedt Subject: Re: [RFC][PATCH] x86: make text_poke() atomic Message-ID: <20090302105500.569e1270@infradead.org> In-Reply-To: <20090302183617.GA25105@Krystal> References: <20090223173108.GB1441@Krystal> <49A82851.5080707@redhat.com> <20090227180724.GA17947@Krystal> <49A83237.40604@redhat.com> <20090227185316.GA19811@Krystal> <49A853CD.3020607@redhat.com> <49AC10E9.1090102@redhat.com> <20090302102841.7e099670@infradead.org> <20090302183617.GA25105@Krystal> Organization: Intel X-Mailer: Claws Mail 3.7.0 (GTK+ 2.14.7; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2 Mar 2009 13:36:17 -0500 Mathieu Desnoyers wrote: > * Arjan van de Ven (arjan@infradead.org) wrote: > > > > > > Use map_vm_area() instead of vmap() in text_poke() for avoiding > > > page allocation and delayed unmapping, and call > > > vunmap_page_range() and local_flush_tlb() directly because this > > > mapping is temporary and local. > > > > > > At the result of above change, text_poke() becomes atomic and can > > > be called from stop_machine() etc. > > > > .... but text_poke() realistically needs to call stop_machine() > > since you can't poke live code.... so that makes me wonder how > > useful this is... > > Hi Arjan, > > Stop machine is not required when inserting a breakpoint. that is your assumption; when I spoke with CPU architects they cringed ;( -- Arjan van de Ven Intel Open Source Technology Centre For development, discussion and tips for power savings, visit http://www.lesswatts.org