From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on060f.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe49::60f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 519A982101 for ; Sun, 26 Feb 2017 09:43:21 -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=pzEI8Km53FugHx7jPHfrTTBux5qzIPk19dohABEXLXg=; b=ufU/l6/p2lyTedjiOFl3GxirMDC4sVmp/5c9AbVboPNyH7AFGYg/FW9IfQqmpSaqGMfV+vUz0yfSGRApP+v10K5yu3GB4+yR52zK7OIDU+cezM0CgpjRhnBsxCm55dZrGa4yWruKI+YVjM6PnbUKJiS1xB+r+uKbHmHnRea9apE= 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 CY4PR12MB1238.namprd12.prod.outlook.com (10.168.167.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.13; Sun, 26 Feb 2017 17:43:18 +0000 From: Leo Duran To: CC: Leo Duran , Feng Tian , Star Zeng , Laszlo Ersek , Brijesh Singh Date: Sun, 26 Feb 2017 11:43:02 -0600 Message-ID: <1488130987-2544-2-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488130987-2544-1-git-send-email-leo.duran@amd.com> References: <1488130987-2544-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: DM5PR13CA0028.namprd13.prod.outlook.com (10.168.240.142) To CY4PR12MB1238.namprd12.prod.outlook.com (10.168.167.13) X-MS-Office365-Filtering-Correlation-Id: bab73c30-6dbc-49c9-35d6-08d45e6ef342 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR12MB1238; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1238; 3:t1WuWxIebRlau7lNm1JOhawwVRTAXTmF7tHCuJj0AkH42+OvhSWnSiYhub/b6gL8U2yWim69LUGwNJbuTrAedq1dy+9ci6VD9BAQT0da87nZAkiyqwDO+YY3PPTkVC9QxvC+3yCAtLzD4yDHcQoLDUDA3N9BUcxfbMinaXaaijXOCBjYesYy4IO+UyPRSZrY5y3qGhhnTDESJwjBFZhzro3wcbcQWmkTGUErKvy/iAKAWhPkq4jUe69KDaEJKOpEE6S2ZobFw/ixTL7xGje64RztEfNNRXisbBBSpz+kv4I=; 25:sFSfmkMNl9cc1ejV6NSFkyWkesfPESTFT0ldsHRhnt4uIQSStIFLgiFhLQ607YhpMlVQyA8tvfIZQQk3UJONXGNnuFfqGRJM88v2IjUUihOC/fg8wy6MaiwRHFEQ6MeNjpRRDEgU/HzgpVMaK4Xt712F/8qjZkGp9P7lzTuhruRgYfDHc8PSqMUtuCB7J85UiDO4Q81uILPfzD2HOY08n+3Wewu9uQGhUSImNPA8BfQCPNNplFSFstKbjio5HZgwbSmPxRT6DoGIM20IAltVXPIAlNM5Y0Znkm5o9mxzbTMm5jivbime4mu986QyrN0dPqwSt5xSVildbiySVozTfPXE73G71lUP5uJrfPDsnEPiVHQEXJSUiSNksOqXeNhxfZQf1qJQlOuBhCWOImNT7u1vR3Sy1hhAgT/+i1QJw60uJq+agQTIrC8caNaPDT/y30V5nG7SlaI+umONfrEgqw== X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1238; 31:r0rhnmshKpJ7b5UETtx7HpLh11B8vpvZjgJjURE+UPAHEilIQdcpmch4yNkDzGXoNc5zb+nnvVmFNHE2CRGn9CMg3ME8zm0+8vDQhqxkAnlOVHc/6XxYfMZZo1rAICpBDgTQKqh41fPro9KXtWtJqPRuBY8cOZkgQ1Vsk6Qa71HsBHJlQsBgv6OPk9wZ2ASuf5tegFIZOEPCQH9nGUNAdy2RaBWYKGT44sLm2aNTx4Zi+9LhXeDcBEA+dRIeOsv/; 20:nKUY9Brq5TyXtUWp0iO10WwvI1Q3hKVD0Edswii9UZ02ncD62RVfBVTm2HVL0kSiqzGTzXTB8seoY/iyqDbP3BxEM0pAM9li8Hl4ZvILR9fsHic5KjPW3tPgppXA+1H/KnFoM89q2aUFIByUr047Xth66PmTu7TLYh02zLeOWwc+3OFdsqwHoPMf7Ieus42gIJKjvE9/w0Bk71R89aJKW/RpZUXFj0W77jPrhq9UdKHlt2tEidy1rHC2vCdPmDIV71WdfvzDi300dWA/oinQeorkVPf2vIr0GScOy8vinniI0wc5aGvQ6aumdlMHiIb3D8uvYsW6abCKgmdeJa3mqm91LDHwjUnse9Rqh5HeFE/P+L+jvLg7wFYgWsuew53Eo4MEw1nglbOnopMYXYa124BLWZrmvah61MuqY4rHiBQuJg8agtdqeeqQOYKvJ4lKeYdOvMHPjM3Qi/d11esET3zReapgcyG5Nn/idWj/RzScrHjevOteu0NLFxCUV2tJ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(20161123558025)(6072148); SRVR:CY4PR12MB1238; BCL:0; PCL:0; RULEID:; SRVR:CY4PR12MB1238; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1238; 4:e7BpK4XmslJvmyTlyVXs6Nva5bIgilIjl3RsZdouyxMPTrb0UU/oSPTWr0nYULpmguLmlnIPyT3jkgZ8b1bjgkSQ31rtMhTmHkS0vf/brMu89x/icb6HkQCTLIoEvSw6Bve5iNNfnWQ1NmrjiL2zLDiy+CPM+FRjXLRgjSX/wzYWC98Rdm3IyKzyANOlK4OG1sejUX/xo/XMkFp7qWBkRMcYnfDyofWcr+9j98l610vY4//GHeSbW8WJ36XgXqUFQ4PbMsipS6MNOeQA/MIqYpXTZ2rUPFQODD4Uffprt9YesZezVeMkI/pb08S+OlzQr6JD5+8+GPYT7uadKNmAJx1uFeltPYqcZdw2AlAQ5th0HUDaR9jjlXPBZi8uXRqwpPSBp/CL9xx4rnGcrW8U4zF7ooASeuIgQKPVgZ+JFq7+zDdKoErnTq/x9FeQVhuoSAOyIUCR/lVDbiya6OXgpWEo3cAicoIhSN6eqCyBuNfM/hW5cIYnyo1Ub7WWt2LI71IFl4IVbXkhQYpLI01JtIurgP0pXb5PSZXLMRphws4BRvs87tRD5Cd8TQNI/saDVU9DVgU3SKX3G5sTRl4tAKLKKB9TjA6t2t2H8/DtnVGx8m1bOteRRNsGWMp8s055wu4dRW3Eyj5apRpx2rSn9K08gfYZJIE53LDLqLZ01xt4caDHWUaJNbdW1qVhrjDbKwxTpSz0kdPCTlKSGSvs7A== X-Forefront-PRVS: 0230B09AC4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6029001)(6009001)(7916002)(39450400003)(39840400002)(39410400002)(39850400002)(189002)(199003)(305945005)(53416004)(105586002)(106356001)(68736007)(33646002)(5003940100001)(92566002)(2351001)(189998001)(42186005)(81156014)(86362001)(97736004)(7736002)(6116002)(81166006)(36756003)(8676002)(54906002)(3846002)(50226002)(110136004)(6486002)(47776003)(66066001)(101416001)(25786008)(53936002)(38730400002)(50986999)(48376002)(50466002)(6666003)(76176999)(5660300001)(2906002)(2950100002)(6916009)(4326007)(213903007); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1238; 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; CY4PR12MB1238; 23:B+snEZFe8hrShea3CP1cBZ2+pf5gU0m0S41p4t2uP?= =?us-ascii?Q?BsHLPH7xzNk+usc295bK4HWQqpQ1F6qmiVxGHu2z+km8p1SQP7MhuHR8g5o6?= =?us-ascii?Q?RkFI2jS+rmjGnGH1HAgthiGrHSBwVx8G/ZPtWjNkgjTbT2T16e7KgCr6NYrI?= =?us-ascii?Q?8Q+4eQYdoXy8qRgzltZDdwleWDruvXf66EQUXHDZ5yO037zTGdhQTrROC2ED?= =?us-ascii?Q?r1PEZIWKwvM1LO0K+WgxRVdlIgr1St+dS8oDM9zlW0MxzGlWjbSEtfkcHGnq?= =?us-ascii?Q?4joiT47AGxneD0sYlA65aaVrP8Grj7gAegIeQ32wwL6VYx5zdau+Ow4VpE50?= =?us-ascii?Q?Q8QFLTjA+UcFQcuJquWjXCsLt/QleP7QyNSusDqUeB+lD33+EfotQ6ZdDaE4?= =?us-ascii?Q?nftHmArItWXeMvTKeThJBuwF1nVGOh/3X5WH+ekEGHTgRGmuHBTUQzWUv+nZ?= =?us-ascii?Q?nWSHzCgiHiu8rQtKCzBSpMlbui/7xvt/NSsh2Y14E9nvh2dI9Ei5X+HIXjhb?= =?us-ascii?Q?Z+QtftjtC1FixeHaIuE68gtemSlyMDkmqLvxrVcI51uhsePDVVmG55nSTpXZ?= =?us-ascii?Q?UmeegWEIKyu+sHX/MA2kZPXhMv9ufxioHhkqu4rnQiIL8vDuW5yVou/veuZS?= =?us-ascii?Q?0q6wKIVTIrTzUBDEnz4CFPveUeSOSfoV1nO167UaVfkfVdkAG1YxMyYQELWW?= =?us-ascii?Q?Vs37tGnh1yzbkJDD3hnuRz//5r4J/cLkOCximf3Feq8ejsE618w1VSzbVWId?= =?us-ascii?Q?IbVcSzjvJr6HMrp1CtnzCDO4CTnzZ/OR2Akz9c1FWjzJpk1GU9r8BfcOdqex?= =?us-ascii?Q?6jtrqy7MJjOtxfi6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Wb9qL16wtXXQNTpvKJIJTIaXpI24U+GembOMN9UJ+ivl6CA7fpZCj8tX0N7MnMfwKcQq6w==; 24:008rMKHX6E+aOwliTz9ORydQzA0nNxY+N7LDCzER9ILI8HtCYxgNLNF9h09HhEIE7dK+Lebwi1V032rpngFS417hZSS+Etf/DRYAJMF6gQY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1238; 7:g3LHzlwzGRHeh31m4EFcOQw+XjX/y1INxs0NFtjid7VUR8WS8iGNJLy+sDroxn2cAq0At1iJSUM/EpnYhrDHtJA7j8vCaDJaSbxC0cl3GlNx0S+iDfX5Ytu6XvXfRDZD3atd4D51pvL1tuGxreFJpHrLJ3OaBmEQcovg7HAFJuxprbrkcj/Rxizdsn0jZep5E8qyNQ67WAWzCvgQgBzUzlpbXVUGwh7ozBh3AGo4zy5EaGuSyNpp69TjtJDA5eVwNVw7wNc4IYWpoZXYgXs8j2ILGQqEwQbDqAc5OC7wSeV36/QVGXmn0jvMLJZkLm43ebE8Bj4lq9DuW2YISfIFJQ==; 20:YNewy8YMlDnlAlroeUUZ8lG/h7BNHy7KX0VU9FAkZ7gh0VjM27e5U9tEu/ug4L/9Vezg0jvDrjItRvNvV1g54Xo7uDz3wh8LVjqQIKOZWfFIKxrOg+lrmDniiKPceOJ4G2pZwwlGZPXhZoLho9VIClhpe/ksHCYQp3uGQkmUDIl7uvD30vt5DwkXuemrIOxTfFxCd+SeDZllj9KaohfUzTJJQkxjOXEIwXNebO5r8VzDeyl39Eu0OI2ZlnsaI9Uq X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2017 17:43:18.3816 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1238 Subject: [PATCH v4 1/6] MdeModulePkg: 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: Sun, 26 Feb 2017 17:43:21 -0000 Content-Type: text/plain This PCD holds the address mask for page table entries when memory encryption is enabled on AMD processors supporting the Secure Encrypted Virtualization (SEV) feature. Cc: Feng Tian Cc: Star Zeng Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brijesh Singh Signed-off-by: Leo Duran Reviewed-by: Star Zeng --- MdeModulePkg/MdeModulePkg.dec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index 426634f..f45ca84 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -6,6 +6,8 @@ # Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.
# Copyright (c) 2016, Linaro Ltd. All rights reserved.
# (C) Copyright 2016 Hewlett Packard Enterprise Development LP
+# Copyright (c) 2017, AMD Incorporated. All rights reserved.
+# # This program and the accompanying materials are licensed and made available under # the terms and conditions of the BSD License that accompanies this distribution. # The full text of the license may be found at @@ -1702,6 +1704,12 @@ # @Prompt A list of system FMP ImageTypeId GUIDs gEfiMdeModulePkgTokenSpaceGuid.PcdSystemFmpCapsuleImageTypeIdGuid|{0x0}|VOID*|0x30001046 + ## This 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 should be applied when creating 1:1 virtual to physical mapping tables. + # + gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0|UINT64|0x30001047 + [PcdsPatchableInModule] ## Specify memory size with page number for PEI code when # Loading Module at Fixed Address feature is enabled. -- 2.7.4