From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brijesh Singh Subject: Re: [RFC Part2 PATCH v3 01/26] Documentation/virtual/kvm: Add AMD Secure Encrypted Virtualization (SEV) Date: Wed, 6 Sep 2017 15:54:16 -0500 Message-ID: <90a6bb6b-cef5-f01c-0d5b-56eaf8fc709d@amd.com> References: <20170724200303.12197-1-brijesh.singh@amd.com> <20170724200303.12197-2-brijesh.singh@amd.com> <20170905172130.24fgl6xsrfovsbsp@pd.tnic> <20170906164159.2ysrftypnx2ameqp@pd.tnic> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: brijesh.singh@amd.com, linux-kernel@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org, Thomas Gleixner , Joerg Roedel , "Michael S . Tsirkin" , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Tom Lendacky To: Borislav Petkov Return-path: Received: from mail-cys01nam02on0051.outbound.protection.outlook.com ([104.47.37.51]:33328 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752395AbdIFUyY (ORCPT ); Wed, 6 Sep 2017 16:54:24 -0400 In-Reply-To: <20170906164159.2ysrftypnx2ameqp@pd.tnic> Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: On 09/06/2017 11:41 AM, Borislav Petkov wrote: > On Tue, Sep 05, 2017 at 04:39:14PM -0500, Brijesh Singh wrote: >> Not sure if we need to document the complete measurement flow in the >> driver doc. > > No, not the whole thing - only summarized in a couple of sentences with > the link to the doc. > Will do. >> I was trying to keep everything to 80 column limit but if that is >> not an issue for documentation then I like your recommendation. > > That rule is not a hard one - rather, it is to human discretion what > is better - readability or fitting on some small screen, no one uses > anymore. > I will follow your recommendation >> The command does not require explicit parameter to differentiate between >> live migration vs snapshot. All it needs is a destination platform >> PDH key. If its live migration case then VM management stack will probably >> communicate with remote platform and get its PDH keys before calling us. >> The KVM driver simply acts upon the request from the userspace. SEV firmware >> spec Appendix A [1] provides complete flow diagram which need to be implemented >> in userspace. The driver simply act upon when it asked to create SEND_START >> context. > > Ok, so that only creates the context after sending the PDH cert into the > firmware. So please state that first and then what the command can be > used for. The way it is written now, it reads like it does the sending > of the guest. > Will clarify it in documentation.