From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=gS8Zpztq; spf=none, err=SPF record not found (domain: amd.com, ip: 40.107.76.42, mailfrom: thomas.lendacky@amd.com) Received: from NAM02-CY1-obe.outbound.protection.outlook.com (NAM02-CY1-obe.outbound.protection.outlook.com [40.107.76.42]) by groups.io with SMTP; Tue, 24 Sep 2019 07:43:37 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iC0LaTvAsmtKcEGIxrxuIuP9PI9tyy5XnFliNkjGF9LDhEtdpBmffzcaPY47vsjNZzW3uwZtdHmVHkGBLSXfU/oVcVkCOEIQS55ATElxRQhZXyaDbpaEApjUI82LuCsi+qRv8Kx56RUuETOaJu+Ze3lU+n/TYVH8yKwL6giFcoTI0NeQ+Uw2JJGXiBVN0WQRnTMnc4Pv87MTuPLanUTJsIYOl/58mJTlLdCsXruknUSkOQw1TBXeJYJEiCxF4NLt02gvkLRJNh4kmCZvlFYQcOIksAMTHgm60U8HF6jOsOxARpnx28wrmktoxzxAXgWvB3Ima4NIt+tsGgLYPBaKrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=l1MH/b9i7u6b0FadXKe8m4pERPgFxwQrcLMiEcfB8rQ=; b=kPavKQ3U7bwxiAH76miIE9bG0TAgAT5PEF0Lbi8NREPXTvKCNip55PyQvlFjEITgfaAxy+CYAWxtJhwAMn8k7ja8J1r4fo/VsFaXAGZth6TUpc5ndxp7ASZGh03hEwzqZ72WgwCyFuKtahgZvwzF2a/xy+HmyZSoK70pAai1Hih2/MGZxgqcEf5z0jg8qe898FYzjYHu4dp3w6R6jPpLeBYYqKOpn072MvhlaqhgWqP3gdoSLrZ5J/Lfh7tXcn6G3T/QJ1w62YR/q9rK5HN1SXEy18zvsVGko9j6yJ9Ie0UvV53hOSE6NIV5VHmWcTDlr6UZxPGd4nVPGOjERW5sEQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=l1MH/b9i7u6b0FadXKe8m4pERPgFxwQrcLMiEcfB8rQ=; b=gS8Zpztq/MDNDlwlZ8f4u3AC8MlJzHokaZCe111rB5wuht8MXmySEEXExP2ghYjvJ/LUi+KNPCKevLlPSTrMaNGeeQH1WvmqOS0edV47/sMT5V0Yw/IkI7eHz8UYiOiQbMelyRhhEM17ZdGh7vPDAn+fDT8xR6WJDPrT4CntklA= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB4297.namprd12.prod.outlook.com (10.141.184.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.22; Tue, 24 Sep 2019 14:43:35 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::400e:f0c3:7ca:2fcc]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::400e:f0c3:7ca:2fcc%6]) with mapi id 15.20.2284.023; Tue, 24 Sep 2019 14:43:35 +0000 From: "Lendacky, Thomas" To: Laszlo Ersek , "devel@edk2.groups.io" CC: Jordan Justen , Ard Biesheuvel , Michael D Kinney , Liming Gao , Eric Dong , Ray Ni , "Singh, Brijesh" Subject: Re: [edk2-devel] [RFC PATCH v2 03/44] OvmfPkg: Add support to perform SEV-ES initialization Thread-Topic: [edk2-devel] [RFC PATCH v2 03/44] OvmfPkg: Add support to perform SEV-ES initialization Thread-Index: AQHVbyPDnwCe71ks/E2JwQ+3zy/eQac6wKeAgAAt8oA= Date: Tue, 24 Sep 2019 14:43:35 +0000 Message-ID: <859398e4-1a4a-b4e6-f51f-25a53ebf943d@amd.com> References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN4PR0501CA0067.namprd05.prod.outlook.com (2603:10b6:803:41::44) To DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:182::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.78.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2b26eada-001a-454c-c5bc-08d740fd9457 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600167)(711020)(4605104)(1401327)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:DM6PR12MB4297; x-ms-traffictypediagnostic: DM6PR12MB4297: x-ms-exchange-purlcount: 1 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 0170DAF08C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(346002)(376002)(366004)(39860400002)(136003)(189003)(199004)(14454004)(66476007)(66556008)(54906003)(6246003)(66946007)(4326008)(36756003)(6486002)(6512007)(6306002)(229853002)(316002)(6436002)(110136005)(2906002)(6116002)(3846002)(76176011)(52116002)(81166006)(8676002)(81156014)(99286004)(66066001)(386003)(6506007)(53546011)(2501003)(25786009)(102836004)(256004)(8936002)(71190400001)(71200400001)(5660300002)(19627235002)(31686004)(478600001)(66446008)(31696002)(486006)(7736002)(2616005)(305945005)(11346002)(86362001)(64756008)(476003)(186003)(26005)(966005)(446003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB4297;H:DM6PR12MB3163.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: EiDBd1n6ove7FC1Oewq/nHypyS3k4AVDWgzR1xfb7XCra3Yu6l+I83bYFEpeZulRzirjVtKTgxvvLCVwWLShonIQMtXIsywkGodjXPu5yIukFicoWWcbxoNtRg4R5NMeAEOGEPOoc/mfn23B4MRJlbFDiVGK2Pcn2ni114m3W2x3ogvBxfFLKLdL3YSJRLmSqBxrI5EypJpIj7z+33kmOuW5xMU2ObVnAoQ3ghM2zM+43R0NP5XwdqD3uosOmu+n0jWhtBhgJ0RN032/QjR9euYGXUk+rYIFn5vcangNeyrAl7EMz0oD6QSglposeVrD4rsCEddvRRrNvLx9AHDQ3efMDAc6JfEq/3P3pJaszuSQAyUaRnjiVxVYmJ9fdOmT4D2T/5xWHbya6HPZ6vVG6A0P68C9ZiZ90oBmdhKL4Or58vg8Jp/AHU5h8N+zJWirQYmBt0Evw9DPNpHkS26REw== MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2b26eada-001a-454c-c5bc-08d740fd9457 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Sep 2019 14:43:35.7827 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 3h9fjQUJYdykIP6zufbexXSNoZnemWldMQdnXpFN2bD9TsYiaOIccWPfSHCArDSOrom3ZpF0bMU/a4bbQNd0Mg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4297 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 T24gOS8yNC8xOSA2Oj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