From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on062a.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe42::62a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C482882058 for ; Wed, 8 Feb 2017 13:13:24 -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=1iprtSWV3f886Yw40kYs912Bq8RhNu5/D0c0r5F0bK0=; b=fkkJRpKrErA4mVM+UqKZLZjZsvcJH7ZSzwPcfCqDVCP+OmxQMRuITScS70JMR1MJw09BsJgtITiFmWbnpc8pSKDD+aHX8bikmcko5et2hlqUEOzZR/1c8Tmv6C3T0Eg3H2YdKi3GjVTQxVWXA437kR9eRKHZOd1XrcxoOmUvnn0= 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 MWHPR12MB1247.namprd12.prod.outlook.com (10.169.205.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Wed, 8 Feb 2017 21:13:23 +0000 From: Leo Duran To: CC: Leo Duran Date: Wed, 8 Feb 2017 15:13:03 -0600 Message-ID: <1486588386-2146-1-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BN6PR17CA0001.namprd17.prod.outlook.com (10.173.147.11) To MWHPR12MB1247.namprd12.prod.outlook.com (10.169.205.7) X-MS-Office365-Filtering-Correlation-Id: 07504b46-68fe-4c2f-4ce5-08d4506750e1 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;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s2IkvyeZWNSkJIHtJKrjHruk2BmPAw8e6IPHwgB7SdP5apQeOjBMg65ppQa7Cd1yQuF2ByJBqh4VAIl+QI; 20:GwXHxv4mTqUw1S56QFQQ9O01GuoBk+/dXP8gOxyU7s7H1v7FP4NX/q9rLCOrr1ACmP+9TDgWxvdwTV0Gs/5inZc9avlk3IYjTwDyIPV/TD+btnKmoLsfj4+4qd/aHjhsPENPdTngrqSjLHXQVay/UFKj3hlsICP6L4ZRE2ltnujKEXdIkUQKz77mPb2y6px9XyAo9S2/82cN4uqQglOU65GeW6DkJQJWwTu6qlfiEnMcRxIQtMulk47ygyG5ERodztp8yyG6NX7IypMXpe9bvOLcKHo/eSjyLRCIQMKwvc9rix2tormqkWqoMIjx11I8Tc8OJu7WFQQNcdhTwYDvahS+a5DoFpurJhqELUmIKRyWC5pmJtrYEovXkiA5LHum5/vPN5APYT7jMqOhAz4J9a34+czTj5V8yz120LGW5sL3qlvvE21IPJgMfje0V4U0bldlePkeZhAnOJ90BxQZAbByN8UCQE/JRNK3BMB2/AsbQ431ZxRlWgUjWW3U5z2S 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)(2017020702029)(20170203043)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123564025)(20161123555025)(20161123558025)(20161123560025)(6072148); SRVR:MWHPR12MB1247; BCL:0; PCL:0; RULEID:; SRVR:MWHPR12MB1247; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1247; 4:C/RsqLilYTYzVaJ/KzgTk1l81DiT84RsGnypSf9/tGemuryDinslDuce4LR/USBBwCbPJUYcM8w1l9QmZdeSB8hacfcWYPplVBO2K3UUYsQigp9DCdRXLpriBBYj5RxzjPkpOiryW9ndeKnwrI0OiBdm9NshYzcAtldQB3/vedfSE9GnaDXlVmtbr05Sb705TWvwb6879mWoUyo+moVUx9s2EPC0A3URc8UyzO6b4Jja1ipzce51CPFgttIJB7J5YfUw0isedBYCMJBFxo1hoSxXrGaw5HXqU33imLMtPx8cdBrmjqprKCGI2poaklXZAELkXoZRB+OtpQ3H9u9Wdx7o9+6/hRdwZ7gzmhYE2muJc6yh9szLN5+0BOhXn3RAgv0CW40ZP/D24a43BbXQFWV2bAMXiY0JX0TJ619hLRw+rZGKYBEhpvsvw3oUUdPWPyl9mWD2Fc33xpCQPlF7E79rGAn9Okx93IrxSJ+yRpqL0QMFw2F4uKXkuAnMG/p06yjlgoN9m/zamSbbiOT1eQLio1EIlC1euSycyTJ2Fmtqf7OUiAnxKyIdyYC0AuE2gIXBYg0qRcoFCtVq4JNlBvHWhZn7Mkxs1TE/5iCYFXCpejJ7tutAAJp8UxgrRgKe7AJfwRh7pxZegr4Bj7vCnI18xko8WoxWHl/m2RdH58sHlKi5X7J1sMjL4/14Mn30 X-Forefront-PRVS: 0212BDE3BE X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6029001)(7916002)(39850400002)(39410400002)(39860400002)(39840400002)(39450400003)(189002)(199003)(5003940100001)(68736007)(42186005)(50986999)(50226002)(2351001)(8676002)(81166006)(3846002)(81156014)(6486002)(53416004)(66066001)(101416001)(92566002)(450100001)(47776003)(106356001)(6116002)(25786008)(2906002)(105586002)(38730400002)(33646002)(6666003)(36756003)(305945005)(48376002)(7736002)(53936002)(110136004)(97736004)(86362001)(50466002)(4326007)(6916009)(189998001)(5660300001)(213903007)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR12MB1247; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; MWHPR12MB1247; 23:xVFD4laJJQCAnZntgSL+i2Ab0ofkYiCKW0iT72whY?= =?us-ascii?Q?nB64Zbb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hblYRSDDqGx2LbzJeC6k4wf/Ti3TgiqaBHnKhiIulv+sLPj1FO/U+lXrzzgjbQDCAhCpczsKkaIk/w= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1247; 7:k5pneLsVtw+TCjnZz2P+4n7Rj3qCGDE5DKT8UuW7WRrF+wwNwNfL/9nVSbaiuivgJmHq1FtK+EthYri4bmBPIVcHo08W4oKzocJU8UCEO9Rii/+JqFEu+bkXgwzOJu1h6J4UlAxPdnWq0k5ogiCHYq2lB5mnU+Sj0WA3hLzOsT8O+ZzKxsL+ltxrlw3lKidEAfyxR20XyRWZlOmAO+lLKhYSbKKfo4dINVu+XNAKpnavM6RStFWEao55RXHojupG7dc0fAc41sDFevw+3mU/8NPsgdxHv92iaOcvlkB9C4iYJ4LVvqWdACvBuiEKj837c7JrDdv8A885uJcODJMjRtQOdqsFVzt5F9rlj65ntTuStEPGh2EJJz0jfAYVD8R1UCozcNat36DHGwo0uB9njCUDQ5inaASnMOrfTaqS0fe3Ss1hnlPQb8fiHULRetCtRaTFKUCFk7rpVC9yotj+PFMAQPqIyfm2QHM3N/nwzz+AqKNC4VO9esfaUBUXX87RwdhfFwv8guAuseeXoyhP3w==; 20:Fv/lqYidlilgOSI7kh4sCUWem133mA5ItjO/Sg7L2rXbjabK6uvZl98CvE9PWln3UwUetkVI/uhwsbzVR37mRdTC2lzr1x7z2rBt8jVPDHn/DpddcgOhURp9ngRmBjpExF73P/OHl0ZttlGIaE88nuTieja5Apku1sL/prWepCKu69p/X4b13l7FEWWQRbJXKg3KsjL2u//ojQhKvosRmzt1nKCHhZrx7sLdaX75yn73IXaxnkGwdmt6TYXG/K3s X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2017 21:13:23.0104 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1247 Subject: [PATCH 0/3] 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: Wed, 08 Feb 2017 21:13:25 -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 v1: - Move PCD to [PcdsFixedAtBuild, ... et al] section in .DEC file - Add PCD for page tables built by MdeModulePkg/../CapsulePei - Add PCd for page tables built by UefiCpuPkg/../S3Resume2Pei Brijesh Singh (1): MdeModulePkg: Add PCD PcdPteMemoryEncryptionAddressOrMask Leo Duran (2): MdeModulePkg/Universal/CapsulePei: Add support for PCD PcdPteMemoryEncryptionAddressOrMask UefiCpuPkg/Universal/Acpi/S3Resume2Pei: Add support for PCD PcdPteMemoryEncryptionAddressOrMask MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf | 5 ++++- MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c | 18 ++++++++++-------- MdeModulePkg/MdeModulePkg.dec | 8 ++++++++ MdeModulePkg/Universal/CapsulePei/CapsulePei.inf | 2 ++ MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf | 4 ++++ MdeModulePkg/Universal/CapsulePei/UefiCapsule.c | 9 +++++---- MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c | 10 ++++++---- UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c | 9 +++++---- .../Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf | 2 ++ 9 files changed, 46 insertions(+), 21 deletions(-) -- 1.9.1