Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1574049ybk; Sun, 10 May 2020 21:53:04 -0700 (PDT) X-Google-Smtp-Source: APiQypJzDJD4EwgfQt+dyKwopdw0NDOQ//XBmmUI5I6a/0ZiJLK6apxUxvK4FUHGVnr3ESYPb0iB X-Received: by 2002:a17:906:687:: with SMTP id u7mr10924429ejb.149.1589172784344; Sun, 10 May 2020 21:53:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589172784; cv=none; d=google.com; s=arc-20160816; b=B/E3Tbeoa/6qen77+i2Lfhet4IJShPMCJVU4wG3D4xvWkyFM/66v7sH8AVp6FSSoLR wIm8DYzueya6wTScD+VhzNpA+4NZX1uCwx2UURYH2vH1XeJEs1DubgXfwWnSt4jPGwTI saE/k5zgmmWgEc8Drk9kj/BIbC0wTAcKRnVHnG/1l7KcInuuXpG3lNdyaRWbrNF4tqZU J3dqpLUPGY3CkiF7dma9aNWi/PcrJ/biD7bYV7+ze/QsvjisadSW0mjZ+tB5Uhj2r4k/ pfv846svR4CjZ+fljx4HQREZRsnIKKcqPy4gZMFUIA1LDvlp0bP6xZBJo4W+YWmXeL9b Q2Cg== 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; bh=nDLNSNQPHkC2u4UIHpTQqUIb4za+Vs8qQNbAjSDyXoI=; b=J+aUyMl68+ot8dWxRSGJbs2JpRJLgx4hysilJ5ZY0HTLNHV/dhchs0hrtks/lUgxRE W7v0D4miLBQwOW74zCwSzvkq4ykbPt20AidG1ZeETvdZXbcNb6+CMLenEM+2zjHKX67O iQNAdpkow5qBF0WOouOy6xUvK81gETAftV20K3H5rjt4bAm9JVRA/1PDvokAwNsEV+Jq eY1Vwf+5Oh4VMu5XvpJk3vCq4u0OHDCJeqm5qGKi8LaiclLABkZYCJ62uvQOVuvKiWcz Xj1Q//5ph92hrlAw+bEOkJmQXIrIgohXmABSp2csygyk8dVl8r6nF96UMbPcMPVXgoR5 pAEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CmrA7QpJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u12si1868304ejt.385.2020.05.10.21.52.36; Sun, 10 May 2020 21:53:04 -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=pass header.i=@kernel.org header.s=default header.b=CmrA7QpJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729254AbgEKErN (ORCPT + 99 others); Mon, 11 May 2020 00:47:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:40996 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728061AbgEKErL (ORCPT ); Mon, 11 May 2020 00:47:11 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0E14620820; Mon, 11 May 2020 04:47:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589172431; bh=/Mlb2q0Tz785tx5Tpwi6DAkt1Dqh6dX+9WwYZ3hNezc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CmrA7QpJS/snXofFBGccySF0Qruca5pxPZZ6DA5HnT7SBa79xDYBn0RyRPm2YuY2z OX9paK7yrAiHrayCJXDegy2bP9/PzbBqXDAUjBGt2z+9AaPO63hTesEjX85oaKid4C DVVGAOUFBmKYOZFegUh0xp5rQxdtIpvA4udAu4gs= Date: Mon, 11 May 2020 00:47:09 -0400 From: Sasha Levin To: Andi Kleen Cc: Dave Hansen , linux-kernel@vger.kernel.org, tglx@linutronix.de, bp@alien8.de, luto@kernel.org, hpa@zytor.com, tony.luck@intel.com, ravi.v.shankar@intel.com, chang.seok.bae@intel.com Subject: Re: [PATCH v11 00/18] Enable FSGSBASE instructions Message-ID: <20200511044709.GN13035@sasha-vm> References: <20200509173655.13977-1-sashal@kernel.org> <20200510141625.GL13035@sasha-vm> <20200511005319.GK3538@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200511005319.GK3538@tassilo.jf.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 10, 2020 at 05:53:19PM -0700, Andi Kleen wrote: >> My interest in this is that we have a few workloads that value the >> ability to access FS/GS base directly and show nice performance > >Can you please share some rough numbers, Sasha? I don't have any recent numbers around these - this series effectively enables certain workloads rather than just improve the performance somewhat so benchmarking for exact numbers isn't too interesting here. >I would expect everything that does a lot of context switches >to benefit automatically, apart from the new free register (which >requires enabling, but also has great potential) And even more so when these registers are actually being used for the purpose they were designed for (this is in the context of secure computing/enclaves/etc). -- Thanks, Sasha