From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933222AbZFOTW3 (ORCPT ); Mon, 15 Jun 2009 15:22:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1763578AbZFOTWJ (ORCPT ); Mon, 15 Jun 2009 15:22:09 -0400 Received: from mx2.redhat.com ([66.187.237.31]:35300 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765194AbZFOTWH (ORCPT ); Mon, 15 Jun 2009 15:22:07 -0400 Message-ID: <4A369F3F.5060600@redhat.com> Date: Mon, 15 Jun 2009 22:21:35 +0300 From: Avi Kivity User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: Peter Zijlstra CC: Ingo Molnar , Mathieu Desnoyers , "H. Peter Anvin" , Linus Torvalds , mingo@redhat.com, paulus@samba.org, acme@redhat.com, linux-kernel@vger.kernel.org, penberg@cs.helsinki.fi, vegard.nossum@gmail.com, efault@gmx.de, jeremy@goop.org, npiggin@suse.de, tglx@linutronix.de, linux-tip-commits@vger.kernel.org Subject: Re: [tip:perfcounters/core] perf_counter: x86: Fix call-chain support to use NMI-safe methods References: <20090615171845.GA7664@elte.hu> <4A369508.2090707@zytor.com> <20090615184858.GD6520@Krystal> <1245091917.6741.185.camel@laptop> <20090615185907.GF6520@Krystal> <20090615190321.GA11641@elte.hu> <20090615190759.GA12778@elte.hu> <1245093011.6741.213.camel@laptop> In-Reply-To: <1245093011.6741.213.camel@laptop> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/15/2009 10:10 PM, Peter Zijlstra wrote: >> But one thing is sure: it is certainly going to be faster than the >> INVLPG(s!) we have to do with the GUP solution. >> > > Sure, but we only pay that price when we do the callchain bit, not on > every NMI. > You can read cr2 on nmi entry and nmi exit, and only write it if it has changed (if it turns out that writing cr2 is expensive; ISTR that it isn't). -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.