Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1869808rwd; Fri, 9 Jun 2023 03:30:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5FAVCZiC/3KzOFHyISeBQ1+EOFJAg6lGVVh8FX+zlND86y7rSqvLhZHsJo8t9on7ReMeWg X-Received: by 2002:a92:c88c:0:b0:33b:5eef:680e with SMTP id w12-20020a92c88c000000b0033b5eef680emr1212559ilo.20.1686306645487; Fri, 09 Jun 2023 03:30:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686306645; cv=none; d=google.com; s=arc-20160816; b=a/MjsTlwRCfCfVYtXaSj3kluR5PHC7LHLENufYUmgEqAV8blWSH6fvEbeSVNBtciw/ C+G03bCRHGwmvWnzuJPSfkl1mrDXJ19+wq/SB/Ze3fY8q4r/FHFSKysHC6p/OkCb7tkO MghLnmW/gwPkD3N/5fkEr7LTXoXXGCgOlwzFc/WtSmiWxUUCclysqOVws0FA/VTlc+fy pwoBcfrG6+3MqvmmHcJ2NTIkz+J8eLtwymG6nkPLwtsfDTwM8GBx+V7klgN1RIW9zYol 76CqF6n7wGA0WIGbeVUyYDerKqoYEVYSO3+1Z58zkN7uHvEX4cCdDHBzj0LZ5Zi3yFtz AkiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=QCAfbAdMJ4hq/jLexUoenZqABGBc2UI5B4FxLEQLDhc=; b=uWMOyvUWrR5ZpO7KtyjplJePbterBwcmbVhw+wmXVL1haM0RWpCTAhg8SCw+1RYKb0 EzrirYuWdgfnjHSLR8Zc2BZAZQb7yVSDzBDMzqqMa0INvfKOTCUSoG2fiWJ6N0G+5mGp ttZSw/usDVwqlRfX2UYIGtgWtVRpSFqJ+BB9XR+ubRrrIp7OWQrdWJGtRarFsFNvd4Ek Lnmm+4WusxvZRxqxwsytKej8w+5ofyeGYvg7mS5dZQcby15OcdM78ev/iPbB6eD1nGSY e49EvagCllY+nRpRaOmKwHqTpmIOrz3zxBa/wL1tQmZHK/PMGfP+UN8uRqVKyRperLRI /qKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=c71GVxos; 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=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g19-20020a633753000000b004fb8abdd188si2507717pgn.115.2023.06.09.03.30.30; Fri, 09 Jun 2023 03:30:45 -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=@linux.microsoft.com header.s=default header.b=c71GVxos; 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=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241052AbjFIKGs (ORCPT + 99 others); Fri, 9 Jun 2023 06:06:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230363AbjFIKF6 (ORCPT ); Fri, 9 Jun 2023 06:05:58 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 848E565A1; Fri, 9 Jun 2023 02:56:45 -0700 (PDT) Received: by linux.microsoft.com (Postfix, from userid 1112) id 2EE7820C1473; Fri, 9 Jun 2023 02:56:45 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 2EE7820C1473 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1686304605; bh=QCAfbAdMJ4hq/jLexUoenZqABGBc2UI5B4FxLEQLDhc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=c71GVxoshBaJT+JmmEXKMETgHlQqie6/1B1zvQm1lko5kFta+orf/3fDmIvVdEoV7 0M/tCdICZ0MBaVddlp0ZN1wghI0x9kVsZHKQS/BiF0aP9wDd5qeNtY0fb0oDl+HE1d dqckaHpOM92p4CC+HFBrVBYiIzZ+U72VdNtl2IzY= Date: Fri, 9 Jun 2023 02:56:45 -0700 From: Jeremi Piotrowski To: "Michael Kelley (LINUX)" Cc: Tianyu Lan , KY Srinivasan , Haiyang Zhang , "wei.liu@kernel.org" , Dexuan Cui , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "hpa@zytor.com" , "daniel.lezcano@linaro.org" , "arnd@arndb.de" , Tianyu Lan , "linux-arch@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "vkuznets@redhat.com" Subject: Re: [PATCH 7/9] x86/hyperv: Initialize cpu and memory for SEV-SNP enlightened guest Message-ID: <20230609095645.GA21469@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <20230601151624.1757616-1-ltykernel@gmail.com> <20230601151624.1757616-8-ltykernel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Thu, Jun 08, 2023 at 01:51:35PM +0000, Michael Kelley (LINUX) wrote: > From: Tianyu Lan Sent: Thursday, June 1, 2023 8:16 AM > > > > Hyper-V enlightened guest doesn't have boot loader support. > > Boot Linux kernel directly from hypervisor with data(kernel > > Add a space between "data" and "(kernel" > > > image, initrd and parameter page) and memory for boot up that > > is initialized via AMD SEV PSP proctol LAUNCH_UPDATE_DATA > > s/proctol/protocol/ > > > (Please refernce https://www.amd.com/system/files/TechDocs/55766_SEV-KM_API_Specification.pdf 1.3.1 Launch). > > s/refernce/reference/ > > And the link above didn't work for me -- the "55766_SEV-KM_API_Specification.pdf" > part was separated from the rest of the URL, though it's possible the mangling > was done by Microsoft's email system. Please double check that the URL is > correctly formatted with no spurious spaces. > > Even better, maybe write this as: > > Please reference Section 1.3.1 "Launch" of [1]. > > Then put the full link as [1] at the bottom of the commit message. > Tianyu: that document is SEV specific, and does not have the parts that SEV-SNP uses. For SNP this is the firmware ABI: https://www.amd.com/system/files/TechDocs/56860.pdf and the API I think you mean is SNP_LAUNCH_UPDATE. It would also help to mention that the data at EN_SEV_SNP_PROCESSOR_INFO_ADDR is loaded as PAGE_TYPE_UNMEASURED. Thanks, Jeremi