Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1218482rwl; Fri, 24 Mar 2023 07:45:16 -0700 (PDT) X-Google-Smtp-Source: AKy350bs3eak+uKzbFJFVtZ0VQPfpAXaMSNFEyU1KNYtD+8HQFsQHTfUdMh/LXeBlcVSgtxs/mHB X-Received: by 2002:a05:6a00:bc6:b0:623:5c0f:b24a with SMTP id x6-20020a056a000bc600b006235c0fb24amr3056255pfu.2.1679669116662; Fri, 24 Mar 2023 07:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679669116; cv=none; d=google.com; s=arc-20160816; b=KJEBjAAvvq4QNUuCjaD0vC+/RMnCRTB2qagDXNhPtGsT9RL6Fpr1kBRkAF1ZS3tVvI G5XV7D1wW8s48hH2YbYabIPvOFRavxUdxx3fDjnE6zdwGp0AjNJrs0vojRyVlvjHWom+ lYQ8z98nIVLszVxlGGB9B7P3aecQGnmeEdW6U0AKSGqgAPZOxEME1OXZ6leLIctGlvwH skdTK9NlcS/72mdDMr92MQJDGr1Jql0jUnrje7sySVoXo5CenkhIf8NsdmIDnFI8Oz+N cZaz8Jg35pbxy7apPR5m+uyfInKI7bqbLD9xu9iyB8HVyUdLMOWAXxgsEue6yse6Bdhw pOAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=djdDyOQEhRpjTdDX9E9eh9RPf/+S/Hlq/oRhX87DyXg=; b=S90aDwDIpzgNTeVMeb8NvtAPqQJ+DhdPD1c6pJB5pXUtGNbmWeTnS1FDqHW7McvQFo jXM3geWBx2YttcsM9FQH3tzieUEE/FIp9vcGaaHD7iguN4NxuWrpp6JP1oChDWizM0R9 1HtVG9/gumGXWGpOdK+Pg8izDhglQC6/GnPCv5YKXLi1dv9T4TtKuiApcbGUUAUyeZwL HpOvUz3OrAqOuZVaHU+ugFEOGqn6xtTC3U7tk3fJi4iATLTC1aRwP1qbfwPR9IhC5tDW 2JfUPZDt5y2r/gVpVjhv85QCzLdxp6//zTCf5DAyi2fmodx/b0ABRFMk1BzLlXYQmz8/ 0Z0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=HhuS9rrA; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t11-20020a056a0021cb00b00628a75401bdsi7521137pfj.142.2023.03.24.07.44.58; Fri, 24 Mar 2023 07:45:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@amazon.com header.s=amazon201209 header.b=HhuS9rrA; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232025AbjCXOla (ORCPT + 99 others); Fri, 24 Mar 2023 10:41:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230196AbjCXOl3 (ORCPT ); Fri, 24 Mar 2023 10:41:29 -0400 Received: from smtp-fw-6002.amazon.com (smtp-fw-6002.amazon.com [52.95.49.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCC5D5FD6; Fri, 24 Mar 2023 07:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1679668876; x=1711204876; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=djdDyOQEhRpjTdDX9E9eh9RPf/+S/Hlq/oRhX87DyXg=; b=HhuS9rrAWm+0UXI54GPkWb9CF9kVVnLlMLKmOXdNP7cAPu/hffCcGJay jXZsluMDJyUNZVOSKCTK0Hu6iKhcNJLM2r2yOjfdZD/PhwVBOn2TXTY8w NFABLiYkMIspZ7zmaidJ7WrYJ5gEmB11XZVRhc+vnK7ll8I7gxSmWRy0F 4=; X-IronPort-AV: E=Sophos;i="5.98,288,1673913600"; d="scan'208";a="310968051" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-iad-1a-m6i4x-bbc6e425.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-6002.iad6.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2023 14:41:13 +0000 Received: from EX19MTAUWC001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-iad-1a-m6i4x-bbc6e425.us-east-1.amazon.com (Postfix) with ESMTPS id 740A884CE6; Fri, 24 Mar 2023 14:41:01 +0000 (UTC) Received: from EX19D020UWC004.ant.amazon.com (10.13.138.149) by EX19MTAUWC001.ant.amazon.com (10.250.64.174) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Fri, 24 Mar 2023 14:40:58 +0000 Received: from [0.0.0.0] (10.253.83.51) by EX19D020UWC004.ant.amazon.com (10.13.138.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 24 Mar 2023 14:40:47 +0000 Message-ID: <6b841d82-ad94-561a-3175-469b5e45eb47@amazon.com> Date: Fri, 24 Mar 2023 15:40:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH RFC v8 36/56] KVM: SVM: Add KVM_SEV_SNP_LAUNCH_FINISH command Content-Language: en-US To: Michael Roth , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Brijesh Singh , "Harald Hoyer" References: <20230220183847.59159-1-michael.roth@amd.com> <20230220183847.59159-37-michael.roth@amd.com> From: Alexander Graf In-Reply-To: <20230220183847.59159-37-michael.roth@amd.com> X-Originating-IP: [10.253.83.51] X-ClientProxiedBy: EX19D036UWC004.ant.amazon.com (10.13.139.205) To EX19D020UWC004.ant.amazon.com (10.13.138.149) Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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-crypto@vger.kernel.org T24gMjAuMDIuMjMgMTk6MzgsIE1pY2hhZWwgUm90aCB3cm90ZToKPiBGcm9tOiBCcmlqZXNoIFNp bmdoIDxicmlqZXNoLnNpbmdoQGFtZC5jb20+Cj4KPiBUaGUgS1ZNX1NFVl9TTlBfTEFVTkNIX0ZJ TklTSCBmaW5hbGl6ZSB0aGUgY3J5cHRvZ3JhcGhpYyBkaWdlc3QgYW5kIHN0b3Jlcwo+IGl0IGFz IHRoZSBtZWFzdXJlbWVudCBvZiB0aGUgZ3Vlc3QgYXQgbGF1bmNoLgo+Cj4gV2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g ICAgc3RydWN0IHZjcHVfc3ZtICpzdm0gPSB0b19zdm0odmNwdSk7Cj4gKyAgICAgICAgICAgICAg IHU2NCBwZm4gPSBfX3BhKHN2bS0+c2V2X2VzLnZtc2EpID4+IFBBR0VfU0hJRlQ7Cj4gKwo+ICsg ICAgICAgICAgICAgICAvKiBQZXJmb3JtIHNvbWUgcHJlLWVuY3J5cHRpb24gY2hlY2tzIGFnYWlu c3QgdGhlIFZNU0EgKi8KPiArICAgICAgICAgICAgICAgcmV0ID0gc2V2X2VzX3N5bmNfdm1zYShz dm0pOwo+ICsgICAgICAgICAgICAgICBpZiAocmV0KQo+ICsgICAgICAgICAgICAgICAgICAgICAg IHJldHVybiByZXQ7Cj4gKwo+ICsgICAgICAgICAgICAgICAvKiBUcmFuc2l0aW9uIHRoZSBWTVNB IHBhZ2UgdG8gYSBmaXJtd2FyZSBzdGF0ZS4gKi8KPiArICAgICAgICAgICAgICAgcmV0ID0gcm1w X21ha2VfcHJpdmF0ZShwZm4sIC0xLCBQR19MRVZFTF80Sywgc2V2LT5hc2lkLCB0cnVlKTsKPiAr ICAgICAgICAgICAgICAgaWYgKHJldCkKPiArICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4g cmV0Owo+ICsKPiArICAgICAgICAgICAgICAgLyogSXNzdWUgdGhlIFNOUCBjb21tYW5kIHRvIGVu Y3J5cHQgdGhlIFZNU0EgKi8KPiArICAgICAgICAgICAgICAgZGF0YS5hZGRyZXNzID0gX19zbWVf cGEoc3ZtLT5zZXZfZXMudm1zYSk7Cj4gKyAgICAgICAgICAgICAgIHJldCA9IF9fc2V2X2lzc3Vl X2NtZChhcmdwLT5zZXZfZmQsIFNFVl9DTURfU05QX0xBVU5DSF9VUERBVEUsCj4gKyAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAmZGF0YSwgJmFyZ3AtPmVycm9yKTsKCgpUaGVy ZSBpcyBubyBjb250cmFjdCBpbiBLVk0gdGhhdCBkaWN0YXRlcyB0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