Received: by 10.223.185.116 with SMTP id b49csp5517753wrg; Tue, 27 Feb 2018 15:01:09 -0800 (PST) X-Google-Smtp-Source: AH8x22608diiA2hRxq+5K8PJ3ozvH8LdXR+PUuqFogUIXVUHljgocZoJT0kB3fcZY2GbemYUCSqi X-Received: by 2002:a17:902:4222:: with SMTP id g31-v6mr15367890pld.335.1519772469729; Tue, 27 Feb 2018 15:01:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519772469; cv=none; d=google.com; s=arc-20160816; b=c60yap7BQz9uLyyJn/XUepjMfrlyCQll1BBgdTo+cgrQPLa+5dVryRfhYTMbcAY+BS JyDbodcR+g2AnA/ipr6MFHyB8YiZ+f73UVy/6+L1UdwwibIWP6I8iwb8kz9/8is86k4E 8zXj9yL2EfWQ1Qmh+76V9Y6YF7GPqoOamprbNdGrajHdWq3u7F4VuImjDQTbAw0osufk a683WwgoGu+iTJOshVgBRkWbplzlte6HW8f9zvckcsTiF5AaFerw0UCkx7euHMW4suYg N8cNJ8Ctl0KDmjmDUrVw42EGfkDZQPFvL7nlmGZZSVwFZ9Xxdko+pnIsyGlC+LU3xgBf P7bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=tdhzmXegK72PfTI+XOPUz58g1E7awFonE0pkzDM7GiI=; b=XLUigj9qYU9amwmhohyTfhFiI4sd0lx4wY12affPwEq44jLeeuKQN9ao7SXuYIWgay ICuqfzafNv1ClWu1cEBKe//1p1m5K5Yl1wcfngHD5w4OPrAK/pD5xk/M5Xn1Li+pZOrE ry2SmCitqsQBEwPjLRpBYpNTtS95F2XfGmuKcc0dYm8l3YrT2vcBVwsyQfktUhNGrhyy jVx+702SjBDlSDX++H5KlE/g6fpDW2lxyXn1o+BC0vdu04lSTDO8jPRtymgbrXezyxTA XCc9XSelHqWVTZ9RdfJ/K5qGpNOriBh7OVpb6BesBXm81XQ4NHmxxpaGWdmHQf88/7Wy Xm2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gJ8kjJbW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l77si173658pfk.210.2018.02.27.15.00.47; Tue, 27 Feb 2018 15:01:09 -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; dkim=pass header.i=@linaro.org header.s=google header.b=gJ8kjJbW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752005AbeB0XAB (ORCPT + 99 others); Tue, 27 Feb 2018 18:00:01 -0500 Received: from mail-io0-f182.google.com ([209.85.223.182]:36542 "EHLO mail-io0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751898AbeB0W75 (ORCPT ); Tue, 27 Feb 2018 17:59:57 -0500 Received: by mail-io0-f182.google.com with SMTP id e30so1101318ioc.3 for ; Tue, 27 Feb 2018 14:59:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=tdhzmXegK72PfTI+XOPUz58g1E7awFonE0pkzDM7GiI=; b=gJ8kjJbWAHRJ1I1jLrxpDovhHTJZpX5cYDypqzDwCw+2X2HffvgMJhXSHvUpncukDW 2wb9l0PcfNbR663nENP9yuDD1uj0pghpKS/JmHB/lbTzDUyIg/NPJYKQUF51DXUyfRL6 4xZPwTaZd1LgEo1y6hPN5HQ/uZmrrr67cBfKE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=tdhzmXegK72PfTI+XOPUz58g1E7awFonE0pkzDM7GiI=; b=G27Eku7suyyEC6iJW/lf1FGU6l1LymkN5xYolHlNVQur5tQgKlIguOzgsJsXA3roQz SXyV+Ujdqn3xXm+L+WqS8qzUPbuZblEc2flszTG3lE74+c4xshK51G5+aL2hwK/zbqTL 4X3kklCgPu0F3S9JK7NQMjiGj0fUNFaTHEUtNxbgJs0M0+V3xB6SgyU6J9p1HlqiDZI+ HKCwxDT8Vp8LxL39ILTrWnC0hrpQTlw/s6WHp1S1PVm/f++mtOUHj8CPTEr9aTGMSoBk 9APO1E4YlaWafz+P6C7nbH7SUQPZfkBKFU4trLmFtiJzQGn/ZDvsR3zi1p3yMaS6+7qJ YGhA== X-Gm-Message-State: APf1xPAGaHQPUAfeNORZUpk/u/p3kpscd9sJ/JoAG/auAN47uugZjDLl qauma9KdTtoVJD5CuuPbsZF7nQ== X-Received: by 10.107.62.134 with SMTP id l128mr17386195ioa.199.1519772396735; Tue, 27 Feb 2018 14:59:56 -0800 (PST) Received: from localhost (c-68-47-89-210.hsd1.mn.comcast.net. [68.47.89.210]) by smtp.gmail.com with ESMTPSA id k76sm388273ita.32.2018.02.27.14.59.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Feb 2018 14:59:56 -0800 (PST) Date: Tue, 27 Feb 2018 16:59:55 -0600 From: Dan Rue To: "H. Peter Anvin" Cc: Andy Lutomirski , Andy Lutomirski , Borislav Petkov , Shuah Khan , Ingo Molnar , Dmitry Safonov , "open list:KERNEL SELFTEST FRAMEWORK" , LKML Subject: Re: selftests/x86/fsgsbase_64 test problem Message-ID: <20180227225955.s2vs4g7oc7tdi72i@xps> References: <46328204-e363-e517-f30c-c8c94ac1442c@zytor.com> <624b9e67-14ee-6882-e55e-f337ec2471d3@zytor.com> <0b0a3cea-d951-d3be-16de-a0e9d50cb2ba@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0b0a3cea-d951-d3be-16de-a0e9d50cb2ba@zytor.com> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 29, 2018 at 10:30:05AM -0800, H. Peter Anvin wrote: > 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. Has there been any conclusion to this thread? I can still reproduce the issue on mainline and next. Thanks, Dan