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=Vd6ZrDeV; spf=none, err=SPF record not found (domain: amd.com, ip: 40.107.73.50, mailfrom: thomas.lendacky@amd.com) Received: from NAM05-DM3-obe.outbound.protection.outlook.com (NAM05-DM3-obe.outbound.protection.outlook.com [40.107.73.50]) by groups.io with SMTP; Wed, 02 Oct 2019 09:16:22 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MxyghDpPA25pkXHFy8hSlMTs2QEh9uDsyeKb3YedVs/CIlpnrVZ2gFPaQwK2oqCgEJ1zj0RCTxhtY9cr/bjpsknFh73sgWzozbUxVFY1xCdpY8n7CRQHFYZ1JEv5z5edP7n5TRnC3YU94ZvIVFzlJSTbFZqGhKFRk4puP3kv0GYXCyTq0C4W5KF7g177mBFNXHqvdGJbvDM7c3zux2Pi6rs5mRIZXlLo1yqi/m6DW6ec67L8MEiggp5pXCMeVL817traHkHbyU/uFaExg18qwVIYGLhnJBhgwJS/yu4MZVeT63xizyu5trZn+ns6yqwq4qYxBqP7TrV7dZT0Xwz/sQ== 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=s5UO8l9gV6trpqNeSCKqMtqLT+W4Q6VX9CxE5htydLY=; b=YYHW1pSixZA8BoEg1n9JyY+llMridvxXjO3zjGGXqgHFNNzlEV9K5URfvstSLySwkhccCgs2vI403S64hWNjPPHiHUyUM8lPQr/0hr6Q+Jmn+QX1yOSxCKjZT2oL/HPuEy+baBvD1CkdOls+kDg1UsHqCYzh67yOGt/QjUr/Sdrmrdn5TIUWC80Z/G3YglnA+qGwY8oFG0YsD2VjgGRsvFw/gOJJ+y+bByb8PiC5lPvD2APUJ4Nw8k4VVaoOois7IzjHufpltSB0nNTqUTjFeVfG3596VdJ14oESkARWyY7ja1DPQ7nTUUFP1QZ9YL8ryWsYKBuLowFyd6YLxDgRRQ== 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=s5UO8l9gV6trpqNeSCKqMtqLT+W4Q6VX9CxE5htydLY=; b=Vd6ZrDeVIsC6FxPimsxT6og59fSznUpeWIB6+qok3ybscSUyQMPevK30dJVzROgdjYMpDv8F6nmMEF1Y1IZSRsAJTZJXffxJfDsKXXYUDjZNYXz04q1CMU+TFLViqqU/bF7/yKf9HJod8M+DC51NH/HOhIWn/Wbyd9nMlfdhasA= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB4042.namprd12.prod.outlook.com (10.141.185.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2305.20; Wed, 2 Oct 2019 16:16:21 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::85b7:7456:1a67:78aa]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::85b7:7456:1a67:78aa%7]) with mapi id 15.20.2305.023; Wed, 2 Oct 2019 16:16:21 +0000 From: "Lendacky, Thomas" To: "devel@edk2.groups.io" , "lersek@redhat.com" CC: Jordan Justen , Ard Biesheuvel , Michael D Kinney , Liming Gao , Eric Dong , Ray Ni , "Singh, Brijesh" Subject: Re: [edk2-devel] [RFC PATCH v2 16/44] OvmfPkg/MemEncryptSevLib: Make MemEncryptSevLib available during SEC Thread-Topic: [edk2-devel] [RFC PATCH v2 16/44] OvmfPkg/MemEncryptSevLib: Make MemEncryptSevLib available during SEC Thread-Index: AQHVbyPMdWGl1xcl10qMhBqJs8zVYadHWlSAgAABqQCAAD8tgA== Date: Wed, 2 Oct 2019 16:16:20 +0000 Message-ID: <5c1af1a6-46a7-4cc1-68f7-1c0be8366623@amd.com> References: <0c90a055-3732-cffa-7b76-866eb09e5bd7@redhat.com> In-Reply-To: <0c90a055-3732-cffa-7b76-866eb09e5bd7@redhat.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN4PR0701CA0035.namprd07.prod.outlook.com (2603:10b6:803:2d::25) 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: c5a1af12-2927-4fb1-29e2-08d74753dcbf x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: DM6PR12MB4042: x-ms-exchange-purlcount: 4 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0178184651 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(376002)(136003)(366004)(396003)(346002)(189003)(199004)(36756003)(6246003)(7736002)(8676002)(110136005)(478600001)(31686004)(26005)(6306002)(66446008)(66066001)(5660300002)(6512007)(3846002)(305945005)(186003)(71200400001)(71190400001)(4326008)(2906002)(102836004)(486006)(2616005)(6436002)(476003)(66556008)(66476007)(11346002)(6486002)(6116002)(25786009)(54906003)(53546011)(31696002)(64756008)(446003)(66946007)(316002)(8936002)(14454004)(2501003)(229853002)(6506007)(86362001)(386003)(81166006)(81156014)(966005)(99286004)(52116002)(76176011)(14444005)(256004);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB4042;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: BCL:0; x-microsoft-antispam-message-info: 9cJXYXELq0dSm5aG/Lm0IdxjsvC6uR0B63+Kas/LopmbTd3cuBWZa3xoH+yby1z92z+Tv08yuGSqLRIBvTSYomr2eqYi2CVwXGVUtEODcZtHDcFZVSpziwPeCJGJqbd6wDrXGw2w3TI5dczyG4FBD+GwWSOlWOHRGCgrK3CdcL1Rz9BwtPY1CgB61oQL3fiuF0HwXT+q+L8acVl9zLaGqi0p7CmtaI75h1dGokDCc8lHGIBMew+yjBNRYHNSaYI8Nj+Lp2tCzUkp2c7EqBGx4w3qJp9p75skpYwqnUPOSiqsMMN6h90M1WxJUl00A0i9pBvWdYVdxhhJDAzCgEE9gA/bHK8Z7c4L8hF8KOkkBgNovfKNbtC6RpvuWfbRs07tt/cU9mbJ6h1tVIiEnl/0MSbIKLklsai6MnuoMOqr6d+RdsRutv3IxAXRikcb/ZO8u0WvAsfgFEYsoQKSDXuyJw== MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: c5a1af12-2927-4fb1-29e2-08d74753dcbf X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Oct 2019 16:16:21.0226 (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: oNcrAQoPyDlPGFiUBzFsL4M07q0hvttkn30lyKftkf2ALEuj2b9gPPNY45h1bnKXlZJmZ7TQJcBe8TYuWIRfbg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4042 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-ID: <36B276747F461649AE242E89CE498F84@namprd12.prod.outlook.com> Content-Transfer-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