Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4445144pxb; Tue, 2 Nov 2021 09:50:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVbl529WJWf6s6yHKiNK8TNloKki4tMlwlgbzva/qXkD9VnaZMQ99KazcKA2Ng0TdZtsdt X-Received: by 2002:a5d:9ed6:: with SMTP id a22mr27278084ioe.167.1635871811670; Tue, 02 Nov 2021 09:50:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635871811; cv=none; d=google.com; s=arc-20160816; b=rdlI+IbyDOhi4UZJsPEG3DoTssyocj+9QcA+gn0ffqwIMCRailQmNePjXZgKuweuFQ 5K4nc9sAW0eQSen8prZLa37at6MyjPV0EnTXJctuz2APiP5by/f3PbBh9/6ht4VCCkBy jJQ3qpxlHYRxRrJPGcIX1ZLKstnryEpJpFxj3dqeQ9r9jfUrjB/aX/jF/D9Y458TNPOF TfIsIUmW2+g/DkqwkwonnTXbNlU2inIc+nm8SP1hyILty9frr0qfNXl74waKqCS1MTkt MeWVVoBDSci6zgu/HwRa98O7nkmqgq+nbwUHSG5YAk7/eSBiz+WBMwE8cJQJBv4YW8EH HYWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8Q0JPKYImsEJj8uXVW8VH9ex3CWAhIL8zIYTnj92VzE=; b=LazVEHBhDZrit1jH5ugp7uRNijud6vo0bT/c9eENQ+KKV3Qdufk2wSKJaBe16peHaL LuIYzqM4xHoJGNliBeoWoASJIMEH+ry7dMINLq1RtYACF5tVz3gy3N1aujRysEUaFIW9 dm6oywkOgTDi06+WGDVflz2AgJfib46lp7VX3jMYoCs8BS0/p9QA9vkFpaV3M9PdgiK9 3cHjYoigg22l6L9Yw4iBrbJEson47CvTiGfdEe+QT74jfL2Ea2pW9vyRSWvDUAkGAWUv w5DG4dkhetHEbZNZCLAzU6dan0MtNB0CTLdGAjw/2SOr8Y5VQ/cAEew7D3ZAz7hJpZo9 mqiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=b2wpaHZt; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si20743529jal.57.2021.11.02.09.49.56; Tue, 02 Nov 2021 09:50:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@google.com header.s=20210112 header.b=b2wpaHZt; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235102AbhKBQwO (ORCPT + 99 others); Tue, 2 Nov 2021 12:52:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234964AbhKBQvr (ORCPT ); Tue, 2 Nov 2021 12:51:47 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6B87C0797BB for ; Tue, 2 Nov 2021 09:26:11 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id j2so44060479lfg.3 for ; Tue, 02 Nov 2021 09:26:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8Q0JPKYImsEJj8uXVW8VH9ex3CWAhIL8zIYTnj92VzE=; b=b2wpaHZtxvLTTFPBxpmHmXcYLsOooGKiTRHoJm0lDHl9gjWU3E8C5iKELK1urL9nl0 /eh+1gSgJQdZ0B6p9JqHjzhSCQMRq8oujbnPuUFf3+zcVzQPjc/4E1WgaXNf4CUI45fw l/da5LhUd9WL5f11IO5SZp3AUVnwxjS2Lawu9L7H5V7nVq0bTn/qsg4J8cokd7eIc5Pf Xzj5AhUtir4rSvNiIfy78uCzhl1pBSrepsGKkQFdZkhrlcG+YrRG9ivYblEs5p7RKm3v qTqQh5dlLsWAowfQlKY+NpoFli/H2a8HDqBHHTeDoXCJQ4uOHIYXSTtJp4tMO7F8/faF kYwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8Q0JPKYImsEJj8uXVW8VH9ex3CWAhIL8zIYTnj92VzE=; b=CcHGHjxqFWdhnQT+hNB6+gAZq8cXNxJOg29cFcSGhhI+LK0oVedh1ey34XM+MPe6ec htEIH55AGPZFs/GGVkCgTaksuOFU2X12zRx2KyIn6ZzWsztbMNeqDUpFP5uo3dLzRvvr 1vfZ8pxjus29RrCNyg5Vnton/kWShZgsRmEMgqoheOafgEsMOnEXvLoFvUSIlud5XXzt ZlPdBENPkk3jr5UgMdZuS8mprRjYUR1oi3k4lqmDkMM84FklhmYmUjs+TUSdX/MVNMjA P/mm3Z66v/YskeFjMLd9PZLxGnNkC3HWnYad+idJd6oTtBFVdH1bL0FnKgnaQ9ULfX/l Ydow== X-Gm-Message-State: AOAM530M88h8h2thKwxf8kNlPRQ+v0AgNhp3fuBLDQJRe0SlwInKGfTA atO67gQEkbe0wWwo0YFG5CToVIrUNO5RBicT+zL5tw== X-Received: by 2002:a05:6512:3d29:: with SMTP id d41mr12071889lfv.685.1635870369633; Tue, 02 Nov 2021 09:26:09 -0700 (PDT) MIME-Version: 1.0 References: <20211102142331.3753798-1-pgonda@google.com> In-Reply-To: From: Peter Gonda Date: Tue, 2 Nov 2021 10:25:58 -0600 Message-ID: Subject: Re: [PATCH V3 0/4] Add SEV_INIT_EX support To: Sean Christopherson Cc: Thomas.Lendacky@amd.com, Marc Orr , David Rientjes , Brijesh Singh , Joerg Roedel , Herbert Xu , John Allen , "David S. Miller" , Paolo Bonzini , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Nov 2, 2021 at 10:05 AM Sean Christopherson wrote: > > On Tue, Nov 02, 2021, Peter Gonda wrote: > > SEV_INIT requires users to unlock their SPI bus for the PSP's non > > volatile (NV) storage. Users may wish to lock their SPI bus for numerous > > reasons, to support this the PSP firmware supports SEV_INIT_EX. INIT_EX > > allows the firmware to use a region of memory for its NV storage leaving > > the kernel responsible for actually storing the data in a persistent > > way. This series adds a new module parameter to ccp allowing users to > > specify a path to a file for use as the PSP's NV storage. The ccp driver > > then reads the file into memory for the PSP to use and is responsible > > for writing the file whenever the PSP modifies the memory region. > > What's changed between v1 and v3? Also, please wait a few days between versions. > I know us KVM people are often slow to get to reviews, but posting a new version > every day is usually counter-productive as it increases the review cost (more > threads to find and read). My mistake. I can wait longer between revisions. I was just trying to include Tom's feedback promptly, I didn't think having many versions would be an issue. Between V1 and V3: I have fixed a lot of style issues Tom identified. Added documentation to the SEV documentation file. Fixed some incorrect type usage. Made the logging more uniform. Removed writing on the SHUTDOWN command. And fixed some error handling.