From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753450AbcAMXnj (ORCPT ); Wed, 13 Jan 2016 18:43:39 -0500 Received: from mga09.intel.com ([134.134.136.24]:54865 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753378AbcAMXni (ORCPT ); Wed, 13 Jan 2016 18:43:38 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,291,1449561600"; d="scan'208";a="726498932" Subject: Re: [RFC 09/13] x86/mm: Disable interrupts when flushing the TLB using CR3 To: Andy Lutomirski , Linus Torvalds References: Cc: Oleg Nesterov , X86 ML , Borislav Petkov , Linux Kernel Mailing List , "linux-mm@kvack.org" , Brian Gerst From: Dave Hansen Message-ID: <5696E129.9000804@linux.intel.com> Date: Wed, 13 Jan 2016 15:43:37 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/13/2016 03:35 PM, Andy Lutomirski wrote: > Can anyone here ask a hardware or microcode person what's going on > with CR3 writes possibly being faster than INVPCID? Is there some > trick to it? I just went and measured it myself this morning. "INVPCID Type 3" (all contexts no global) on a Skylake system was 15% slower than a CR3 write. Is that in the same ballpark from what you've observed?