Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2475215ybk; Sun, 17 May 2020 23:20:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgvDoWhuWCkj2EOq2NX1Zr9e855kvmGH6NR4DBjS2r7BQR4xUHoJ+/GRoI5Czw0rDcxArT X-Received: by 2002:a50:d0d7:: with SMTP id g23mr12365556edf.163.1589782824426; Sun, 17 May 2020 23:20:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589782824; cv=none; d=google.com; s=arc-20160816; b=1JBQ85w996diqfb0z+v5pZruAXpCddrPmAnoxIcAcS/i0Q9gXXe84vdZMl06Whqx5M vhwP27UIG2e/BpeN+teXeYYWDmNwdmmWMr7Px0H0ix80qaqEHQRjsRKyuI3hpKtLoblg JOQs/SJ0Pqito6++n3XWKVGGuvbx9INpnbspwKyQUREAJiEVerrO2MTOudIDHR9wRfOB lBo1Hz6eWyFSEz3q6C0hNLK/xGax9oT1WjygwR2pFprzjvPMcq/11ty9bF03Z+3h/COK ZQmPohSr1IebC8wqYUoHB37U+TxnftPe/ukT55J2hsUdXt5GNtNH0yM8XbCVSmldMzQ7 In/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=mi/Yaj0SaOPBvEr8cdz4RwbxKfrvmg/VoMxx24QWS8c=; b=J0rTsfiSyiCSQwBKjqPnUQkaYQeqjENG5GzFark1DC27JttqqFaYpvdy+6OYW+ebyV 3kOz33WN5IikiKONHx9vlTibhLmCA6QpVLjwuOWaZy+cFCXSXtNnL9qfiBhVyEhTy+kE 8HXw3WymYPrBx9bAYqQgCnY3sqRGBLLBx5R72Jo/sa/V056WOOoVYSRfqoIijacoCT8T VEvOQitYnVSVj1UxMsJK1upXVI1rI56fUvunpt5Gedpz6deNloWP40NPU0FyDMSH95Ey Yy4f1O6HB4ByrVs/th4qWDXs66tR3LT8PQsfW3DwOZOEViqCnAQ/wPM4c8Sw4B4NnuHE gDsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=e3j2mJNz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si6000016ejo.329.2020.05.17.23.20.01; Sun, 17 May 2020 23:20:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=e3j2mJNz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726478AbgERGSi (ORCPT + 99 others); Mon, 18 May 2020 02:18:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726040AbgERGSh (ORCPT ); Mon, 18 May 2020 02:18:37 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4745C061A0C for ; Sun, 17 May 2020 23:18:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=mi/Yaj0SaOPBvEr8cdz4RwbxKfrvmg/VoMxx24QWS8c=; b=e3j2mJNzk+fSyCgHrmi8Y5KRYB 4BwPvb62ZD3MD9HmtwxBaPKd5lyatjJEwDTnbJa4LHvZzVGftI2H4Dsvz8mLzRiZM5TfVZjQXFPVd oNogyGHS9pKoU2SyE2yndFHNnx335mC8Hk3cMKoheaY4OI66OVMWwItzw6OdoVA6I+vS/Uy/EItNJ 6ALgssZ4/SaDqGyZ+ueYvet/pXld/lzUKFjCYp27Zj53Y034fn9/g9iw1ffRUpHSTOK03dVyBvBds pngg2/befR3UifMqLTWzmU5P0AQkTruuUo0FjYnctUZ5ZSR3Ce2cBkc8SZmtofDNfzn1tt7aumgMA SN14rg0A==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jaZ6i-0004VM-LX; Mon, 18 May 2020 06:18:36 +0000 Date: Sun, 17 May 2020 23:18:36 -0700 From: Christoph Hellwig To: Sasha Levin Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, bp@alien8.de, luto@kernel.org, hpa@zytor.com, dave.hansen@intel.com, tony.luck@intel.com, ak@linux.intel.com, ravi.v.shankar@intel.com, chang.seok.bae@intel.com Subject: Re: [PATCH v12 00/18] Enable FSGSBASE instructions Message-ID: <20200518061836.GA15641@infradead.org> References: <20200511045311.4785-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200511045311.4785-1-sashal@kernel.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 11, 2020 at 12:52:53AM -0400, Sasha Levin wrote: > Benefits: > Currently a user process that wishes to read or write the FS/GS base must > make a system call. But recent X86 processors have added new instructions > for use in 64-bit mode that allow direct access to the FS and GS segment > base addresses. The operating system controls whether applications can > use these instructions with a %cr4 control bit. > > In addition to benefits to applications, performance improvements to the > OS context switch code are possible by making use of these instructions. A > third party reported out promising performance numbers out of their > initial benchmarking of the previous version of this patch series [9]. The [9] reference can't be resolved anywhere in this mail.