Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp2030245rdb; Sun, 21 Jan 2024 04:42:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGYfPkvBlxzi55A0E/DyTUyJnMT+LxUujSK/jA7oLsM+D9/GWP7Uu5hna51o8iyAUJTRUGE X-Received: by 2002:a05:6a20:7353:b0:19b:a07a:3440 with SMTP id v19-20020a056a20735300b0019ba07a3440mr3577450pzc.52.1705840932069; Sun, 21 Jan 2024 04:42:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705840932; cv=pass; d=google.com; s=arc-20160816; b=Xuu6U2jkiO1RmzrjodAvEtidyvyylhejLmfWYEFCHnKcy9R7YPoJl1cNpaLHy8QKbu YZNww0LjvVVpGp0dNM1pkF3mis1vJeh7rRq/0WEnOf5W3JvncS51VGLK/JFFqtheox/c 4lWqwCdRn1uI3mw0XyionuM2q0Qab8dVZbhEcYgXiHHM3FFJhQT6u8851l4oSbf3mn9m P7rHzMT6Pr6D7YGiW1OEIdYC+s9PsLjQUuOcszxhxNBCgdzmcB5n3ETqaU/Rfs4S80eX X8WX9wEOSCFIOUz+phEg0dXaWhwZqZ0mR6gm40ZlXWV7bNzR9NYcnxlgk6Eel60GvhnN 8wKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DdanBUUkzmEiL4WSI9ML5YIGh668EwCLp/CMKO1Dfnc=; fh=hn6ZK4T+8hRDRRQwnfuP4iWwhmgc7beliBVW0SaiB9g=; b=gehgLTrj91vv4OJq6+Z8s3cRJAoqbVZh5Jnn5Gw16dOVg4bmUHpK+huvWU2PgZvxgy sN9eUM73yXHEdbMu9ENrSbESb7xBCgzx5o+UgBFzj2wZZ7k92a8Za9tUkZP1GaEy1DEg 3PVcNW6N/QiJN9cKunZ2sbL1U1jJyQjm+O1+aoBB/enQr3oaeYvHPaWfU3UwHVo0VUe0 n7USD++T+cQlS1nfjtJGCvhmhZUNshFKLNPkxwRvzGxaydewD9unDFcl1r+/nZJcgNpR OrXlewVvZ+2NaWg0pxN6mmUMEWuJl5XrFilXcy8IUx8yoaiQEoxztjTNFC39TSyX2cND Ujeg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=RZTMuyMX; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-crypto+bounces-1507-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t8-20020a63dd08000000b005c65eb2bc63si6514276pgg.608.2024.01.21.04.42.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 04:42:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-1507-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=RZTMuyMX; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-crypto+bounces-1507-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B3AD72817A8 for ; Sun, 21 Jan 2024 12:42:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 057BD37170; Sun, 21 Jan 2024 12:41:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="RZTMuyMX" X-Original-To: linux-crypto@vger.kernel.org Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 68A4E37152; Sun, 21 Jan 2024 12:41:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705840909; cv=none; b=LIdXv5f2qb3iHPMaBWQeCWRwCtpla0ddfD64HI/djzILhLk+5OpYrlK0bwDO7jNxwq8ZwtUcw9tA/Fp9ZC/LNqP0Ptc/kaaytWU5DArhlQLy4TwaqGPrSL7tcyjGAH1IXpiQFKQ8jtTjDsJ5zqWl14TD4nNLPllqozHrWOeFCgs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705840909; c=relaxed/simple; bh=b8kssEXUcXyp+9yNySq1ZhZ7sO+9Z0J8oTphLVHUrSs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bwkeuV/KyvymrBKUTf28Yu06BHC+jmED+oVuwx/OZPLPjWfpN7b4fxx9d44h4DP8ZJ36x0toh+5+71+j+u+9qv1A4Q0jFV1l4UJW5kNeZbuex6xosNaFMCHs1dxy6rGeBkhIgxcuGyJtZsspXkQeMIaFIU1BQpJGSse6oScfN9Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=RZTMuyMX; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 3174D40E0177; Sun, 21 Jan 2024 12:41:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id n2xllazxIvv4; Sun, 21 Jan 2024 12:41:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1705840903; bh=DdanBUUkzmEiL4WSI9ML5YIGh668EwCLp/CMKO1Dfnc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RZTMuyMX3VgHk63OanWHbKzjFKwZiqdXLYCiVXJhzB9i3WpVpKJ+3d6zftj9gSVIu 77xLCZ1tjQvsjiwNzqySdXhaV3DVPeAkW7s2edCI3z2wUsyhmbWQwv1qUyLv/3eZu6 K20T0sIVPQp9u2CcqztXJnr+dDoELbMEVVCpUvp9pTO1erBkf/id+HlwoiDMl68k6F LHrQLs5kOa/9KSQF946VvtBl6Lo8Jr7Q9eeLd/MPMLaZZn7koA4cQJkBQkXpaElTSz pnl7ekltsypo7YyGIefJlpkGg8cGkK78qVbdj03pRewqW9RFwHk4iBph9+nKBJpWE8 wB5MdGS/taoN5YeyhbdJGTQBNoSqkmcYbWdRB4dQi0PQQI1SteJOAcDTb4fTzu99dc z18R/pNaxbGy4q7gV2dWtMN7Q+6lYimR58vxr3O5ZgPQMsfkTNNbzI+E8y1fI5bKDE W1wasiStWVkB+t3kGq6tmnX6TcFmaFZ8sQbvGS6w6fr5k0anDm+Ddvhl9Z1B4dbrA6 G9lkDN+ZCwy+lEoJxh8xDRQDTwPqENL0bomUjFV975KK2npNCLfKK6U8JUZKTmwPq5 uUmzyeDDN/p0tR1uyS3ajxEg/gVjrbvq4hiUKq8D8b2m8guGhuodYpWBp0qnba2W5M LwAkg6N092PjLvUSz+CFsiho= Received: from zn.tnic (pd953099d.dip0.t-ipconnect.de [217.83.9.157]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 9771940E016C; Sun, 21 Jan 2024 12:41:03 +0000 (UTC) Date: Sun, 21 Jan 2024 13:41:02 +0100 From: Borislav Petkov To: Michael Roth Cc: x86@kernel.org, kvm@vger.kernel.org, linux-coco@lists.linux.dev, linux-mm@kvack.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, jroedel@suse.de, thomas.lendacky@amd.com, hpa@zytor.com, ardb@kernel.org, pbonzini@redhat.com, seanjc@google.com, vkuznets@redhat.com, jmattson@google.com, luto@kernel.org, dave.hansen@linux.intel.com, slp@redhat.com, pgonda@google.com, peterz@infradead.org, srinivas.pandruvada@linux.intel.com, rientjes@google.com, tobin@ibm.com, vbabka@suse.cz, kirill@shutemov.name, ak@linux.intel.com, tony.luck@intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, alpergun@google.com, jarkko@kernel.org, ashish.kalra@amd.com, nikunj.dadhania@amd.com, pankaj.gupta@amd.com, liam.merwick@oracle.com, Brijesh Singh , Alexey Kardashevskiy , Dionna Glaze Subject: Re: [PATCH v1 26/26] crypto: ccp: Add the SNP_SET_CONFIG command Message-ID: <20240121124102.GPZa0Q3oBHLG0fH_yn@fat_crate.local> References: <20231230161954.569267-1-michael.roth@amd.com> <20231230161954.569267-27-michael.roth@amd.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231230161954.569267-27-michael.roth@amd.com> On Sat, Dec 30, 2023 at 10:19:54AM -0600, Michael Roth wrote: > +The SNP_SET_CONFIG is used to set the system-wide configuration such as > +reported TCB version in the attestation report. The command is similar to > +SNP_CONFIG command defined in the SEV-SNP spec. The current values of the > +firmware parameters affected by this command can be queried via > +SNP_PLATFORM_STATUS. diff --git a/Documentation/virt/coco/sev-guest.rst b/Documentation/virt/coco/sev-guest.rst index 4f696aacc866..14c9de997b7d 100644 --- a/Documentation/virt/coco/sev-guest.rst +++ b/Documentation/virt/coco/sev-guest.rst @@ -169,10 +169,10 @@ that of the currently installed firmware. :Parameters (in): struct sev_user_data_snp_config :Returns (out): 0 on success, -negative on error -The SNP_SET_CONFIG is used to set the system-wide configuration such as -reported TCB version in the attestation report. The command is similar to -SNP_CONFIG command defined in the SEV-SNP spec. The current values of the -firmware parameters affected by this command can be queried via +SNP_SET_CONFIG is used to set the system-wide configuration such as +reported TCB version in the attestation report. The command is similar +to SNP_CONFIG command defined in the SEV-SNP spec. The current values of +the firmware parameters affected by this command can be queried via SNP_PLATFORM_STATUS. 3. SEV-SNP CPUID Enforcement --- Ok, you're all reviewed. Please send a new revision with *all* feedback addressed so that I can queue it. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette