Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5429850iob; Mon, 9 May 2022 16:34:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTNJhxe5y4jHcU0OK7i7bWinjZMvlbCjIIK7qcGlzFrq94gqDShTfc/8sbAImgiPSiwRln X-Received: by 2002:a05:6808:140e:b0:326:6cb1:fb7e with SMTP id w14-20020a056808140e00b003266cb1fb7emr8487580oiv.44.1652139257015; Mon, 09 May 2022 16:34:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652139257; cv=none; d=google.com; s=arc-20160816; b=tWIqUp8AJpHBEa3q6jDtvvWsqTEV+3vGG0kO7DQPts0SZ0QoAlnvtAcaKOP8RXZSc4 jseGjshifYzDzh/9xoBmcT0rabSJA70i13DamAq8j+Ywyv5bvCHHtokRjqAhYuSuJjNk aQSWj5XJt7tL4FaoYoMMMgnLBREzcROAd0RlkBmiZQAh9kza3KyOH+5HoQpUisNWBN0q GzPLJLCHnUj9d96tFb6xvr5DVK7QsL7DnzDM+NQYuXY/b1dC9WHcb4nK+EnHmsmKNurg WdfZYIoUiDwPjKLARwwTCKEjgcJt/txCSydW7SxikGSrqHzZSiqrqjopbdKU3EZDmXgz 7XRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+mWa3oMEkh4XA9cDfwHg0VqdUr0bDZ32vKcsE3CO8fo=; b=a8hOzNkXj0hP66Stb0e2ttzLGl1O9LACLikVGdpPPku8LGK8JPJVgeNpWflbFgD7fo bSb2FYremf9KFsGTucgvOlgI1CFbtTrLbG45/YDF8TWXaEgGdi8DFZBCZKx7UaqcE2xT RYWfgPswDV3bY0zOzfKyWzzeXnIHxwaLKXdYBsv+hJZADnBxeqNWdIqM5MCTnbqrekEm KKbcKMWfA9ekV8A33UI07krfa7a9Brj84/4qtbpB+95QcJgmcTTwxCPdAB620otHTYuR 88pQLbRnnI01oW4dLXt74bjlY68GAddgW/6CtO207mOQcODVnhwHwYC587OlkjoZ1C+H 14Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nCgxGG18; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bj30-20020a056808199e00b00326c7273fc4si6676964oib.22.2022.05.09.16.34.02; Mon, 09 May 2022 16:34:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nCgxGG18; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230432AbiEIWHs (ORCPT + 99 others); Mon, 9 May 2022 18:07:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbiEIWHq (ORCPT ); Mon, 9 May 2022 18:07:46 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81F9E2A83C7 for ; Mon, 9 May 2022 15:03:50 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id c9so14432439plh.2 for ; Mon, 09 May 2022 15:03:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=+mWa3oMEkh4XA9cDfwHg0VqdUr0bDZ32vKcsE3CO8fo=; b=nCgxGG18DIMgYys7H/4/hF/VD4t44Hf1UBIzqy1mxN+2wXrVcXuT0f6XzXP6eWYBun 1w9kgnYwd8j9bmivGsEwxCwwiuC3qqMiR4JZmHnkPPKOj/Dne1kAG9oUGZgcndyt9noD 72rf6Yd+6psUbZ5aVwLruReYY0jkeX2+XndzQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=+mWa3oMEkh4XA9cDfwHg0VqdUr0bDZ32vKcsE3CO8fo=; b=DiwCO0BYhT0bAZn6VFTmrOt/uYOo7hFtdR+hlTWQQY1q63RNvxRKeJFJv0yHhJmtcN cZY4OHyVMT0vMO804V4FNLIsB2jKE49jv/Y4cXk1Esb7AGWAkB2D1waMT/WqpnGsk5zD k3sKAEQde8wI9AZ8bqLeH42bUURF036TLjR3H/PLuM1peHjyrzN3c+1jdBiBndVR38cP KQXbDo1QmnOr8+DLO+7gx6FFEEspNfP9DEgQJgYXEbR59wkparUnd7+Ev8fz3grniv4p FwU+Ufwso5hpAc+4HDqZnUZC8YurUpvTsNfyoB3LG9wRBG0W/NvNqV78bemAsuoeD5eJ DAaA== X-Gm-Message-State: AOAM531TxtQcQ1Jgd+2XIpKvD1K6WslZJWhIVCMF6R/veq8RVcznjgnw S7gMYgGRBoxuAVUnrilXvcKO4g== X-Received: by 2002:a17:903:2344:b0:15e:bc62:bda7 with SMTP id c4-20020a170903234400b0015ebc62bda7mr18084266plh.120.1652133830033; Mon, 09 May 2022 15:03:50 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id bx1-20020a17090af48100b001cd4989fec6sm204245pjb.18.2022.05.09.15.03.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 15:03:49 -0700 (PDT) Date: Mon, 9 May 2022 15:03:48 -0700 From: Kees Cook To: ira.weiny@intel.com Cc: Dave Hansen , "H. Peter Anvin" , Dan Williams , Fenghua Yu , Rick Edgecombe , "Shankar, Ravi V" , linux-kernel@vger.kernel.org Subject: Re: [PATCH V10 08/44] Documentation/pkeys: Add initial PKS documentation Message-ID: <202205091501.132944B2C7@keescook> References: <20220419170649.1022246-1-ira.weiny@intel.com> <20220419170649.1022246-9-ira.weiny@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220419170649.1022246-9-ira.weiny@intel.com> X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 19, 2022 at 10:06:13AM -0700, ira.weiny@intel.com wrote: > From: Ira Weiny > > Add initial overview and configuration information about PKS. > > Cc: "Moger, Babu" > Signed-off-by: Ira Weiny > > --- > Changes for V9 > Feedback from Dave Hansen > Remove overview and move relevant text to the main pkey > overview which covers both user ans kernel keys. > Add an example of using Kconfig > Move MSR details to later patches > --- > Documentation/core-api/protection-keys.rst | 43 ++++++++++++++++++++-- > 1 file changed, 39 insertions(+), 4 deletions(-) > > diff --git a/Documentation/core-api/protection-keys.rst b/Documentation/core-api/protection-keys.rst > index bf28ac0401f3..13eedb0119e1 100644 > --- a/Documentation/core-api/protection-keys.rst > +++ b/Documentation/core-api/protection-keys.rst > @@ -13,6 +13,11 @@ Pkeys Userspace (PKU) is a feature which can be found on: > * Intel client CPUs, Tiger Lake (11th Gen Core) and later > * Future AMD CPUs > > +Protection Keys Supervisor (PKS) is a feature which can be found on: > + * Sapphire Rapids (and later) "Scalable Processor" Server CPUs > + * Future non-server Intel parts. > + * qemu: https://www.qemu.org/2021/04/30/qemu-6-0-0/ It looks like QEMU has pass-through support, but not emulation? It'd be really nice to have this feature emulated so it would be possible to test the code. (Or I need to find a machine that supports this...) -- Kees Cook