Received: by 10.223.176.5 with SMTP id f5csp3239970wra; Mon, 29 Jan 2018 10:36:24 -0800 (PST) X-Google-Smtp-Source: AH8x2253ql01gchyNZCI5ZVoHL1BMaVvHedQO4UqgE8eYneebwPb9SweNG/1GRrZADs6Z2UNxe6t X-Received: by 10.99.110.200 with SMTP id j191mr18963936pgc.348.1517250983943; Mon, 29 Jan 2018 10:36:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517250983; cv=none; d=google.com; s=arc-20160816; b=o1VObHQZP9smCh4TaiUr/cWU+Qz/qx874Kb3D/WF4hQWyZ+bygz9OQXkz22D7k0NqK kXSC2enOkI1hc49IN5hbnNzYyq4sYowWjwW80QtlzVEqchH1sZPOrdkYpawJpr+d+vxc Ku9Kx3dJku1wl4b5nDDrvMiaDLcHZfARpTLV7B6lUV/89q3XVXQJ/TvSJHLSoON9/l3U 4Asn2jEKLfBK3yg0TpXQd0UPWN95HkXk4G+cHQyA5pARcMekAjFYIOoj3vaJuuRVfYp4 CYtT1reLPmqUhGcHEVk40krkCf6q7PzVaLcb1ftY/gGolQenpPO/rPAGiRp5u+RJMkeN aM/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=w9t+WODte4SrIsSykLuxY0rY++YSe2VLizU2bKVOX00=; b=NR358lDzfxjGQ22eycY7I6OgIuO58zWXgPOwvbJFR95HZFAR4u9t2TVdP3Bits9fwy xDf8Zegk8FZxzJaMBtz0zWR1nFZJeNrJXy8sZmegtB74wN38J9FQBQW0F/817iOnCjpI NufhBbjxvEd4F+yRNQSipZW/wmVAUnpp1rWP0Kv3g9yStzjXdg7bR9XTcteq11rhE+Y7 iHHH4rZpB2k3FCeHnMadSez9mGI1pC1Lp7YvZ33vV6FTJ6lP//MgcYwg+qebn+0RhgLy gKlXCOFkgwAEkQc+UA9zXhX7bu3FAU15tDKesgf3j8sUE0IYsxfUcB0lAXIUNKV2X5GE nPoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u184si7807760pgd.675.2018.01.29.10.36.09; Mon, 29 Jan 2018 10:36:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751537AbeA2Sek (ORCPT + 99 others); Mon, 29 Jan 2018 13:34:40 -0500 Received: from terminus.zytor.com ([65.50.211.136]:60583 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751301AbeA2Sej (ORCPT ); Mon, 29 Jan 2018 13:34:39 -0500 Received: from tazenda.hos.anvin.org (c-24-5-245-234.hsd1.ca.comcast.net [24.5.245.234] (may be forged)) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id w0TIUABu007831 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 29 Jan 2018 10:30:11 -0800 Subject: Re: selftests/x86/fsgsbase_64 test problem To: Andy Lutomirski Cc: Andy Lutomirski , Borislav Petkov , Dan Rue , Shuah Khan , Ingo Molnar , Dmitry Safonov , "open list:KERNEL SELFTEST FRAMEWORK" , LKML References: <20180126153631.ha7yc33fj5uhitjo@xps> <46328204-e363-e517-f30c-c8c94ac1442c@zytor.com> <624b9e67-14ee-6882-e55e-f337ec2471d3@zytor.com> From: "H. Peter Anvin" Message-ID: <0b0a3cea-d951-d3be-16de-a0e9d50cb2ba@zytor.com> Date: Mon, 29 Jan 2018 10:30:05 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/29/18 10:26, Andy Lutomirski wrote: >>> >>> That will utterly suck on non-UMIP machines that have >>> hypervisor-provided UMIP emulation. >> >> Is that a valid thing to optimize for, especially given that paranoid >> entries aren't the most common anyway? > > A bunch of people seem to care about NMI performance for perf. > That wasn't really the question... > And the current patch set works without this trick. But I believe the tricks it uses are fragile. > FWIW, if we switch all entries to the entry text trampoline, we get direct percpu access for free. That might be a better option. -hpa