From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756078AbaDWBXs (ORCPT ); Tue, 22 Apr 2014 21:23:48 -0400 Received: from mail-ve0-f173.google.com ([209.85.128.173]:36951 "EHLO mail-ve0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752568AbaDWBXo (ORCPT ); Tue, 22 Apr 2014 21:23:44 -0400 MIME-Version: 1.0 In-Reply-To: <535714A1.9080502@linux.intel.com> References: <1398120472-6190-1-git-send-email-hpa@linux.intel.com> <535714A1.9080502@linux.intel.com> From: Andrew Lutomirski Date: Tue, 22 Apr 2014 18:23:23 -0700 Message-ID: Subject: Re: [PATCH] x86-64: espfix for 64-bit mode *PROTOTYPE* To: "H. Peter Anvin" Cc: Linux Kernel Mailing List , "H. Peter Anvin" , Linus Torvalds , Ingo Molnar , Alexander van Heukelum , Konrad Rzeszutek Wilk , Boris Ostrovsky , Borislav Petkov , Arjan van de Ven , Brian Gerst , Alexandre Julliard , Andi Kleen , Thomas Gleixner Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 22, 2014 at 6:17 PM, H. Peter Anvin wrote: > Another spin of the prototype. This one avoids the espfix for anything > but #GP, and avoids save/restore/saving registers... one can wonder, > though, how much that actually matters in practice. > > It still does redundant SWAPGS on the slow path. I'm not sure I > personally care enough to optimize that, as it means some fairly > significant restructuring of some of the code paths. Some of that > restructuring might actually be beneficial, but still... > What's the to_dmesg thing for? It looks sane, although I haven't checked the detailed register manipulation. Users of big systems may complain when every single CPU lines up for that mutex. Maybe no one cares. --Andy