From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (NAM10-DM6-obe.outbound.protection.outlook.com [40.107.93.81]) by mx.groups.io with SMTP id smtpd.web10.871.1631557199489762774 for ; Mon, 13 Sep 2021 11:19:59 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=2Z2PPcNi; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.93.81, mailfrom: brijesh.singh@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dA0MCm0oCEx6B/zLoaU8z3+OQHg+r2o6awxLjerJ/4C1pOQdkddBOrPk5mY1y36Q+AkSmZ2x+JqjrJN5wbRBVIAnPl7MerAM0HF+WRmke8+SLaKYoSraeKl2cJuav5DOOksXAgElI6vj1389sALKfGA3DiJ9y3zUAIkDoJczag8WKCHc3p5Ba/eeOPYB0FdDDrkmETnNj3oawmPnafp5n5465aRPyGLJ8UMzE7h3XdfNVe0UVNApgG1TpK0MGOtiMyNZHO5j20qDmFlVa0Pex3y/dB1Yz7LIt9GmnWRIMCBVYSUdC7Hrld8APNUHu6elJed1W/7Vq6a1DNL3eN1zlg== 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; bh=JfE19ZDaWcA5ZgHJrPvhOLY8bX+QtIwkpyS0d/Ip1Bk=; b=DDlgPfcOOZr+MQdyVPrIQPVSvi33pLrxGvBtXcJk/mzr1yeCjEymRNSkiYPXI5moMZEKAPlD7ICRXJVxKqXKCBM8RBWQHHNX6hcT6PDaPaAtTs4pxugbzwAMcy8Dmdd2Ze8c0uQxRUyx2DG1o5jTEzZ+NUWeMP6YkG18lWnXIlGomvuf0vP/zbAaOCYOzR5m0B/KBXFRs/6yO2I6w8jk3p6bqBmQX7hyqqJtlP/+7eXoKei4cRp2OHrO2M2+GDhvRLE8SYawugTMZDqYOhbrnAhARwYEtJHu0cOccFQXer1OfFd4DOtuIwZ1hbZRsnX05BwUL0Wsk8pRfys0YMAvqQ== 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=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JfE19ZDaWcA5ZgHJrPvhOLY8bX+QtIwkpyS0d/Ip1Bk=; b=2Z2PPcNiyc/O6xUp4GOr/cDJcp4YAl3KMxfKhtVSsqOWYPVY0a+HGHKP5eK9DmlOIO3YhIOuXMXBX9OZTAzcgRTJpUwr/9gCGBlqJ+jNtNgEDZqOEfZBOkZAElBG3RyRvJ5Vu54aUqdjxrXKHUYe45uLtgUpn7PUDrDP7K5hSCM= Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=amd.com; Received: from SN6PR12MB2718.namprd12.prod.outlook.com (2603:10b6:805:6f::22) by SA0PR12MB4557.namprd12.prod.outlook.com (2603:10b6:806:9d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17; Mon, 13 Sep 2021 18:19:57 +0000 Received: from SN6PR12MB2718.namprd12.prod.outlook.com ([fe80::78b7:7336:d363:9be3]) by SN6PR12MB2718.namprd12.prod.outlook.com ([fe80::78b7:7336:d363:9be3%6]) with mapi id 15.20.4500.019; Mon, 13 Sep 2021 18:19:57 +0000 From: "Brijesh Singh" To: devel@edk2.groups.io CC: James Bottomley , Min Xu , Jiewen Yao , Tom Lendacky , Jordan Justen , Ard Biesheuvel , Erdem Aktas , Michael Roth , Gerd Hoffmann , Brijesh Singh Subject: [PATCH v7 00/31] Add AMD Secure Nested Paging (SEV-SNP) support Date: Mon, 13 Sep 2021 13:19:10 -0500 Message-ID: <20210913181941.23405-1-brijesh.singh@amd.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: SA9P221CA0012.NAMP221.PROD.OUTLOOK.COM (2603:10b6:806:25::17) To SN6PR12MB2718.namprd12.prod.outlook.com (2603:10b6:805:6f::22) Return-Path: brijesh.singh@amd.com MIME-Version: 1.0 Received: from sbrijesh-desktop.amd.com (165.204.77.1) by SA9P221CA0012.NAMP221.PROD.OUTLOOK.COM (2603:10b6:806:25::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Mon, 13 Sep 2021 18:19:57 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bd6af0fe-c421-439b-7e78-08d976e31786 X-MS-TrafficTypeDiagnostic: SA0PR12MB4557: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bH53q5uScgAt6XGzfSHWR1R/EiG9DCrzZcUY/bOwVblbEwFFxIh9uRHGKjG7kpy+/TekBY5Oujj2stjqTy+Jn3b0T9aJ4pnKMUgniER96hXFTeO6TM3073We7RiWn1NHGQ3mJIaAXoGX/Jm0H1Xbwdt86aM7aufAP41rirRVuhEMfI8iFPPm2FxhubsXmqEEisiadBjpDjxukXxLfqqXb8/f6tWeW/+bnS8PFByElmy+PETXKCik8JaorjH9UJKMCqxNoesa5j8zr8bbbPUTpPGNosmBzdU2BbuPqFJzmUp8mrwy0JiGqQ7q+LbDTMtKZDYC6PGWXKEh0ujS8KYoUYVsG3PuZ1UB8EhUszKygL2jojDLw6AjwHEjdysgErCrQD2edIP4JxLpbuC/IFhTRwiDy6QOKQ3yiM1PLbtlffZTEx5al7juGWuXhwbR+DqcTMti/EvLFz1nxskt7lVJb3YI0Psw0U38wb59qHmlA6HnSN/5MsE5pKhSIlOkEJE3Hqt9xwdwoNejX+nHfNugo8SO4StTF29+0Pjl6UjcvmDOgVKzMRavyg3lHtEO5o51bUpghD625zkUet5Y499sJUQVuKRK7+1KRhwiWtzeUxRIJGSUfAng5FY/kDPHX2iN5kbhxPipCkT+r4+hRdTuI5rIbSZBrR8DuH+z3yiT72Kz1z3FF2w7GbKNKL3Kj0oJ121BFpgleNyE3o7BndpQ6uluWUfLAmk+OA4dFHtnw6VnE9XilRHVsiJvQwDap+0eYfNjGDBDs1A4yS4qO+2I2Zcew0WVvy0SvxvLsZQwlkXVYPtRoLWVOevoVCcO3fJv X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR12MB2718.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(136003)(366004)(346002)(39860400002)(376002)(478600001)(86362001)(7696005)(6916009)(966005)(316002)(52116002)(54906003)(44832011)(83380400001)(38350700002)(66556008)(5660300002)(36756003)(19627235002)(1076003)(4326008)(2906002)(186003)(956004)(26005)(8936002)(8676002)(2616005)(30864003)(6486002)(38100700002)(6666004)(66476007)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?vD80DyJlMNSAq9zggNJ9lTdKBizZA7ZvNjJbfn0YHK/2r4fx8b/QsLUlsUxQ?= =?us-ascii?Q?Aywz+9lFHQwCqiSObUCF9glRHH8h/VoekklJFSHDryGfRQEYldlqtQVLmaZv?= =?us-ascii?Q?cbPuVQxkzXVaNI+yi1wBJexcwfMLSqGttMDqEavEOS4xhND9mH5NPU6DvbNt?= =?us-ascii?Q?PD7Y47M0RdwyMkkQDXm5fQUxoLzuqwt0I5JOgoKe1Ve9w6WWXnhEWGl7E5vZ?= =?us-ascii?Q?C3F3Hf3yHoWVGI5AQHgQ8qvVBU2Uckp+Hw2dWJDUVKV1obCxHMFTCknuN2Wh?= =?us-ascii?Q?9cB0GbZBGZuo7F4GSHVdeDOUtuERITGVntYteUEZTQu1a4mRDAKuvWWQFGwZ?= =?us-ascii?Q?kybLYmwuITqCt/s1r2C9Cy8LpLpMFPV0/gHjkrTERXhf+E4N6upnhzqAShvh?= =?us-ascii?Q?Cml8nr1B5VdmCkqZePOzk9A0ZL00AqiXHW72yM7Tx5BScMQoRS12MFiNZUko?= =?us-ascii?Q?tonLXB5JuRRY9GcXJ05x6xGsfb6KbYqg5t3yWNFisQCCcx7P46VRhScGG57V?= =?us-ascii?Q?m5NLpbnRr3Ryjw1UGYzK8GpUpg5l7uDTE+jlqRwLTqwx1IfjDi2+++WtTaDy?= =?us-ascii?Q?LDn48IOo+q3KF7mIbacuTeRvZqC/Nr2H9ZwIzfU/eLlK7Gr6SBUFFg7HEfAI?= =?us-ascii?Q?CtmCTcuJ5J43AzIHPyP0Ffunkn1Ksy06Gq71jWwEDTzRHWWgaF3gvU/AsjIg?= =?us-ascii?Q?3hdk6jfsuiPVxA2hCNeRgOYpTUNFRqhvJ5YuW+bLWk5qTVi5ZnyaL3e/NDyU?= =?us-ascii?Q?ZKxo6uOLBVNR1My3EhCQu6l8FXviWpUa9eyQ2yuJW5nI5JTyMxigkL2JCjSe?= =?us-ascii?Q?zujNtedE2nbeGWb0Q4H6J3+B6QNgl45mzkNcArVm7gmWVqSWHdZCEfWm7zZ6?= =?us-ascii?Q?4QLPXE+39coINeqFVNPzZVxf9ERPZsq43Dp3iTfZbyaF/IXfb3Yisnm+RucK?= =?us-ascii?Q?iHKivwKm3ofWx9B5RARXNWscXOEgKsSN5vo+/JGSmM3sc88P0bwguqcWLNeH?= =?us-ascii?Q?FjUdWCOlHTzRYus4y/YGcWZJUrFHZoxbx/TV9/aqAThi7FqqU/vNRgV0j5W2?= =?us-ascii?Q?d63XI0h41GNP7+ssLmiZ4HtTT55Mfewfy1EC4u5+ZC+AgBXLDgk+KlvYilDL?= =?us-ascii?Q?UXl5oW2ZmAx/A6kFAMvbHOVeMfJjTj2FO7kTddL5rv16L1qdsiJquXmJ3qf6?= =?us-ascii?Q?UYGYiKW5Zudb1U7vWCtwMygyJSgsu0CXetVN0vSovOrDhC8wfaquXFYLfIer?= =?us-ascii?Q?JO+aCXgoc3bXZtfh5bG4FxbYaBmqGyoCfPpPKI0drf9l5H21QmtLGO5bPH7H?= =?us-ascii?Q?Gqtnjk0G1lSGGFjNPN7wxX21?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: bd6af0fe-c421-439b-7e78-08d976e31786 X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB2718.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2021 18:19:57.6808 (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: oBybOwMlMbFAc3WgcLq4g01jY67hODzU2L8ukZ7O75w76D4zLOVfiEm6liHA94mcPfTbImFDXLIU7vQctttVvg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4557 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3275 SEV-SNP builds upon existing SEV and SEV-ES functionality while adding new hardware-based memory protections. SEV-SNP adds strong memory integrity protection to help prevent malicious hypervisor-based attacks like data replay, memory re-mapping and more in order to create an isolated memory encryption environment. =20 This series provides the basic building blocks to support booting the SEV-S= NP VMs, it does not cover all the security enhancement introduced by the SEV-S= NP such as interrupt protection. Many of the integrity guarantees of SEV-SNP are enforced through a new structure called the Reverse Map Table (RMP). Adding a new page to SEV-SNP VM requires a 2-step process. First, the hypervisor assigns a page to the guest using the new RMPUPDATE instruction. This transitions the page to guest-invalid. Second, the guest validates the page using the new PVALIDATE instruction. The SEV-SNP VMs can use the new "Page State Change Request NAE= " defined in the GHCB specification to ask hypervisor to add or remove page from the RMP table. Each page assigned to the SEV-SNP VM can either be validated or unvalidated= , as indicated by the Validated flag in the page's RMP entry. There are two approaches that can be taken for the page validation: Pre-validation and Lazy Validation. Under pre-validation, the pages are validated prior to first use. And under lazy validation, pages are validated when first accessed. An access to a unvalidated page results in a #VC exception, at which time the exception handler may validate the page. Lazy validation requires careful tracking of the validated pages to avoid validating the same GPA more than once. The recently introduced "Unaccepted" memory type can be used to communicate the unvalidated memory ranges to the Guest OS. At this time we only support the pre-validation. OVMF detects all the avail= able system RAM in the PEI phase. When SEV-SNP is enabled, the memory is validat= ed before it is made available to the EDK2 core. Now that series contains all the basic support required to launch SEV-SNP guest. We are still missing the Interrupt security feature provided by the SNP. The feature will be added after the base support is accepted. Additional resources --------------------- SEV-SNP whitepaper https://www.amd.com/system/files/TechDocs/SEV-SNP-strengthening-vm-isolatio= n-with-integrity-protection-and-more.pdf APM 2: https://www.amd.com/system/files/TechDocs/24593.pdf (section 15.36) The complete source is available at https://github.com/AMDESE/ovmf/tree/sev-snp-v7 GHCB spec: https://developer.amd.com/wp-content/resources/56421.pdf SEV-SNP firmware specification: https://www.amd.com/system/files/TechDocs/56860.pdf Change since v6: * Drop the SNP boot block GUID and switch to using the Metadata guided str= ucture proposed by Min in TDX series. * Exclude the GHCB page from the pre-validated region. It simplifies the r= eset vector code where we do not need to unvalidate the GHCB page. * Now that GHCB page is not validated so move the VMPL check from reset ve= ctor code to the MemEncryptSevLib on the first page validation. * Introduce the ConfidentialComputingGuestAttr PCD to communicate which memory encryption is active so that MpInitLib can make use of it. * Drop the SEVES specific PCD as the information can be communicated via the ConfidentialComputingGuestAttr. * Move the SNP specific AP creation function in AmdSev.c. * Define the SNP Blob GUID in a new file. Change since v5: * When possible use the CPUID value from CPUID page * Move the SEV specific functions from SecMain.c in AmdSev.c * Rebase to the latest code * Add the review feedback from Yao. Change since v4: * Use the correct MSR for the SEV_STATUS * Add VMPL-0 check Change since v3: * ResetVector: move all SEV specific code in AmdSev.asm and add macros to = keep the code readable. * Drop extending the EsWorkArea to contain SNP specific state. * Drop the GhcbGpa library and call the VmgExit directly to register GHCB = GPA. * Install the CC blob config table from AmdSevDxe instead of extending the AmdSev/SecretsDxe for it. * Add the separate PCDs for the SNP Secrets. Changes since v2: * Add support for the AP creation. * Use the module-scoping override to make AmdSevDxe use the IO port for PC= I reads. * Use the reserved memory type for CPUID and Secrets page. *=20 Changes since v1: * Drop the interval tree support to detect the pre-validated overlap regio= n. * Use an array to keep track of pre-validated regions. * Add support to query the Hypervisor feature and verify that SNP feature = is supported. * Introduce MemEncryptSevClearMmioPageEncMask() to clear the C-bit from MM= IO ranges. * Pull the SevSecretDxe and SevSecretPei into OVMF package build. * Extend the SevSecretDxe to expose confidential computing blob location t= hrough EFI configuration table. Brijesh Singh (27): OvmfPkg/SecMain: move SEV specific routines in AmdSev.c OvmfPkg/ResetVector: move clearing GHCB in SecMain OvmfPkg/ResetVector: introduce metadata descriptor for VMM use OvmfPkg: reserve SNP secrets page OvmfPkg: reserve CPUID page OvmfPkg/ResetVector: pre-validate the data pages used in SEC phase OvmfPkg/MemEncryptSevLib: add MemEncryptSevSnpEnabled() OvmfPkg/SecMain: register GHCB gpa for the SEV-SNP guest OvmfPkg/PlatformPei: register GHCB gpa for the SEV-SNP guest OvmfPkg/AmdSevDxe: do not use extended PCI config space OvmfPkg/MemEncryptSevLib: add support to validate system RAM OvmfPkg/MemEncryptSevLib: add function to check the VMPL0 OvmfPkg/BaseMemEncryptSevLib: skip the pre-validated system RAM OvmfPkg/MemEncryptSevLib: add support to validate > 4GB memory in PEI phase OvmfPkg/SecMain: pre-validate the memory used for decompressing Fv OvmfPkg/PlatformPei: validate the system RAM when SNP is active UefiCpuPkg: Define ConfidentialComputingGuestAttr OvmfPkg/PlatformPei: set PcdConfidentialComputingAttr when SEV is active UefiCpuPkg/MpInitLib: use PcdConfidentialComputingAttr to check SEV status UefiCpuPkg: add PcdGhcbHypervisorFeatures OvmfPkg/PlatformPei: set the Hypervisor Features PCD MdePkg/GHCB: increase the GHCB protocol max version UefiCpuPkg/MpLib: add support to register GHCB GPA when SEV-SNP is enabled OvmfPkg/MemEncryptSevLib: change the page state in the RMP table OvmfPkg/MemEncryptSevLib: skip page state change for Mmio address OvmfPkg/PlatformPei: mark cpuid and secrets memory reserved in EFI map OvmfPkg/AmdSev: expose the SNP reserved pages through configuration table Michael Roth (3): OvmfPkg/ResetVector: use SEV-SNP-validated CPUID values OvmfPkg/VmgExitLib: use SEV-SNP-validated CPUID values UefiCpuPkg/MpInitLib: use BSP to do extended topology check Tom Lendacky (1): UefiCpuPkg/MpInitLib: Use SEV-SNP AP Creation NAE event to launch APs OvmfPkg/OvmfPkg.dec | 19 + UefiCpuPkg/UefiCpuPkg.dec | 9 + OvmfPkg/AmdSev/AmdSevX64.dsc | 5 +- OvmfPkg/Bhyve/BhyveX64.dsc | 5 +- OvmfPkg/OvmfPkgIa32.dsc | 1 + OvmfPkg/OvmfPkgIa32X64.dsc | 6 +- OvmfPkg/OvmfPkgX64.dsc | 5 +- OvmfPkg/OvmfXen.dsc | 5 +- OvmfPkg/OvmfPkgX64.fdf | 6 + OvmfPkg/AmdSevDxe/AmdSevDxe.inf | 7 + .../DxeMemEncryptSevLib.inf | 3 + .../PeiMemEncryptSevLib.inf | 25 + .../SecMemEncryptSevLib.inf | 3 + OvmfPkg/Library/VmgExitLib/SecVmgExitLib.inf | 2 + OvmfPkg/Library/VmgExitLib/VmgExitLib.inf | 3 + OvmfPkg/PlatformPei/PlatformPei.inf | 8 + OvmfPkg/ResetVector/ResetVector.inf | 11 + OvmfPkg/Sec/SecMain.inf | 4 + UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf | 5 +- UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf | 5 +- MdePkg/Include/Register/Amd/Ghcb.h | 2 +- .../Guid/ConfidentialComputingSevSnpBlob.h | 33 ++ OvmfPkg/Include/Library/MemEncryptSevLib.h | 26 + .../X64/SnpPageStateChange.h | 36 ++ .../BaseMemEncryptSevLib/X64/VirtualMemory.h | 19 + OvmfPkg/PlatformPei/Platform.h | 5 + OvmfPkg/Sec/AmdSev.h | 95 ++++ .../Include/ConfidentialComputingGuestAttr.h | 25 + UefiCpuPkg/Library/MpInitLib/MpLib.h | 60 +++ OvmfPkg/AmdSevDxe/AmdSevDxe.c | 23 + .../DxeMemEncryptSevLibInternal.c | 27 ++ .../Ia32/MemEncryptSevLib.c | 17 + .../PeiMemEncryptSevLibInternal.c | 27 ++ .../SecMemEncryptSevLibInternal.c | 19 + .../X64/DxeSnpSystemRamValidate.c | 40 ++ .../X64/PeiDxeVirtualMemory.c | 167 ++++++- .../X64/PeiSnpSystemRamValidate.c | 163 +++++++ .../X64/SecSnpSystemRamValidate.c | 82 ++++ .../X64/SnpPageStateChangeInternal.c | 294 ++++++++++++ OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c | 444 ++++++++++++++++-- OvmfPkg/PlatformPei/AmdSev.c | 235 +++++++++ OvmfPkg/PlatformPei/MemDetect.c | 2 + OvmfPkg/Sec/AmdSev.c | 316 +++++++++++++ OvmfPkg/Sec/SecMain.c | 160 +------ UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 16 +- UefiCpuPkg/Library/MpInitLib/Ia32/AmdSev.c | 70 +++ UefiCpuPkg/Library/MpInitLib/MpLib.c | 122 ++++- UefiCpuPkg/Library/MpInitLib/PeiMpLib.c | 4 +- UefiCpuPkg/Library/MpInitLib/X64/AmdSev.c | 261 ++++++++++ OvmfPkg/FvmainCompactScratchEnd.fdf.inc | 5 + OvmfPkg/ResetVector/Ia16/ResetVectorVtf0.asm | 17 + OvmfPkg/ResetVector/Ia32/AmdSev.asm | 86 +++- OvmfPkg/ResetVector/ResetVector.nasmb | 35 ++ OvmfPkg/ResetVector/X64/OvmfMetadata.asm | 113 +++++ UefiCpuPkg/Library/MpInitLib/MpEqu.inc | 2 + UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm | 80 ++++ 56 files changed, 3034 insertions(+), 231 deletions(-) create mode 100644 OvmfPkg/Include/Guid/ConfidentialComputingSevSnpBlob.h create mode 100644 OvmfPkg/Library/BaseMemEncryptSevLib/X64/SnpPageStateCh= ange.h create mode 100644 OvmfPkg/Sec/AmdSev.h create mode 100644 UefiCpuPkg/Include/ConfidentialComputingGuestAttr.h create mode 100644 OvmfPkg/Library/BaseMemEncryptSevLib/X64/DxeSnpSystemRa= mValidate.c create mode 100644 OvmfPkg/Library/BaseMemEncryptSevLib/X64/PeiSnpSystemRa= mValidate.c create mode 100644 OvmfPkg/Library/BaseMemEncryptSevLib/X64/SecSnpSystemRa= mValidate.c create mode 100644 OvmfPkg/Library/BaseMemEncryptSevLib/X64/SnpPageStateCh= angeInternal.c create mode 100644 OvmfPkg/Sec/AmdSev.c create mode 100644 UefiCpuPkg/Library/MpInitLib/Ia32/AmdSev.c create mode 100644 UefiCpuPkg/Library/MpInitLib/X64/AmdSev.c create mode 100644 OvmfPkg/ResetVector/X64/OvmfMetadata.asm --=20 2.17.1