From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0613.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe44::613]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 44437820E6 for ; Thu, 16 Feb 2017 13:02:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=pquOdyI2PRiBHZHJOq/eZFmrQJ3bbDuvkasoc3rNDVc=; b=uXedCPUAWt6gfassdhpskbbNs+N9TYWLcwiWM1OOOTziy8aX/9TA7VO1+M5KNg9g5sxfO14noepXB83+dzsYRDORmfd/7MgQy2EZ10m94ZcquNK1En3t6LKIuItjyV+ZqiSBdprblPe8HzhtpnkyGwG92h5Y94eVSqPeBNW8QTs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leo.duran@amd.com; Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by BN6PR12MB1236.namprd12.prod.outlook.com (10.168.227.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Thu, 16 Feb 2017 21:02:26 +0000 From: Leo Duran To: CC: Leo Duran Date: Thu, 16 Feb 2017 15:02:02 -0600 Message-ID: <1487278926-14303-1-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: DM5PR13CA0037.namprd13.prod.outlook.com (10.168.240.151) To BN6PR12MB1236.namprd12.prod.outlook.com (10.168.227.22) X-MS-Office365-Filtering-Correlation-Id: ef04bbfc-5ae6-4839-69c2-08d456af1c79 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BC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DucrAwh9gNHSuKw3vlhO4K7u19qKFXoZYKR+MSV/4j/NxbHVho6ikn7rLU=; 20:dzZ/cmpLQYWBVQoSwZIUz4gJyThL0RXHVdapZni0JlV+CP5L86P6FCMaxkD86MBAomOffBPTN0hTI1JUJcfq71PSGJANrPD7pDck5xiFFuVTHcqyq8pCP2kZye/0kB5p1RrJWEXA3yRYqDdT2H6/1xDgl8Z6i5QWhsGG42afz/prVTbLyQDZ84EO3oNEfxEzuzWvQ5kh9AUn3BeCGqNzmqErNvj1Mnnhn74hLy3Ucx9SenqTYxpJ9Dm4qD7vbi4JUBH44LsBzXHe4Amqx3Z1S9z3NWk8p6nUK33FsusVNmf19wRjr6TBaNP9ISTpDTjczOMbb39sieOzx7bM5GPqzeDZn2R/gPjzpFz8D9Pq1KkPFdYJKBklCuluQ5YeqakQV/aghpuF/ocyO4i9yyMq/Ab14kn3c1R/lEccnUGfY7rOxi2fD1C3gWPw0jW+I0B4muHvjWFtadAjdE/Q5qRZRksFnjZDVZluh8G07wtWONvvFAIhHWie+ABGphr/NSAN X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123558025)(20161123562025)(6072148); SRVR:BN6PR12MB1236; BCL:0; PCL:0; RULEID:; SRVR:BN6PR12MB1236; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1236; 4:S6RAx2Se0+zrTSMFMWgw0LWN7Pep9jL+pTMwEeHIRpqJr6QlTpg1tTzsDWsRsSQ+cGFWxyT1RNEZSURDRMEjQCkZUXTQs2nm2Pp/MvMX0UYpEQezJXVaElbvD97cXS5IPZGhzlZmeY3KEypppYeQod8T0QgjMzG5Qz0wZNtMYaD08tTdx6Yjv5hwyrktgAwdktHi8NglKvOAadlHxgQvmITpimkNfCgGZ+9IJ2mdb2E684xN8RB33wGO+QL1GtryYDKZpbkO8bzEHcW/17bqJ5CT37fjspGWGgSNBOZZcc1GNCBGrfVXNq+MvUQkpl5rHDrEqQSuR0B8uBRcqqnr3MA2rkccDaNo/o7XTTU6l7UW1eHS420DVxzH4KtOo88Nvk67eRwBJHWhX7b0BdhuXs8AshFsCAYg+AmtVZdYs3C5hrzjO/GLqVvkJEk50cEihuU5KmhWEVCZFgtN4R1K0lMR/rzbalCDA1svP5OZOJnGKc170ZmzLys/dUk2irjflmJwyPcYiTibHQyN82ie07fYNILngvSh7uRr+SidM2AzIX2/R5UOISay031WUkeLCP8C7i39k5pWwUiQPKRLwnLBNdyYKlXw+19djxjn5tToToS7GhyyrPto9DSaeYnJ X-Forefront-PRVS: 0220D4B98D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6029001)(7916002)(39840400002)(39410400002)(39450400003)(39860400002)(39850400002)(199003)(189002)(8676002)(36756003)(6916009)(68736007)(38730400002)(6666003)(6486002)(97736004)(53936002)(50986999)(110136004)(66066001)(101416001)(5003940100001)(50466002)(81166006)(50226002)(92566002)(81156014)(6116002)(450100001)(106356001)(53416004)(42186005)(33646002)(48376002)(189998001)(305945005)(7736002)(5660300001)(105586002)(4326007)(2351001)(2906002)(86362001)(3846002)(25786008)(47776003)(389900003)(213903007)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR12MB1236; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR12MB1236; 23:+mT2aYehjTmX/Colxx80mCRH4pUGDL47qUcBT78m0?= =?us-ascii?Q?fSyFwNVanhSRYusaVendi3z27+N+GhXtpKu5J5I3jtjI8lM1HlRzgkIkS553?= =?us-ascii?Q?hcZEXbQwxDeEzxbtT9nPqWMWu3xoXW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7nSuqb6Gc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1236; 7:6c5vAPijunZI+UP+oVgdZhh5u8FIsT2u3XHnRZvi+/7FYG3It11Tyd5hL2cuEnteZhw4xUFJsdFKUIc3L9iqRqGYGJ5ZWHZ/Lupd5GiUtQ/7fj/6gGXnH4lLSQ2UW5rR5n91JNYGASgYEmBSuShkJkBGWHnsPbz90gFeCyGuZ75eVsz0uwTCmGywSioRiWiakoFR/B1jkB6t/9NUacvJS3C1Alr9fghSROtLsB0yCXwaQjVnAqQVFqcXLNMIPIgAwAE1FmZ8EPHlc+cF0mt+h9Vi0AhqFV9fDRAHDqKZNPbLZQzKnEvQdPilOmAC/6O0XIUvBKCeU05p7qMr7x+DDg==; 20:qEFG58DDrv4PF7QQzRGNj+SwBbdOqyVOTCgi4DQOriZ8ZXT26YlZ4K5SNOsRHE0VvfuIAQH3dnAMe75z1T0yx/o28juJojkHJ1MJmjy+uZZZid2aJ6jRjg7X6++GFitCgmVRXoGPgiDgjQ7EWIiZUWk6h20NbPmIbieWu5NVeTTQUMHmuV7rP4Nccufu6k45gbqrXuzIsOVMV0+/IGFNeHdbz4EQXu0KlesdkHG+7A4JsldBDF52SmGty4ZT7F8J X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Feb 2017 21:02:26.0845 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1236 Subject: [PATCH v3 0/4] Add PCD PcdPteMemoryEncryptionAddressOrMask X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2017 21:02:28 -0000 Content-Type: text/plain This new PCD holds the address mask for page table entries when memory encryption is enabled on AMD processors supporting the Secure Encrypted Virtualization (SEV) feature. This mask is be applied when creating 1:1 virtual to physical mapping tables. For example, the OvmfPkg sets the PCD when launching SEV-enabled guests. Changes since v2: - Apply mask to PCD to keep value within Address field - Use variable instead of PCD in Page-Fault Handler To-Do: - Add PCD support for page tables in UefiCpuPg/PiSmmCpuDxeSmm Leo Duran (4): MdeModulePkg: Add PCD PcdPteMemoryEncryptionAddressOrMask MdeModulePkg/Universal/CapsulePei: Add support for PCD PcdPteMemoryEncryptionAddressOrMask UefiCpuPkg/Universal/Acpi/S3Resume2Pei: Add support for PCD PcdPteMemoryEncryptionAddressOrMask MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe: Add support for PCD PcdPteMemoryEncryptionAddressOrMask MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf | 5 +++- MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c | 29 ++++++++++++++++------ MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.h | 6 +++++ MdeModulePkg/MdeModulePkg.dec | 8 ++++++ .../BootScriptExecutorDxe.inf | 2 ++ .../Acpi/BootScriptExecutorDxe/ScriptExecute.c | 7 ++++++ .../Acpi/BootScriptExecutorDxe/ScriptExecute.h | 2 ++ .../Acpi/BootScriptExecutorDxe/X64/SetIdtEntry.c | 16 ++++++++---- MdeModulePkg/Universal/CapsulePei/CapsulePei.inf | 2 ++ .../Universal/CapsulePei/Common/CommonHeader.h | 7 ++++++ MdeModulePkg/Universal/CapsulePei/UefiCapsule.c | 13 +++++++--- MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c | 23 +++++++++++------ UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c | 16 +++++++++--- .../Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf | 2 ++ 14 files changed, 109 insertions(+), 29 deletions(-) -- 2.7.4